Users
2019-06-30, 11:59 AM
بسم الله الموفق والمستعان
بعد ما طرحنا موضوع الثغرات الى ممكن تكون موجوده فى سيرفرك
فى عضو اسمو العفريت اكتشف ثغره عندو فى السيرفر وهى ماكس سبيس لو حول من ولد لبنت
والحل بتعها زى ما وعدانكم ليها حلين اولا
الان بى سى المضمون اهو وعلى ضمانتى
#region Change Sex
case 15805:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("If you want to change your gender for a new life, I can help you. Before making the");
dialog.Text("~magic of gender reassignment works, you need to pay 1075 CPs, and make sure you`ve understood");
dialog.Text("~the rules and procedures about the reassignment.");
dialog.Option("Please~change~my~gender,~now.", 1);
dialog.Option("What~else~should~I~know?", 2);
dialog.Option("Not~interested.", 255);
dialog.Avatar(218);
dialog.Send();
break;
}
case 1:
{
dialog.Text("If you want to change your gender for a new life, I can help you. Before making the");
dialog.Text("~magic of gender reassignment works, you need to pay 1075 CPs, and make sure you`ve understood");
dialog.Text("~the rules and procedures about the reassignment.");
dialog.Option("Please~change~my~gender,~now.", 3);
dialog.Option("What~else~should~I~know?", 2);
dialog.Option("Not~interested.", 255);
dialog.Avatar(218);
dialog.Send();
break;
}
case 2:
{
dialog.Text("To make gender reassignment as simple as possible, I want you to be single, not married. Make sure you`ve");
dialog.Text("~properly handled with your clan and guild affairs. After the reassignment, your name will be removed");
dialog.Text("~from the Charm ranking, and your garment will be put into your inventory. All in all, you need to carefully");
dialog.Option("I~want~to~change~my~gender.", 1);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Avatar(218);
dialog.Send();
break;
}
case 3:
{
if (client.Player.ConquerPoints < 50000000)
{
dialog.Text("Gender reassignment requires 50kk CPs. Make sure you have enough money with you.");
dialog.Option("Okay.", 255);
dialog.Avatar(218);
dialog.Send();
}
else
{
if (client.Player.Body == 1006)
{
MsgItemEquip equips = new MsgItemEquip();
equips.DoEquips(client);
client.Send(equips.ToArray());
client.NobilityInformation.Gender = 1;
client.Player.Spouse = "None";
client.Player.ConquerPoints -= 50000000;
client.Player.Body = 2005;
#region Body Class all
if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
client.Player.Face = (ushort)Kernel.Random.Next(365, 369);
}
else if (client.Player.Class >= 50 && client.Player.Class <= 55)
{
client.Player.Face = (ushort)Kernel.Random.Next(291, 296);
}
else if (client.Player.Class >= 60 && client.Player.Class <= 65)
{
client.Player.Face = (ushort)Kernel.Random.Next(300, 304);
}
else if (client.Player.Class >= 70 && client.Player.Class <= 75)
{
client.Player.Face = (ushort)Kernel.Random.Next(345, 349);
}
else if (client.Player.Class >= 80 && client.Player.Class <= 85)
{
client.Player.Face = (ushort)Kernel.Random.Next(355, 359);
}
else if (client.Player.Class >= 100 && client.Player.Class <= 145)
{
client.Player.Face = (ushort)Kernel.Random.Next(201, 290);
}
else if (client.Player.Class >= 40 && client.Player.Class <= 45)
{
client.Player.Face = (ushort)Kernel.Random.Next(201, 290);
}
else if (client.Player.Class >= 20 && client.Player.Class <= 25)
{
client.Player.Face = (ushort)Kernel.Random.Next(201, 290);
}
else if (client.Player.Class >= 10 && client.Player.Class <= 15)
{
client.Player.Face = (ushort)Kernel.Random.Next(201, 290);
}
#endregion
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
}
else
{
MsgItemEquip equips = new MsgItemEquip();
equips.DoEquips(client);
client.Send(equips.ToArray());
client.NobilityInformation.Gender = 0;
client.Player.Spouse = "None";
client.Player.ConquerPoints -= 50000000;
client.Player.Body = 1006;
#region Body Class all
if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
client.Player.Face = (ushort)Kernel.Random.Next(174, 178);
}
else if (client.Player.Class >= 50 && client.Player.Class <= 55)
{
client.Player.Face = (ushort)Kernel.Random.Next(103, 107);
}
else if (client.Player.Class >= 60 && client.Player.Class <= 65)
{
client.Player.Face = (ushort)Kernel.Random.Next(109, 113);
}
else if (client.Player.Class >= 70 && client.Player.Class <= 75)
{
client.Player.Face = (ushort)Kernel.Random.Next(154, 158);
}
else if (client.Player.Class >= 80 && client.Player.Class <= 85)
{
client.Player.Face = (ushort)Kernel.Random.Next(164, 168);
}
else if (client.Player.Class >= 10 && client.Player.Class <= 145)
{
client.Player.Face = (ushort)Kernel.Random.Next(1, 102);
}
else if (client.Player.Class >= 40 && client.Player.Class <= 45)
{
client.Player.Face = (ushort)Kernel.Random.Next(1, 102);
}
else if (client.Player.Class >= 20 && client.Player.Class <= 25)
{
client.Player.Face = (ushort)Kernel.Random.Next(1, 102);
}
else if (client.Player.Class >= 10 && client.Player.Class <= 15)
{
client.Player.Face = (ushort)Kernel.Random.Next(1, 102);
}
#endregion
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
}
}
break;
}
}
break;
}
#endregion
طيب لو لسه المشكله موجوده هتصورلى الرساله الى بيجيبهالك لما يديك ماكس سبيس
وانا هقفلك الثغره من السورس كلو يا معلم :)
لو قابلتك ثغره اكتبهالنا وهنرد عليك بالحل والله الموفق والمستعان
دعوه حلوه لاخوك بقى :)
بعد ما طرحنا موضوع الثغرات الى ممكن تكون موجوده فى سيرفرك
فى عضو اسمو العفريت اكتشف ثغره عندو فى السيرفر وهى ماكس سبيس لو حول من ولد لبنت
والحل بتعها زى ما وعدانكم ليها حلين اولا
الان بى سى المضمون اهو وعلى ضمانتى
#region Change Sex
case 15805:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("If you want to change your gender for a new life, I can help you. Before making the");
dialog.Text("~magic of gender reassignment works, you need to pay 1075 CPs, and make sure you`ve understood");
dialog.Text("~the rules and procedures about the reassignment.");
dialog.Option("Please~change~my~gender,~now.", 1);
dialog.Option("What~else~should~I~know?", 2);
dialog.Option("Not~interested.", 255);
dialog.Avatar(218);
dialog.Send();
break;
}
case 1:
{
dialog.Text("If you want to change your gender for a new life, I can help you. Before making the");
dialog.Text("~magic of gender reassignment works, you need to pay 1075 CPs, and make sure you`ve understood");
dialog.Text("~the rules and procedures about the reassignment.");
dialog.Option("Please~change~my~gender,~now.", 3);
dialog.Option("What~else~should~I~know?", 2);
dialog.Option("Not~interested.", 255);
dialog.Avatar(218);
dialog.Send();
break;
}
case 2:
{
dialog.Text("To make gender reassignment as simple as possible, I want you to be single, not married. Make sure you`ve");
dialog.Text("~properly handled with your clan and guild affairs. After the reassignment, your name will be removed");
dialog.Text("~from the Charm ranking, and your garment will be put into your inventory. All in all, you need to carefully");
dialog.Option("I~want~to~change~my~gender.", 1);
dialog.Option("I`ll~think~about~it.", 255);
dialog.Avatar(218);
dialog.Send();
break;
}
case 3:
{
if (client.Player.ConquerPoints < 50000000)
{
dialog.Text("Gender reassignment requires 50kk CPs. Make sure you have enough money with you.");
dialog.Option("Okay.", 255);
dialog.Avatar(218);
dialog.Send();
}
else
{
if (client.Player.Body == 1006)
{
MsgItemEquip equips = new MsgItemEquip();
equips.DoEquips(client);
client.Send(equips.ToArray());
client.NobilityInformation.Gender = 1;
client.Player.Spouse = "None";
client.Player.ConquerPoints -= 50000000;
client.Player.Body = 2005;
#region Body Class all
if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
client.Player.Face = (ushort)Kernel.Random.Next(365, 369);
}
else if (client.Player.Class >= 50 && client.Player.Class <= 55)
{
client.Player.Face = (ushort)Kernel.Random.Next(291, 296);
}
else if (client.Player.Class >= 60 && client.Player.Class <= 65)
{
client.Player.Face = (ushort)Kernel.Random.Next(300, 304);
}
else if (client.Player.Class >= 70 && client.Player.Class <= 75)
{
client.Player.Face = (ushort)Kernel.Random.Next(345, 349);
}
else if (client.Player.Class >= 80 && client.Player.Class <= 85)
{
client.Player.Face = (ushort)Kernel.Random.Next(355, 359);
}
else if (client.Player.Class >= 100 && client.Player.Class <= 145)
{
client.Player.Face = (ushort)Kernel.Random.Next(201, 290);
}
else if (client.Player.Class >= 40 && client.Player.Class <= 45)
{
client.Player.Face = (ushort)Kernel.Random.Next(201, 290);
}
else if (client.Player.Class >= 20 && client.Player.Class <= 25)
{
client.Player.Face = (ushort)Kernel.Random.Next(201, 290);
}
else if (client.Player.Class >= 10 && client.Player.Class <= 15)
{
client.Player.Face = (ushort)Kernel.Random.Next(201, 290);
}
#endregion
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
}
else
{
MsgItemEquip equips = new MsgItemEquip();
equips.DoEquips(client);
client.Send(equips.ToArray());
client.NobilityInformation.Gender = 0;
client.Player.Spouse = "None";
client.Player.ConquerPoints -= 50000000;
client.Player.Body = 1006;
#region Body Class all
if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
client.Player.Face = (ushort)Kernel.Random.Next(174, 178);
}
else if (client.Player.Class >= 50 && client.Player.Class <= 55)
{
client.Player.Face = (ushort)Kernel.Random.Next(103, 107);
}
else if (client.Player.Class >= 60 && client.Player.Class <= 65)
{
client.Player.Face = (ushort)Kernel.Random.Next(109, 113);
}
else if (client.Player.Class >= 70 && client.Player.Class <= 75)
{
client.Player.Face = (ushort)Kernel.Random.Next(154, 158);
}
else if (client.Player.Class >= 80 && client.Player.Class <= 85)
{
client.Player.Face = (ushort)Kernel.Random.Next(164, 168);
}
else if (client.Player.Class >= 10 && client.Player.Class <= 145)
{
client.Player.Face = (ushort)Kernel.Random.Next(1, 102);
}
else if (client.Player.Class >= 40 && client.Player.Class <= 45)
{
client.Player.Face = (ushort)Kernel.Random.Next(1, 102);
}
else if (client.Player.Class >= 20 && client.Player.Class <= 25)
{
client.Player.Face = (ushort)Kernel.Random.Next(1, 102);
}
else if (client.Player.Class >= 10 && client.Player.Class <= 15)
{
client.Player.Face = (ushort)Kernel.Random.Next(1, 102);
}
#endregion
client.Equipment.UpdateEntityPacket();
Database.EntityTable.SaveEntity(client);
}
}
break;
}
}
break;
}
#endregion
طيب لو لسه المشكله موجوده هتصورلى الرساله الى بيجيبهالك لما يديك ماكس سبيس
وانا هقفلك الثغره من السورس كلو يا معلم :)
لو قابلتك ثغره اكتبهالنا وهنرد عليك بالحل والله الموفق والمستعان
دعوه حلوه لاخوك بقى :)