 |
|
محمد ياسر |
2019-04-18 10:52 AM |
npc Change Class
npc تغير الشخصيه
وانا انصح انه يكون للجي ام فقط لانه بيحافظ علي اسكلات الشخصيه الي كان فيه قبل ما يغيرها
فخليه للجي ام يغير بسرعه
ضيفهم في
NPCS.CS
كود PHP:
#region Change Class
case 96326:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Change Your Class?");
dialog.Option("Monk", 1);
dialog.Option("Ninja", 2);
dialog.Option("Trojan", 3);
dialog.Option("Fire", 4);
dialog.Option("Water", 5);
dialog.Option("LeeLong", 6);
dialog.Option("Worior", 7);
dialog.Option("Archer", 8);
dialog.Option("Pairte", 9);
dialog.Option("Not now.", 255);
dialog.Send();
break;
}
case 1://Monk
{
if (client.Entity.ConquerPoints >= 1000000)
{
client.Entity.ConquerPoints -= 1000000;
client.Entity.Class = 65;//
}
else
{
dialog.Text("You Don't Have 1000000 Cps Collect Cps");
dialog.Option("Sorry.", 255);
dialog.Send();
break;
}
break;
}
case 9://Monk
{
if (client.Entity.ConquerPoints >= 1000000)
{
client.Entity.ConquerPoints -= 1000000;
client.Entity.Class = 75;//
}
else
{
dialog.Text("You Don't Have 1000000 Cps Collect Cps");
dialog.Option("Sorry.", 255);
dialog.Send();
break;
}
break;
}
case 2://Ninja
{
if (client.Entity.ConquerPoints >= 1000000)
{
client.Entity.ConquerPoints -= 1000000;
client.Entity.Class = 55;
}
else
{
dialog.Text("You Don't Have 1000000 Cps Collect Cps");
dialog.Option("Sorry.", 255);
dialog.Send();
break;
}
break;
}
case 3://Trojan
{
if (client.Entity.ConquerPoints >= 1000000)
{
client.Entity.ConquerPoints -= 1000000;
client.Entity.Class = 15;//
}
else
{
dialog.Text("You Don't Have 1000000 Cps Collect Cps");
dialog.Option("Sorry.", 255);
dialog.Send();
break;
}
break;
}
case 4://Fire
{
if (client.Entity.ConquerPoints >= 1000000)
{
client.Entity.ConquerPoints -= 1000000;
client.Entity.Class = 145;
}
else
{
dialog.Text("You Don't Have 1000000 Cps Collect Cps");
dialog.Option("Sorry.", 255);
dialog.Send();
break;
}
break;
}
case 5://Water
{
if (client.Entity.ConquerPoints >= 1000000)
{
client.Entity.ConquerPoints -= 1000000;
client.Entity.Class = 135;
}
else
{
dialog.Text("You Don't Have 1000000 Cps Collect Cps");
dialog.Option("Sorry.", 255);
dialog.Send();
break;
}
break;
}
case 6://LeeLong
{
if (client.Entity.ConquerPoints >= 1000000)
{
client.Entity.ConquerPoints -= 1000000;
client.Entity.Class = 85;//
}
else
{
dialog.Text("You Don't Have 1000000 Cps Collect Cps");
dialog.Option("Sorry.", 255);
dialog.Send();
break;
}
break;
}
case 7://Worior
{
if (client.Entity.ConquerPoints >= 1000000)
{
client.Entity.ConquerPoints -= 1000000;
client.Entity.Class = 25;//
}
else
{
dialog.Text("You Don't Have 1000000 Cps Collect Cps");
dialog.Option("Sorry.", 255);
dialog.Send();
break;
}
break;
}
case 8://Archer
{
if (client.Entity.ConquerPoints >= 1000000)
{
client.Entity.ConquerPoints -= 1000000;
client.Entity.Class = 45;//
}
else
{
dialog.Text("You Don't Have 1000000 Cps Collect Cps");
dialog.Option("Sorry.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
|
MohamedModyAdel |
2019-06-25 10:48 PM |
رد: npc Change Class
جميل
|
مرحبا بكم في منتدي اكواد لتطوير الالعاب