Mr. Co
2019-07-23, 05:02 AM
السلامه عليكم ورحمه الله وبركاتو
نهردى جيبلكم حل مشكله الشعر بعد ابجريد ال3 دى
اول حاجه هتعملها هتفتح الكلاس EntityTable.cs
Kernel.Random.Next
هتلقيه بالشكل ده بدله بدل الي عندك
client.Player.HairStyle = (ushort)(Color * 1 + 10 + (byte)Kernel.Random.Next(4, 9));
وبعدين هتخش علي ال Npcs.cs وهتدور علي #region Barber وتبدل الكود بتاعه كله بده
#region Barber
case 10002:
{
dialog.Avatar(241);
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[Normal]", 1);
dialog.Option("HairStyle[Monk]", 153);
dialog.Option("HairStyle[VIP4]", 154);
dialog.Option("HairStyle[VIP5]", 155);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
#region HairStyle[Normal]
case 1:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[1]", 2);
dialog.Option("HairStyle[2]", 3);
dialog.Option("HairStyle[3]", 4);
dialog.Option("HairStyle[4]", 5);
dialog.Option("HairStyle[5]", 6);
dialog.Option("HairStyle[6]", 7);
dialog.Option("HairStyle[7]", 8);
dialog.Option("HairStyle[8]", 9);
dialog.Option("HairStyle[9]", 10);
dialog.Option("HairStyle[10]", 11);
dialog.Option("More styles.", 151);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 151:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[11]", 12);
dialog.Option("HairStyle[12]", 13);
dialog.Option("HairStyle[13]", 14);
dialog.Option("HairStyle[14]", 15);
dialog.Option("HairStyle[15]", 16);
dialog.Option("HairStyle[16]", 17);
dialog.Option("HairStyle[17]", 18);
dialog.Option("HairStyle[18]", 19);
dialog.Option("HairStyle[19]", 20);
dialog.Option("HairStyle[20]", 21);
dialog.Option("More styles.", 152);
dialog.Option("Back.", 1);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 152:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[21]", 22);
dialog.Option("HairStyle[22]", 23);
dialog.Option("HairStyle[23]", 24);
dialog.Option("HairStyle[24]", 25);
dialog.Option("HairStyle[25]", 26);
dialog.Option("HairStyle[26]", 27);
dialog.Option("HairStyle[27]", 28);
dialog.Option("HairStyle[28]", 29);
dialog.Option("HairStyle[29]", 30);
dialog.Option("HairStyle[30]", 31);
dialog.Option("Back.", 1);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
case 30:
case 31:
{
client.Player.HairStyle = (ushort)(npcRequest.OptionID - 1);
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
#endregion
#region HairStyle[Monk]
case 153:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[1]", 60);
dialog.Option("HairStyle[2]", 61);
dialog.Option("HairStyle[3]", 62);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 60:
case 61:
case 62:
{
client.Player.HairStyle = (ushort)(npcRequest.OptionID);
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
#endregion
#region HairStyle[VIP4]
case 154:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[1]", 51);
dialog.Option("HairStyle[2]", 52);
dialog.Option("HairStyle[3]", 54);
dialog.Option("HairStyle[4]", 55);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 51:
case 52:
case 53:
case 54:
case 55:
{
if (client.Player.VIPLevel >= 4)
{
client.Player.HairStyle = (ushort)(npcRequest.OptionID);
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
}
else
{
dialog.Text("sorry you not VipLevel ?4");
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
}
break;
}
#endregion
#region HairStyle[VIP5]
case 155:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[1]", 39);
dialog.Option("HairStyle[2]", 40);
dialog.Option("HairStyle[3]", 32);
dialog.Option("HairStyle[4]", 33);
dialog.Option("HairStyle[5]", 34);
dialog.Option("HairStyle[6]", 35);
dialog.Option("HairStyle[7]", 36);
dialog.Option("HairStyle[8]", 37);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 39:
case 40:
case 32:
case 33:
case 34:
case 35:
case 36:
case 37:
case 38:
{
if (client.Player.VIPLevel >= 5)
{
if (npcRequest.OptionID == 39 || npcRequest.OptionID == 40)
{
client.Player.HairStyle = (ushort)(npcRequest.OptionID - 9);
}
else
{
client.Player.HairStyle = (ushort)(npcRequest.OptionID);
}
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
}
else
{
dialog.Text("sorry you not VipLevel ?5");
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
}
break;
}
#endregion
}
break;
}
#endregion
نهردى جيبلكم حل مشكله الشعر بعد ابجريد ال3 دى
اول حاجه هتعملها هتفتح الكلاس EntityTable.cs
Kernel.Random.Next
هتلقيه بالشكل ده بدله بدل الي عندك
client.Player.HairStyle = (ushort)(Color * 1 + 10 + (byte)Kernel.Random.Next(4, 9));
وبعدين هتخش علي ال Npcs.cs وهتدور علي #region Barber وتبدل الكود بتاعه كله بده
#region Barber
case 10002:
{
dialog.Avatar(241);
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[Normal]", 1);
dialog.Option("HairStyle[Monk]", 153);
dialog.Option("HairStyle[VIP4]", 154);
dialog.Option("HairStyle[VIP5]", 155);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
#region HairStyle[Normal]
case 1:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[1]", 2);
dialog.Option("HairStyle[2]", 3);
dialog.Option("HairStyle[3]", 4);
dialog.Option("HairStyle[4]", 5);
dialog.Option("HairStyle[5]", 6);
dialog.Option("HairStyle[6]", 7);
dialog.Option("HairStyle[7]", 8);
dialog.Option("HairStyle[8]", 9);
dialog.Option("HairStyle[9]", 10);
dialog.Option("HairStyle[10]", 11);
dialog.Option("More styles.", 151);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 151:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[11]", 12);
dialog.Option("HairStyle[12]", 13);
dialog.Option("HairStyle[13]", 14);
dialog.Option("HairStyle[14]", 15);
dialog.Option("HairStyle[15]", 16);
dialog.Option("HairStyle[16]", 17);
dialog.Option("HairStyle[17]", 18);
dialog.Option("HairStyle[18]", 19);
dialog.Option("HairStyle[19]", 20);
dialog.Option("HairStyle[20]", 21);
dialog.Option("More styles.", 152);
dialog.Option("Back.", 1);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 152:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[21]", 22);
dialog.Option("HairStyle[22]", 23);
dialog.Option("HairStyle[23]", 24);
dialog.Option("HairStyle[24]", 25);
dialog.Option("HairStyle[25]", 26);
dialog.Option("HairStyle[26]", 27);
dialog.Option("HairStyle[27]", 28);
dialog.Option("HairStyle[28]", 29);
dialog.Option("HairStyle[29]", 30);
dialog.Option("HairStyle[30]", 31);
dialog.Option("Back.", 1);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
case 30:
case 31:
{
client.Player.HairStyle = (ushort)(npcRequest.OptionID - 1);
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
#endregion
#region HairStyle[Monk]
case 153:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[1]", 60);
dialog.Option("HairStyle[2]", 61);
dialog.Option("HairStyle[3]", 62);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 60:
case 61:
case 62:
{
client.Player.HairStyle = (ushort)(npcRequest.OptionID);
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
break;
}
#endregion
#region HairStyle[VIP4]
case 154:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[1]", 51);
dialog.Option("HairStyle[2]", 52);
dialog.Option("HairStyle[3]", 54);
dialog.Option("HairStyle[4]", 55);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 51:
case 52:
case 53:
case 54:
case 55:
{
if (client.Player.VIPLevel >= 4)
{
client.Player.HairStyle = (ushort)(npcRequest.OptionID);
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
}
else
{
dialog.Text("sorry you not VipLevel ?4");
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
}
break;
}
#endregion
#region HairStyle[VIP5]
case 155:
{
dialog.Text("What kind of hair style would you like?");
dialog.Option("HairStyle[1]", 39);
dialog.Option("HairStyle[2]", 40);
dialog.Option("HairStyle[3]", 32);
dialog.Option("HairStyle[4]", 33);
dialog.Option("HairStyle[5]", 34);
dialog.Option("HairStyle[6]", 35);
dialog.Option("HairStyle[7]", 36);
dialog.Option("HairStyle[8]", 37);
dialog.Option("Nevermind", 255);
dialog.Send();
break;
}
case 39:
case 40:
case 32:
case 33:
case 34:
case 35:
case 36:
case 37:
case 38:
{
if (client.Player.VIPLevel >= 5)
{
if (npcRequest.OptionID == 39 || npcRequest.OptionID == 40)
{
client.Player.HairStyle = (ushort)(npcRequest.OptionID - 9);
}
else
{
client.Player.HairStyle = (ushort)(npcRequest.OptionID);
}
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
}
else
{
dialog.Text("sorry you not VipLevel ?5");
dialog.Text("Done!");
dialog.Option("Thanks.", 255);
dialog.Send();
}
break;
}
#endregion
}
break;
}
#endregion