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..
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());
}
}
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
}
}
}
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?
*** 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);
}
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);
}
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());
}
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.
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...