|
المشاركات 113 |
+التقييم 0.06 |
تاريخ التسجيل Feb 2020 |
الاقامة |
نظام التشغيل |
رقم العضوية 3470 |
#region ClassPkEnvoy
#region ClassPkEnvoy 1002
case 705:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Everyone settle down! I need to announce that there are new rules for the Class PK War!");
dialog.Option("Tell~me~more.", (byte)1);
dialog.Option("Sign~up.", (byte)2);
dialog.Option("Not~interested.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
dialog.Text("The Class PK War for each class starts from 20:00 to 20:15 and ends at 20:30, every Thursday.");
dialog.Text("~Each round can last up to 1 hour. Since I won`t accept any applications once the contest starts, you need to be sure and sign up 15 minutes before it begins.");
dialog.Text("~Players from each class will be divided into 4 groups, that is, Level 1-99, 100-119, 120-129 and 130+. The only survivor should talk to the Class PK Escort to claim the");
dialog.Text("~experience worth 5 EXP Balls. However, if there are 2 or more players left when time is up, the contest will be closed and no one will receive the grand prize.");
dialog.Text("~Would you like to sign up for the battle?");
dialog.Option("Sure.", (byte)2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 2:
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Thursday && DateTime.Now.Hour == 20 && DateTime.Now.Minute < 15)
{
#region Trojan
if ((int)client.Player.Class >= 10 && (int)client.Player.Class <= 15)//Trojan
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(1500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(1501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(1502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(1503, 75, 60);
break;
}
}
#endregion
#region Warrior
else if ((int)client.Player.Class >= 20 && (int)client.Player.Class <= 25)//Warrior
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(2500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(2501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(2502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(2503, 75, 60);
break;
}
}
#endregion
#region Archer
else if ((int)client.Player.Class >= 40 && (int)client.Player.Class <= 45)//Archer
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(4500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(4501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(4502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(4503, 75, 60);
break;
}
}
#endregion
#region Ninja
else if ((int)client.Player.Class >= 50 && (int)client.Player.Class <= 55)//Ninja
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(5500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(5501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(5502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(5503, 75, 60);
break;
}
}
#endregion
#region Monk
else if ((int)client.Player.Class >= 60 && (int)client.Player.Class <= 65)//Monk
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(6500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(6501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(6502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(6503, 75, 60);
break;
}
}
#endregion
#region Pirate
else if ((int)client.Player.Class >= 70 && (int)client.Player.Class <= 75)//Pirate
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(7500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(7501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(7502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(7503, 75, 60);
break;
}
}
#endregion
#region LongLee
else if ((int)client.Player.Class >= 80 && (int)client.Player.Class <= 85)//LongLee
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(8500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(8501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(8502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(8503, 75, 60);
break;
}
}
#endregion
#region Water
else if ((int)client.Player.Class >= 130 && (int)client.Player.Class <= 135)//Water
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(13500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(13501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(13502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(13503, 75, 60);
break;
}
}
#endregion
#region Fire
else if ((int)client.Player.Class >= 140 && (int)client.Player.Class <= 145)//Fire
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(14500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(14501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(14502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(14503, 75, 60);
break;
}
}
#endregion
#region WindWalker
else if ((int)client.Player.Class >= 160 && (int)client.Player.Class <= 165)//WindWalker
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(16500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(16501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(16502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(16503, 75, 60);
break;
}
}
#endregion
client.Player.PKMode = Game.Enums.PKMode.PK;
client.Send(new MsgAction(true)
{
UID = client.Player.UID,
ID = MsgAction.Mode.ChangePKMode,
dwParam = (uint)client.Player.PKMode
});
}
else
{
dialog.Text("Sorry, the war is not finished");
dialog.Option("Ah ok", 255);
dialog.Avatar(154);
}
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 7001
case 706:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Everyone settle down! I need to announce that there are new rules for the Class PK War!");
dialog.Option("Tell~me~more.", (byte)1);
dialog.Option("Sign~up.", (byte)2);
dialog.Option("Not~interested.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
dialog.Text("The Class PK War for each class starts from 23:00 and ends at 23:30, ");
dialog.Text("~Each round can last up to 1 hour. Since I won`t accept any applications once the contest starts, you need to be sure and sign up 15 minutes before it begins.");
dialog.Text("~Players from each class will be divided into 4 groups, that is, Level 1-99, 100-119, 120-129 and 130+. The only survivor should talk to the Class PK Escort to claim the");
dialog.Text("~experience worth 5 EXP Balls. However, if there are 2 or more players left when time is up, the contest will be closed and no one will receive the grand prize.");
dialog.Text("~Would you like to sign up for the battle?");
dialog.Option("Sure.", (byte)2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 2:
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Thursday && DateTime.Now.Hour == 23 && DateTime.Now.Minute < 15)
{
#region Trojan
if ((int)client.Player.Class >= 10 && (int)client.Player.Class <= 15)//Trojan
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(1500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(1501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(1502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(1503, 75, 60);
break;
}
}
#endregion
#region Warrior
else if ((int)client.Player.Class >= 20 && (int)client.Player.Class <= 25)//Warrior
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(2500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(2501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(2502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(2503, 75, 60);
break;
}
}
#endregion
#region Archer
else if ((int)client.Player.Class >= 40 && (int)client.Player.Class <= 45)//Archer
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(4500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(4501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(4502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(4503, 75, 60);
break;
}
}
#endregion
#region Ninja
else if ((int)client.Player.Class >= 50 && (int)client.Player.Class <= 55)//Ninja
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(5500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(5501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(5502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(5503, 75, 60);
break;
}
}
#endregion
#region Monk
else if ((int)client.Player.Class >= 60 && (int)client.Player.Class <= 65)//Monk
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(6500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(6501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(6502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(6503, 75, 60);
break;
}
}
#endregion
#region Pirate
else if ((int)client.Player.Class >= 70 && (int)client.Player.Class <= 75)//Pirate
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(7500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(7501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(7502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(7503, 75, 60);
break;
}
}
#endregion
#region LongLee
else if ((int)client.Player.Class >= 80 && (int)client.Player.Class <= 85)//LongLee
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(8500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(8501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(8502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(8503, 75, 60);
break;
}
}
#endregion
#region Water
else if ((int)client.Player.Class >= 130 && (int)client.Player.Class <= 135)//Water
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(13500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(13501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(13502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(13503, 75, 60);
break;
}
}
#endregion
#region Fire
else if ((int)client.Player.Class >= 140 && (int)client.Player.Class <= 145)//Fire
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(14500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(14501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(14502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(14503, 75, 60);
break;
}
}
#endregion
#region WindWalker
else if ((int)client.Player.Class >= 160 && (int)client.Player.Class <= 165)//WindWalker
{
if ((int)client.Player.Level >= 1 && (int)client.Player.Level <= 99)//0
{
client.Player.Teleport(16500, 75, 60);
break;
}
else if ((int)client.Player.Level >= 100 && (int)client.Player.Level <= 119)//1
{
client.Player.Teleport(16501, 75, 60);
break;
}
else if ((int)client.Player.Level >= 120 && (int)client.Player.Level <= 129)//2
{
client.Player.Teleport(16502, 75, 60);
break;
}
else if ((int)client.Player.Level >= 130 && (int)client.Player.Level <= 140)//3
{
client.Player.Teleport(16503, 75, 60);
break;
}
}
#endregion
client.Player.PKMode = Game.Enums.PKMode.PK;
client.Send(new MsgAction(true)
{
UID = client.Player.UID,
ID = MsgAction.Mode.ChangePKMode,
dwParam = (uint)client.Player.PKMode
});
}
else
{
dialog.Text("Sorry, the war is not finished");
dialog.Option("Ah ok", 255);
dialog.Avatar(154);
}
break;
}
default:
break;
}
break;
}
#endregion
#region Trojan
#region ClassPkEnvoy 1500
case 1500:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 1500 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Trojan PK War (99) , he received Top Trojan, 5000000 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopTrojan, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 1501
case 1501:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 1501 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Trojan PK War (119) , he received Top Trojan, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopTrojan, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 1502
case 1502:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 1502 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 6);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Trojan PK War (129) , he received Top Trojan, 430 ConquerPoints and 6 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopTrojan, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 1503
case 15030:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 1503 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 500000;
// client.Inventory.Add(723834, 0, 10);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Trojan PK War (140) , he received Top Trojan, 645 ConquerPoints and 10 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopTrojan, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#endregion
#region Warrior
#region ClassPkEnvoy 2500
case 2500:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 2500 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Warrior PK War (99) , he received Top Warrior, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopWarrior, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 2501
case 2501:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 2501 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Warrior PK War (119) , he received Top Warrior, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopWarrior, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 2502
case 2502:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 2502 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 6);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Warrior PK War (129) , he received Top Warrior, 430 ConquerPoints and 6 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopWarrior, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 2503
case 2503:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 2503 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 500000;
//client.Inventory.Add(723834, 0, 10);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Warrior PK War (140) , he received Top Warrior, 645 ConquerPoints and 10 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopWarrior, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#endregion
#region Archer
#region ClassPkEnvoy 4500
case 4500:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 4500 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Archer PK War (99) , he received Top Archer, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopArcher, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 4501
case 45010:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 4501 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Archer PK War (119) , he received Top Archer, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopArcher, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 4502
case 4502:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 4502 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 6);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Archer PK War (129) , he received Top Archer, 430 ConquerPoints and 6 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopArcher, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 4503
case 4503:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 4503 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 500000;
// client.Inventory.Add(723834, 0, 10);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Archer PK War (140) , he received Top Archer, 645 ConquerPoints and 10 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopArcher, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#endregion
#region Ninja
#region ClassPkEnvoy 5500
case 5500:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 5500 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Ninja PK War (99) , he received Top Ninja, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopNinja, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 5501
case 5501:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 5501 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Ninja PK War (119) , he received Top Ninja, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopNinja, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 5502
case 5502:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 5502 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 6);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Ninja PK War (129) , he received Top Ninja, 430 ConquerPoints and 6 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopNinja, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 5503
case 5503:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 5503 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 500000;
// client.Inventory.Add(723834, 0, 10);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Ninja PK War (140) , he received Top Ninja, 645 ConquerPoints and 10 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopNinja, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#endregion
#region Monk
#region ClassPkEnvoy 6500
case 6500:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 6500 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Monk PK War (99) , he received Top Monk, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags2.TopMonk, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 6501
case 6501:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 6501 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Monk PK War (119) , he received Top Monk, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags2.TopMonk, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 6502
case 6502:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 6502 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 6);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Monk PK War (129) , he received Top Monk, 430 ConquerPoints and 6 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags2.TopMonk, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 6503
case 6503:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 6503 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 500000;
// client.Inventory.Add(723834, 0, 10);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Monk PK War (140) , he received Top Monk, 645 ConquerPoints and 10 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopSpouse, 2, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#endregion
#region Pirate
#region ClassPkEnvoy 7500
case 7500:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 7500 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " WonPirate PK War (99) , he received Top Pirate, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags2.TopPirate2, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 7501
case 7501:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 7501 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Pirate PK War (119) , he received Top Pirate, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags2.TopPirate, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 7502
case 7502:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 7502 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 6);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Pirate PK War (129) , he received Top Pirate, 430 ConquerPoints and 6 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags2.TopPirate, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 7503
case 7503:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 7503 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 500000;
// client.Inventory.Add(723834, 0, 10);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won Pirate PK War (140) , he received Top Pirate, 645 ConquerPoints and 10 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags2.TopPirate, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#endregion
#region DragonLee
#region ClassPkEnvoy 8500
case 8500:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 8500 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won DragonLee PK War (99) , he received Top DragonLee, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags3.DragonWarriorTop, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 8501
case 8501:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 8501 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won DragonLee PK War (119) , he received Top DragonLee, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags3.DragonWarriorTop, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 8502
case 8502:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 8502 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 6);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won DragonLee PK War (129) , he received Top DragonLee, 430 ConquerPoints and 6 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags3.DragonWarriorTop, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 8503
case 8503:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 8503 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 500000;
// client.Inventory.Add(723834, 0, 10);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won DragonLee PK War (140) , he received Top DragonLee, 645 ConquerPoints and 10 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags3.DragonWarriorTop, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#endregion
#region WaterTaoist
#region ClassPkEnvoy 13500
case 13500:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 13500 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won WaterTaoist PK War (99) , he received Top WaterTaoist, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopWaterTaoist, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 13501
case 13501:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 13501 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won WaterTaoist PK War (119) , he received Top WaterTaoist, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopWaterTaoist, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 13502
case 13502:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 13502 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 6);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won WaterTaoist PK War (129) , he received Top WaterTaoist, 430 ConquerPoints and 6 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopWaterTaoist, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 13503
case 13503:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 13503 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 500000;
// client.Inventory.Add(723834, 0, 10);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won WaterTaoist PK War (140) , he received Top WaterTaoist, 645 ConquerPoints and 10 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopWaterTaoist, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#endregion
#region FireTaoist
#region ClassPkEnvoy 14500
case 14500:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 14500 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won FireTaoist PK War (99) , he received Top FireTaoist, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopFireTaoist, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 14501
case 14501:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 14501 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won FireTaoist PK War (119) , he received Top FireTaoist, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopFireTaoist, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 14502
case 14502:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 14502 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 6);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won FireTaoist PK War (129) , he received Top FireTaoist, 430 ConquerPoints and 6 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopFireTaoist, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 14503
case 14503:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 14503 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 500000;
// client.Inventory.Add(723834, 0, 10);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won FireTaoist PK War (140) , he received Top FireTaoist, 645 ConquerPoints and 10 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags.TopFireTaoist, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#endregion
#region WindWalker
#region ClassPkEnvoy 16500
case 16500:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 16500 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won WindWalkert PK War (99) , he received Top WindWalker, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags4.WindwalkerTop, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 16501
case 16501:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 16501 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 4);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won WindWalker PK War (119) , he received Top WindWalker, 215 ConquerPoints and 4 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags4.WindwalkerTop, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 16502
case 16502:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 16502 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 50000;
// client.Inventory.Add(723834, 0, 6);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won WindWalker PK War (129) , he received Top WindWalker, 430 ConquerPoints and 6 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags4.WindwalkerTop, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#region ClassPkEnvoy 16503
case 16503:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello , you're the last player alive?");
int alive = 0;
foreach (Rayzo.Client.GameState players in Server.GamePool)
if (players.Player.MapID == 16503 && (!players.Player.Dead))
alive++;
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 30)
{
dialog.Option("Yes.", (byte)1);
}
dialog.Option("Teleport~to~Twin~City.", 2);
dialog.Option("Later.", byte.MaxValue);
dialog.Avatar(154);
dialog.Send();
break;
case 1:
{
client.Player.ConquerPoints += 500000;
// client.Inventory.Add(723834, 0, 10);
Rayzo.Kernel.SendWorldMessage(new MsgTalk("" + client.Player.Name + " Won WindWalker PK War (140) , he received Top WindWalker, 645 ConquerPoints and 10 ExpBalls !", System.Drawing.Color.Black, MsgTalk.TopLeft), Server.GamePool);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags4.WindwalkerTop, 1, DateTime.Now.AddDays(7));
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 410, 354);
EntityTable.SaveEntity(client);
break;
}
case 2:
{
dialog.Text("You wana to teleport back to TwinCity? You are sure?");
dialog.Option("Yes", 3);
dialog.Option("Ah no.", 255);
dialog.Avatar(154);
dialog.Send();
break;
}
case 3:
{
client.Player.Teleport(1002, 410, 354);
break;
}
default:
break;
}
break;
}
#endregion
#endregion
#endregion ClassPkEnvoy
client.player.addtopstatus((ulong)msgupdate.flags2.toppirate2, 1, datetime.now.adddays(7));
public UInt64 TopStatusToInt(UInt64 top)
switch (top)
{
case Network.GamePackets.Update.Flags2.TopMonk: return 7;
case Network.GamePackets.Update.Flags2.TopPirate: return 22;
case Network.GamePackets.Update.Flags3.DragonWarriorTop: return 260;
class Flags
{
public static string TopPirate = "";
public static string TopMonk = "";
public static string DragonWarriorTop = "";
public class Flags3
DragonWarriorTop = 1UL << 154,
LoadFlags()
while (r.Read())
{
TopMonk = r.ReadString("TopMonk");
TopPirate = r.ReadString("TopPirate");
DragonWarriorTop = r.ReadString("DragonWarriorTop");
public static void LoadFlags()
public static void AddTopMonk(Client.GameState client)
{
new MySqlCommand(MySqlCommandType.UPDATE).Update("flags").Set("TopMonk", client.Player.Name).Execute();
TopMonk = client.Player.Name;
return;
}
public static void AddTopPirate(Client.GameState client)
{
new MySqlCommand(MySqlCommandType.UPDATE).Update("flags").Set("TopPirate", client.Player.Name).Execute();
TopPirate = client.Player.Name;
return;
}
public static void AddDragonWarriorTop(Client.GameState client)
{
new MySqlCommand(MySqlCommandType.UPDATE).Update("flags").Set("DragonWarriorTop", client.Player.Name).Execute();
DragonWarriorTop = client.Player.Name;
return;
}
public class Flags2
TopMonk = 0x4000000000000L,
TopPirate = 1UL << 58;
public double DragonGems;
public void AddTopStatus(UInt64 Title, byte flagtype, DateTime EndsOn, Boolean Db = true)
{
Boolean HasFlag = false;
if (IsWarTop(Title))
{
HasFlag = Titles.ContainsKey((TitlePacket.Titles)Title);
Titles.TryAdd((TitlePacket.Titles)Title, EndsOn);
}
else
{
switch (flagtype)
{
case 1:
HasFlag = ContainsFlag(Title);
AddFlag(Title);
break;
case 2:
HasFlag = ContainsFlag2(Title);
AddFlag2(Title);
break;
case 3:
HasFlag = ContainsFlag3(Title);
AddFlag3(Title);
break;
case 4:
HasFlag = ContainsFlag4(Title);
AddFlag4(Title);
break;
}
}
if (Db)
{
if (HasFlag)
{
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.UPDATE);
cmd.Update("status").Set("time", Kernel.ToDateTimeInt(EndsOn))
.Where("status", Title).And("flagtype", flagtype).And("entityid", (UInt32)UID);
cmd.Execute();
}
else
{
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.INSERT);
cmd.Insert("status").Insert("entityid", (UInt32)UID).Insert("status", Title).Insert("flagtype", flagtype).Insert("time", Kernel.ToDateTimeInt(EndsOn));
cmd.Execute();
}
}
}
public void RemoveTopStatus(UInt64 Title, byte flagtype = 0)
{
ulong baseFlag = Title;//TopStatusToInt(Title);
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
cmd.Delete("status", "entityid", UID).And("status", baseFlag).And("flagtype", flagtype).Execute();
switch (flagtype)
{
case 0:
{
var title = (TitlePacket.Titles)baseFlag;
if (Titles.ContainsKey(title))
{
Titles.Remove(title);
if (MyTitle1 == title)
MyTitle1 = Network.GamePackets.TitlePacket.Titles.None;
Owner.SendScreenSpawn(this, true);
}
break;
}
case 1:
RemoveFlag(baseFlag);
break;
case 2:
RemoveFlag2(baseFlag);
break;
case 3:
RemoveFlag3(baseFlag);
break;
case 4:
RemoveFlag4(baseFlag);
break;
}
}
client.Player.AddTopStatus(Update.Flags2.TopPirate, 2, DateTime.Now.AddMinutes(45));
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
انا ركبت سورس وبتش تمام ورفعت القاعده وفيه Npc موجودين في العبه و الكلاس لكن في القاع | Mawdo3jded | مشكلات السيرفيرات كونكر الشخصيه | 14 | 2019-12-04 04:07 PM |