كود:
#region SteedRace
case 1415:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("iam Manger SteedRace Do You want Join With me ?");
dialog.Option("I need join now", 1);
dialog.Option("No Thanks", 255);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.Minute >= 59)
{
Conquer_Online_Server.Network.PacketHandler.WorldMessage("This Player" + client.Entity.Name + " Join Come All SteedRace This First Server With Steed Race By koko ");
client.Entity.Teleport(1950, 061, 156);
break;
}
else
{
dialog.Text("If you want Sign Up,you must choose your Right Time in the right hour hehehe [koko]");
dialog.Option("oK.Sorry", 255);
dialog.Send();
break;
}
}
}
break;
}
#endregion
#region SteedRace Award
case 9874:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("You Are Winner Can You Press I need My Prize");
dialog.Option("Yes.I need My Prize", 1);
dialog.Option("Don't Need Be Win", 255);
dialog.Send();
break;
}
case 1:
foreach (var pClient in Conquer_Online_Server.ServerBase.Kernel.GamePool.Values)
{
pClient.Entity.Teleport(1002, 444, 444);
}
{
Conquer_Online_Server.Network.PacketHandler.WorldMessage("Congratulations! " + client.Entity.Name + " has won Steed Race And Sorry For And GoodLuck Bye Bye Bye [ConquerEvil] ");
client.Entity.Teleport(1002, 431, 379);
client.Entity.ConquerPoints += 20000;
client.Entity.Action = 250;
dialog.Text("Thank You To Join Come Again Later.");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
}
break;
}
#endregion
#region SteedRace
case 121212:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Do you want to leave HoursRace map and teleport to TwinCity? ");
dialog.Option("Yes,Please", 1);
dialog.Option("Just passing by.", 255);
dialog.Avatar(259);
dialog.Send();
break;
}
case 1:
{
client.Entity.Teleport(1002, 430, 380);
break;
}
}
break;
}
#endregion
كود:
INSERT INTO `npcs` VALUES ('121212', '0', '0', 'SteedRace', '0002', '5111', '-1', '1950', '0072', '0143', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', 'None', '0000', '00', '00', '0000', '00', null);
INSERT INTO `npcs` VALUES ('1415', '0', '0', 'SteedRace1', '0002', '5151', '-1', '1036', '0178', '0198', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', 'None', '0000', '00', '00', '0000', '00', null);
INSERT INTO `npcs` VALUES ('9874', '0', '0', 'SteedRace Award', '0002', '5151', '-1', '1950', '0490', '0350', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', 'None', '0000', '00', '00', '0000', '00', null);
INSERT INTO `maps` VALUES ('1950', '1950', '0030', '0000');