بسم الله الرحمن الرحيم
السلام عليكم ورحمة الله وبركاته
ازيكم يا احلى اعضاء ومشرفين بس مش كلهم
دلوقتى وبس من ميمو برنس حصريات 5165
حفلة صندوق الحظ ودى عبارة عن صندوق تدوس عليه ولازم يكون معاك 2000 كبس
ولما تدوس تكسب كبس او تخصر كبس ودى وانت وحظك بقى
وايه نسبة الكسب اكتر من الخصارة وبتكسب من 2000 ل 15000 كبس
الحفلة من صنعى الحمد لله
دلوقتى جيه وقت الشرح
هتروح NPCDialog.cs
وتحط الكود دة تحت اى كود
-==(( مربع كود ))==-#region Lucky Box
case 908350:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello, would you like to Play Lucky Box? This For 2k CPs"));
GC.AddSend(Packets.NPCLink("Yes, I would.", 1));
GC.AddSend(Packets.NPCLink("No, I dont Have Cps.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
if (GC.MyChar.CPs >= 2000)
{
GC.AddSend(Packets.NPCSay(" This Maked By Memo1340 > Ninja-Cool P-server."));
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1)
{
GC.MyChar.CPs -= 2000;
GC.Message(2005, GC.MyChar.Name + " Has Lost 2000 Cps From Lucky Box #08 ");
}
if (Nr == 2)
{
GC.MyChar.CPs += 2000;
GC.Message(2005, GC.MyChar.Name + " Has Won 2000 Cps From Lucky Box #00 ");
}
if (Nr == 3)
{
GC.MyChar.CPs -= 1000;
GC.Message(2005, GC.MyChar.Name + " Has Lost 1000 Cps From Lucky Box #08 ");
}
if (Nr == 4)
{
GC.MyChar.CPs += 10000;
GC.Message(2005, GC.MyChar.Name + " Has Win 100000 Cps From Lucky Box #00 ");
}
if (Nr == 5)
{
GC.MyChar.CPs -= 2000;
GC.Message(2005, GC.MyChar.Name + " Has Lost 2000 Cps From Lucky Box #08 ");
}
if (Nr == 6)
{
GC.MyChar.CPs += 6000;
GC.Message(2005, GC.MyChar.Name + " Has Won 6000 Cps From Lucky Box #00 ");
}
if (Nr == 7)
{
GC.MyChar.CPs -= 1500;
GC.Message(2005, GC.MyChar.Name + " Has Lost 1500 Cps From Lucky Box #08 ");
}
if (Nr ==
{
GC.MyChar.CPs += 15000;
GC.Message(2005, GC.MyChar.Name + " Has Won 15000 Cps From Lucky Box #00 ");
}
if (Nr == 9)
{
GC.MyChar.CPs -= 2000;
GC.Message(2005, GC.MyChar.Name + " Has Lost 2000 Cps From Lucky Box #08 ");
}
if (Nr == 10)
{
GC.MyChar.CPs += 5000;
GC.Message(2005, GC.MyChar.Name + " Has Won 5000 Cps From Lucky Box #00 ");
}
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have 2000 Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
break;
#endregion
وتروح C:\OldCODB
وتفتح الملف اللى اسمه npc
وتحت دة فيه
908350 9287 2 0 1002 422 381