#region TeamDeathMatch 0
case 54239:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Entity.Tournament_Signed == false)
{
var time = DateTime.Now;
if (DateTime.Now.Minute >= 40 && DateTime.Now.Minute < 41)
{
dialog.Text("The TeamDeathMatch tournament has now started!");
dialog.Text("You will get divided into 4 teams, black and white , blue and red, and ");
dialog.Text("must eliminate the other. Only fastblade/scentsword is allowed!");
dialog.Option("Let me join!", 1);
dialog.Option("Not intrested", 255);
}
else
{
dialog.Text("The TeamDeathMatch tournament is not active");
dialog.Option("I see", 255);
}
}
else
{
dialog.Text("You already Signed in TeamDeathMatch");
dialog.Option("I see", 255);
}
dialog.Send();
break;
}
case 1:
{
if (!client.Spells.ContainsKey(1045) && !client.Spells.ContainsKey(1046))
{
dialog.Text("You need to learn FastBlade or ScentSword first!");
dialog.Option("I see", 255);
dialog.Send();
return;
}
//181515 BlackElegance
//181615 RedElegance
//181815 BlueElegance
//181315 WhiteElegence
if (client.Entity.Tournament_Signed == false)
{
var time = DateTime.Now;
if (DateTime.Now.Minute >= 40 && DateTime.Now.Minute < 41)
{
Random r = new Random();
int Team = r.Next(1, 8);
if (Team == 1 || Team == 2)
{
client.BackupArmorLook = client.ArmorLook;
client.SetNewArmorLook(181325);
http://client.Entity.CurHP = 1;
client.Entity.Tournament_Signed = true;
client.Entity.TeamDeathMatch_WhiteTeam = true;
client.Entity.TeamDeathMatch_Hits = 0;
dialog.Text("You have been signed up for <TeamDeathMatch> <Team White>");
http://GC.AddSend(Packets.NPCSetFace(0)); http://GC.AddSend(Packets.NPCFinish()); }
if (Team == 3 || Team == 4)
{
client.BackupArmorLook = client.ArmorLook;//TeamXor We Not Only But We Are The Best members
client.SetNewArmorLook(181525);
http://client.Entity.CurHP = 1;
client.Entity.Tournament_Signed = true;
client.Entity.TeamDeathMatch_BlackTeam = true;
client.Entity.TeamDeathMatch_Hits = 0;
dialog.Text("You have been signed up for <TeamDeathMatch> <Team Black>");
http://GC.AddSend(Packets.NPCSetFace(0)); http://GC.AddSend(Packets.NPCFinish()); }
if (Team == 5 || Team == 6)
{
client.BackupArmorLook = client.ArmorLook;
client.SetNewArmorLook(181825);
http://client.Entity.CurHP = 1;
client.Entity.Tournament_Signed = true;
client.Entity.TeamDeathMatch_BlueTeam = true;
client.Entity.TeamDeathMatch_Hits = 0;
dialog.Text("You have been signed up for <TeamDeathMatch> <Team Blue>");
http://GC.AddSend(Packets.NPCSetFace(0)); http://GC.AddSend(Packets.NPCFinish()); }
if (Team == 7 || Team == 8)
{
client.BackupArmorLook = client.ArmorLook;
client.SetNewArmorLook(181625);
http://client.Entity.CurHP = 1;
client.Entity.Tournament_Signed = true;
client.Entity.TeamDeathMatch_RedTeam = true;
client.Entity.TeamDeathMatch_Hits = 0;
dialog.Text("You have been signed up for <TeamDeathMatch> <Team Red>");
http://GC.AddSend(Packets.NPCSetFace(0)); http://GC.AddSend(Packets.NPCFinish()); }
}
}
else
{
dialog.Text("You are already signed up for this tournament!");
dialog.Option("I see.", 255);
http://GC.AddSend(Packets.NPCSetFace(67)); http://GC.AddSend(Packets.NPCFinish()); }
dialog.Send();
break;
}
}
break;
}
#endregion