momen elwrdany
10-26-2014, 03:56 PM
اولا هتفتح ملفnpc وتحت اي انبسي ترزع اكواد دي
#region Change Sex Fixed by Mr.momen
case 95178://mr.momen
{//Coded nPc byte Mr.momen
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("You Need Change Sex ?");
dialog.Option("Yes i need.", 1);
dialog.Option("No Thank's.", 255);
dialog.Avatar(110);
dialog.Send();
break;//Mr(Monk)[GM]
}
case 1:
{
dialog.Text("i Change For 5.000.000 ok or no?");
dialog.Option("Oky.", 2);
dialog.Option("No Thank's.", 255);
dialog.Avatar(110);
dialog.Send();
break;
}
case 2:
{
dialog.Text("Tell me The Sex You Need?");
dialog.Option("Male.", 3);
dialog.Option("Famele.", 4);
dialog.Option("No Thank's.", 255);
dialog.Avatar(110);
dialog.Send();
break;
}
case 3:
{
dialog.Text("Big Or Smal Male?");
dialog.Option("Big Male.", 5);
dialog.Option("Small Male.", 6);
dialog.Option("No Thank's.", 255);
dialog.Avatar(110);
dialog.Send();
break;
}
case 4:
{
dialog.Text("Big Or Smal Famele?");
dialog.Option("Big Famele.", 6);
dialog.Option("Small Famele.", 7);
dialog.Option("No Thank's.", 255);
dialog.Avatar(110);
dialog.Send();
break;
}
case 5:
{
if (client.Entity.ConquerPoints >= 5000000)
{
if (client.Entity.Body == 2001 || client.Entity.Body == 2002)
{
client.Equipment.Remove(9);
if (client.Equipment.Objects[9] != null)
client.Equipment.Objects[9] = null;
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
client.NobilityInformation.Gender = 1;
client.Entity.Spouse = "None";
client.Entity.ConquerPoints -= 5000000;
client.Entity.Body = 1004;
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
{
client.Disconnect();
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "are you gay"));
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "Sorry You Don't Have 5.000.000 cPs"));
}
break;
}
case 6:
{
if (client.Entity.ConquerPoints >= 5000000)
{
if (client.Entity.Body == 2001 || client.Entity.Body == 2002)
{
client.Equipment.Remove(9);
if (client.Equipment.Objects[9] != null)
client.Equipment.Objects[9] = null;
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
client.NobilityInformation.Gender = 1;
client.Entity.Spouse = "None";
client.Entity.ConquerPoints -= 5000000;
client.Entity.Body = 1003;
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
{
client.Disconnect();
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "are you gay"));
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "Sorry You Don't Have 5.000.000 cPs"));
}
break;
}
case 7:
{
if (client.Entity.ConquerPoints >= 5000000)
{
if (client.Entity.Body == 1003 || client.Entity.Body == 1004)
{
client.Equipment.Remove(9);
if (client.Equipment.Objects[9] != null)
client.Equipment.Objects[9] = null;
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
client.NobilityInformation.Gender = 0;
client.Entity.Spouse = "None";
client.Entity.ConquerPoints -= 5000000;
client.Entity.Body = 2002;
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
{
client.Disconnect();
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "are you gay"));
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "Sorry You Don't Have 5.000.000 cPs"));
}
break;
}
case 8:
{
if (client.Entity.ConquerPoints >= 5000000)
{
if (client.Entity.Body == 1003 || client.Entity.Body == 1004)
{
client.Equipment.Remove(9);
if (client.Equipment.Objects[9] != null)
client.Equipment.Objects[9] = null;
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
client.NobilityInformation.Gender = 0;
client.Entity.Spouse = "None";
client.Entity.ConquerPoints -= 5000000;
client.Entity.Body = 2002;
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
{
client.Disconnect();
}
}
else
{
dialog.Text("are you gay?");
dialog.Option("i'm not.", 255);//Fixed nPc by Mr.Monk
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "Sorry You Don't Have 5.000.000 cPs"));
}
break;
}//عفواً لايمكن عرض الروابط في الإرشيف
}//Mr.momen
break;
}//mr.momen
#endregion
بعد كدا هتعمل f6عشان تسيف وبعدين تروح تفتح قاعده وتخش علي ملفnpcوتعمل انبسي جديد من+
ودا اي دي بتع انبسي
95178
ودا اسم انبسي
forum.vpscairo
#region Change Sex Fixed by Mr.momen
case 95178://mr.momen
{//Coded nPc byte Mr.momen
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("You Need Change Sex ?");
dialog.Option("Yes i need.", 1);
dialog.Option("No Thank's.", 255);
dialog.Avatar(110);
dialog.Send();
break;//Mr(Monk)[GM]
}
case 1:
{
dialog.Text("i Change For 5.000.000 ok or no?");
dialog.Option("Oky.", 2);
dialog.Option("No Thank's.", 255);
dialog.Avatar(110);
dialog.Send();
break;
}
case 2:
{
dialog.Text("Tell me The Sex You Need?");
dialog.Option("Male.", 3);
dialog.Option("Famele.", 4);
dialog.Option("No Thank's.", 255);
dialog.Avatar(110);
dialog.Send();
break;
}
case 3:
{
dialog.Text("Big Or Smal Male?");
dialog.Option("Big Male.", 5);
dialog.Option("Small Male.", 6);
dialog.Option("No Thank's.", 255);
dialog.Avatar(110);
dialog.Send();
break;
}
case 4:
{
dialog.Text("Big Or Smal Famele?");
dialog.Option("Big Famele.", 6);
dialog.Option("Small Famele.", 7);
dialog.Option("No Thank's.", 255);
dialog.Avatar(110);
dialog.Send();
break;
}
case 5:
{
if (client.Entity.ConquerPoints >= 5000000)
{
if (client.Entity.Body == 2001 || client.Entity.Body == 2002)
{
client.Equipment.Remove(9);
if (client.Equipment.Objects[9] != null)
client.Equipment.Objects[9] = null;
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
client.NobilityInformation.Gender = 1;
client.Entity.Spouse = "None";
client.Entity.ConquerPoints -= 5000000;
client.Entity.Body = 1004;
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
{
client.Disconnect();
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "are you gay"));
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "Sorry You Don't Have 5.000.000 cPs"));
}
break;
}
case 6:
{
if (client.Entity.ConquerPoints >= 5000000)
{
if (client.Entity.Body == 2001 || client.Entity.Body == 2002)
{
client.Equipment.Remove(9);
if (client.Equipment.Objects[9] != null)
client.Equipment.Objects[9] = null;
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
client.NobilityInformation.Gender = 1;
client.Entity.Spouse = "None";
client.Entity.ConquerPoints -= 5000000;
client.Entity.Body = 1003;
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
{
client.Disconnect();
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "are you gay"));
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "Sorry You Don't Have 5.000.000 cPs"));
}
break;
}
case 7:
{
if (client.Entity.ConquerPoints >= 5000000)
{
if (client.Entity.Body == 1003 || client.Entity.Body == 1004)
{
client.Equipment.Remove(9);
if (client.Equipment.Objects[9] != null)
client.Equipment.Objects[9] = null;
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
client.NobilityInformation.Gender = 0;
client.Entity.Spouse = "None";
client.Entity.ConquerPoints -= 5000000;
client.Entity.Body = 2002;
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
{
client.Disconnect();
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "are you gay"));
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "Sorry You Don't Have 5.000.000 cPs"));
}
break;
}
case 8:
{
if (client.Entity.ConquerPoints >= 5000000)
{
if (client.Entity.Body == 1003 || client.Entity.Body == 1004)
{
client.Equipment.Remove(9);
if (client.Equipment.Objects[9] != null)
client.Equipment.Objects[9] = null;
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
client.NobilityInformation.Gender = 0;
client.Entity.Spouse = "None";
client.Entity.ConquerPoints -= 5000000;
client.Entity.Body = 2002;
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
{
client.Disconnect();
}
}
else
{
dialog.Text("are you gay?");
dialog.Option("i'm not.", 255);//Fixed nPc by Mr.Monk
}
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "Sorry You Don't Have 5.000.000 cPs"));
}
break;
}//عفواً لايمكن عرض الروابط في الإرشيف
}//Mr.momen
break;
}//mr.momen
#endregion
بعد كدا هتعمل f6عشان تسيف وبعدين تروح تفتح قاعده وتخش علي ملفnpcوتعمل انبسي جديد من+
ودا اي دي بتع انبسي
95178
ودا اسم انبسي
forum.vpscairo