|
You last visited: Today at 07:49
Advertisement
[Question]2vs2 PK match
Discussion on [Question]2vs2 PK match within the CO2 Private Server forum part of the Conquer Online 2 category.
08/06/2010, 09:41
|
#16
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Quote:
Originally Posted by ftp4life
LoL well isnt that a method......... anyways uhm... ok so since
Checks if u have the members now making it so u can only have 2 team at once would be MUCH harder  id have to set up teams like how wat that previous guy was saying to add Teamjoined1 and team Joined2..
|
try GC.MyChar.MyTeam <= 2
|
|
|
08/06/2010, 19:25
|
#17
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Quote:
Originally Posted by ThoughtZ
are you retarded? then noone will be able to join, 2 and under...
kthxbai
|
u dont get it, ur thinking different then me.
neither me or u is wrong.
as u can change the statements places.
get ur facts first dude
|
|
|
08/07/2010, 00:40
|
#18
|
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
|
thanx grill mad lol now time to add a timer...  but will be a lil harder i got the set up on adding the teams correct now i just need a timer to make it an event like maybe every 10 minutes or something... +credits to you and everyone in here
This is what i have gotten so far thanx to you all... Please feel free to fix any of my errors  and plz help with a timer
#region PKArenaNPC
case 10021:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Do you want enter the TeamPK Tournament, You Need A Team Of Two To Enter?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (GC.MyChar.MyTeam.Members.Count >= 2)
{
GC.MyChar.Team2Joined += 1;
GC.MyChar.Team1Joined += 1;
GC.MyChar.Teleport(1005, 51, 71);
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (GC.MyChar.Team1Joined >= 2)
{
GC.AddSend(Packets.NPCSay("Sorry There is a Match Already?"));
GC.AddSend(Packets.NPCLink("Okay.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
|
|
|
08/07/2010, 01:30
|
#19
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Here is a timer.
Try edit it, so it fits for u 
in MyThread.cs find:
PHP Code:
interval = Interval;
T = new Thread(new ThreadStart(Run));
T.Start();
under it put:
PHP Code:
System.Timers.Timer ATimer = new System.Timers.Timer(1000.0);
ATimer.Start();
ATimer.Elapsed += delegate { TeamPKStart(); };
System.Timers.Timer BTimer = new System.Timers.Timer(1000.0);
BTimer.Start();
BTimer.Elapsed += delegate { TeamPKEnd(); };
now anywhere in MyThread.cs put:
PHP Code:
private static void TeamBCast(string msg)
{
foreach (Character Char in World.H_Chars.Values)
{
Char.MyClient.AddSend(Packets.ChatMessage(0, "[TOURNY]", "All", msg, 2011, 0));
Char.MyClient.EndSend();
}
}
public static bool PKStarter = false;
public static bool PKEnder = false;
public static void TeamPKStart()
{
//To make it start every 10min, just make one for every 10min
if (DateTime.Now.Minute == 00 && PKStarter == false)//Change 00 to any minute in 1 hour from 00-59
{
foreach (Character Char in World.H_Chars.Values)//Char is all chars, for getting one type of char only write ex. if (Char.Level == 130)
{
TeamBCast("Team PK Tournament have started.");
PKStarter = true;
PKEnder = false;
//What ever starts tournament here
}
}
}
public static void TeamPKEnd()
{
if (DateTime.Now.Minute == 10 && PKEnder == false)//Change 10 to any minute in 1 hour from 00-59
{
foreach (Character Char in World.H_Chars.Values)//Char is all chars, for getting one type of char only write ex. if (Char.Level == 130)
{
TeamBCast("Team PK Tournament have ended!");
PKStarter = false;
PKEnder = true;
//What ever ends the tournament here
}
}
}
|
|
|
08/07/2010, 02:58
|
#20
|
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
|
Quote:
Originally Posted by grillmad
Here is a timer.
Try edit it, so it fits for u 
in MyThread.cs find:
PHP Code:
interval = Interval; T = new Thread(new ThreadStart(Run)); T.Start();
under it put:
PHP Code:
System.Timers.Timer ATimer = new System.Timers.Timer(1000.0); ATimer.Start(); ATimer.Elapsed += delegate { TeamPKStart(); }; System.Timers.Timer BTimer = new System.Timers.Timer(1000.0); BTimer.Start(); BTimer.Elapsed += delegate { TeamPKEnd(); };
now anywhere in MyThread.cs put:
PHP Code:
private static void TeamBCast(string msg) { foreach (Character Char in World.H_Chars.Values) { Char.MyClient.AddSend(Packets.ChatMessage(0, "[TOURNY]", "All", msg, 2011, 0)); Char.MyClient.EndSend(); } } public static bool PKStarter = false; public static bool PKEnder = false; public static void TeamPKStart() { //To make it start every 10min, just make one for every 10min if (DateTime.Now.Minute == 00 && PKStarter == false)//Change 00 to any minute in 1 hour from 00-59 { foreach (Character Char in World.H_Chars.Values)//Char is all chars, for getting one type of char only write ex. if (Char.Level == 130) { TeamBCast("Team PK Tournament have started."); PKStarter = true; PKEnder = false; //What ever starts tournament here } } } public static void TeamPKEnd() { if (DateTime.Now.Minute == 10 && PKEnder == false)//Change 10 to any minute in 1 hour from 00-59 { foreach (Character Char in World.H_Chars.Values)//Char is all chars, for getting one type of char only write ex. if (Char.Level == 130) { TeamBCast("Team PK Tournament have ended!"); PKStarter = false; PKEnder = true; //What ever ends the tournament here } } }
|
how would this start the timer for that single NPC lmao...  just curiious sorry bro xD but anywayz in order for this to work i wuld need to add the voids into that npc correct?
|
|
|
08/07/2010, 05:00
|
#21
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
use a bool in the npc to check.
ex.
if (TeamPK == true)
{
//Npc say: do you want to join tournament
}
else
{
//Npc say: there is no currently tournament
}
Else try take a look at .Summer, when i released my tdm script.
|
|
|
08/07/2010, 08:14
|
#22
|
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
|
*** i love u grillmad  and i was also trying to make it so rite once u die.. u get sent away into jail which failed xD.... ill thank you till i die! lol  oh yea btw if i had this...
Code:
if (Loc.Map == 1005)
{
Attacker.HonorPoints += 15;
World.SendMsgToAll("SYSTEM", Name + " Congratulations! You Got 15 HonorPoint From TeamPK.", 2011, 0);
}
would adding this teleport them out once killed and make them lose points
Code:
if (Loc.Map == 1005)
{
Attacker.HonorPoints += 15;
World.SendMsgToAll("SYSTEM", Name + " Congratulations! You Got 15 HonorPoint From TeamPK.", 2011, 0);
}
else
{
GC.MyChar.Honorpoints -= 5;
GC.MyChar.Teleport(1505, 444, 444)
World.SendMsgToAll("SYSTEM", Name + " Congratulations! You Got 15 HonorPoint From TeamPK.", 2011, 0);
}
|
|
|
08/07/2010, 16:45
|
#23
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
I can help you, I will give example on if mapid is arena.
Where u got that Attacker. thing
somewhere in that script put:
Code:
if (Loc.Map == 1005)
{
Teleport(6000, 55, 55);//Teleports the player who dies in jail
}
|
|
|
08/07/2010, 18:13
|
#24
|
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
|
ahh thats right i was thinking of Revive.Cs... but that wuld make more sense :/ lol thanks
I Put that code you said under this not 100pct if its in the right place but im sure you will help lol
I Searched for
Quote:
|
public void TakeAttack(Character Attacker, uint Damage, AttackType AT, bool IsSkill)
|
then found at the bottom of that void there was
Code:
Alive = false;
CurHP = 0;
if (AT != AttackType.Magic && !IsSkill)
World.Action(this, Packets.AttackPacket(Attacker.EntityID, EntityID, Loc.X, Loc.Y, Damage, (byte)AT).Get);
World.Action(this, Packets.AttackPacket(Attacker.EntityID, EntityID, Loc.X, Loc.Y, Damage, (byte)AttackType.Kill).Get);
StatEff.Remove(StatusEffectEn.Cyclone);
StatEff.Remove(StatusEffectEn.FatalStrike);
StatEff.Remove(StatusEffectEn.BlueName);
StatEff.Remove(StatusEffectEn.Flashy);
StatEff.Remove(StatusEffectEn.ShurikenVortex);
BlueName = false;
StatEff.Remove(StatusEffectEn.SuperMan);
StatEff.Remove(StatusEffectEn.XPStart);
StatEff.Remove(StatusEffectEn.Ride);
StatEff.Add(StatusEffectEn.Dead);
DeathHit = DateTime.Now;
if (PKPoints >= 1000)
World.SendMsgToAll("SYSTEM", Attacker.Name + " has captured " + Name + " and sent him to jail.", 2000, 0);
then i just added
Code:
Alive = false;
CurHP = 0;
if (AT != AttackType.Magic && !IsSkill)
World.Action(this, Packets.AttackPacket(Attacker.EntityID, EntityID, Loc.X, Loc.Y, Damage, (byte)AT).Get);
World.Action(this, Packets.AttackPacket(Attacker.EntityID, EntityID, Loc.X, Loc.Y, Damage, (byte)AttackType.Kill).Get);
StatEff.Remove(StatusEffectEn.Cyclone);
StatEff.Remove(StatusEffectEn.FatalStrike);
StatEff.Remove(StatusEffectEn.BlueName);
StatEff.Remove(StatusEffectEn.Flashy);
StatEff.Remove(StatusEffectEn.ShurikenVortex);
BlueName = false;
StatEff.Remove(StatusEffectEn.SuperMan);
StatEff.Remove(StatusEffectEn.XPStart);
StatEff.Remove(StatusEffectEn.Ride);
StatEff.Add(StatusEffectEn.Dead);
DeathHit = DateTime.Now;
[COLOR="Red"]if (Loc.Map == 1005)
{
HonorPoints -= 5;
Teleport(1505, 154, 218);//Teleports the player who dies in jail
World.SendMsgToAll("SYSTEM", Name + " Has Gained a DeathPoint.", 2011, 0);
}[/COLOR]
if (PKPoints >= 1000)
World.SendMsgToAll("SYSTEM", Attacker.Name + " has captured " + Name + " and sent him to jail.", 2000, 0);
|
|
|
08/07/2010, 18:30
|
#25
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Try make it
Code:
if (Loc.Map == 1005 && TEAMJOIN)//Change TEAMJOIN to a check for f u are signed up to the tournament
{
HonorPoints -= 5;
Teleport(6000, 55, 55);//Teleports the player who dies in jail
World.SendMsgToAll("SYSTEM", Name + " Has Gained a DeathPoint.", 2011, 0);
}
|
|
|
08/07/2010, 21:40
|
#26
|
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
|
in the red is the thing im stuck on is cuz there are two teams remember i have TeamJoined1 and TeamJoined2 or shuld i just place MyTeam
Quote:
Originally Posted by grillmad
Try make it
Code:
if (Loc.Map == 1005 && [COLOR="Red"]TEAMJOIN[/COLOR])//Change TEAMJOIN to a check for f u are signed up to the tournament
{
HonorPoints -= 5;
Teleport(6000, 55, 55);//Teleports the player who dies in jail
World.SendMsgToAll("SYSTEM", Name + " Has Gained a DeathPoint.", 2011, 0);
}
|
yes that would work way better... but as i was setting that up the NPC wasnt checking if the tournament was even on in the first place so the npc wuldnt show dialouge well actually wuldnt open at all.... i used this
Code:
if (Control == 0)
{
[COLOR="Red"]if (GC.MyChar.Job == 40 || GC.MyChar.Job == 41 || GC.MyChar.Job == 42 || GC.MyChar.Job == 43 || GC.MyChar.Job == 44 || GC.MyChar.Job == 45 || GC.MyChar.Job >= 100 || GC.MyChar.Job == 50 || GC.MyChar.Job == 51 || GC.MyChar.Job == 52 || GC.MyChar.Job == 53 || GC.MyChar.Job == 54 || GC.MyChar.Job == 55)[/COLOR]
[COLOR="Red"]{
GC.AddSend(Packets.NPCSay("You can't sign up, if you are archer, ninja or taoist."));
GC.AddSend(Packets.NPCLink("Okay i see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}[/COLOR]
[COLOR="Red"]else if (MyThread.PKStarter == true)[/COLOR]
{
GC.AddSend(Packets.NPCSay("Do you want enter the TeamPK Tournament, You Need A Team Of Two To Enter?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
even this wasnt opening the NPC
|
|
|
08/08/2010, 01:02
|
#27
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Quote:
Originally Posted by ftp4life
in the red is the thing im stuck on is cuz there are two teams remember i have TeamJoined1 and TeamJoined2 or shuld i just place MyTeam
yes that would work way better... but as i was setting that up the NPC wasnt checking if the tournament was even on in the first place so the npc wuldnt show dialouge well actually wuldnt open at all.... i used this
Code:
if (Control == 0)
{
[COLOR="Red"]if (GC.MyChar.Job == 40 || GC.MyChar.Job == 41 || GC.MyChar.Job == 42 || GC.MyChar.Job == 43 || GC.MyChar.Job == 44 || GC.MyChar.Job == 45 || GC.MyChar.Job >= 100 || GC.MyChar.Job == 50 || GC.MyChar.Job == 51 || GC.MyChar.Job == 52 || GC.MyChar.Job == 53 || GC.MyChar.Job == 54 || GC.MyChar.Job == 55)[/COLOR]
[COLOR="Red"]{
GC.AddSend(Packets.NPCSay("You can't sign up, if you are archer, ninja or taoist."));
GC.AddSend(Packets.NPCLink("Okay i see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}[/COLOR]
[COLOR="Red"]else if (MyThread.PKStarter == true)[/COLOR]
{
GC.AddSend(Packets.NPCSay("Do you want enter the TeamPK Tournament, You Need A Team Of Two To Enter?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
even this wasnt opening the NPC
|
the npc is not even getting open, because the check u used with bool. is for the bool to the timer.
make a new and use for the npc.
|
|
|
08/08/2010, 01:33
|
#28
|
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
|
so make a new class like that Team Death Match
|
|
|
08/08/2010, 01:39
|
#29
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
ye u could do that
|
|
|
08/08/2010, 01:47
|
#30
|
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
|
rawr alot of more work AHAHA its ok lol... but would that mean id need to change the timer u set up for me?
|
|
|
 |
|
Similar Threads
|
2vs2 Partner gesucht...
08/04/2010 - Starcraft 2 - 3 Replies
Hey mir gehen diese Randoms total auf die Nüsse. Entweder immer dc oder leaven oder oder oder -.- (3vs3 - 16Games - 1win...)
Gibt es hier jemand der 2vs2 noch kein Partner hat und in noch keiner Liga ist?
Weil ich hab 2vs2 noch frei und will mir das net versauen :/
|
1vs1 o 2vs2
05/29/2010 - WarRock - 8 Replies
na hat jemand hier lust zu zocken?? 1gg1 oder 2gg2 meldet euch einfach mal^^
|
Arena 2vs2 Guide!
12/27/2006 - WoW Guides & Templates - 6 Replies
Hi there, found this:
2v2
~Druid & Rogue~
Probably the best duo for arena's. Since they both can stealth, you can take a limited amount of time walking around and waiting for the perfect chance to jump the two. If there is a healer on the team, target them first. Same with any type of casters, because they get in the way. Once they are down, close in on the other. If the rogue is starting to become low on health, the druid should go out of cat/bear form and start healing. Thats the main...
|
All times are GMT +1. The time now is 07:49.
|
|