|
|
|
المشاركات 393 |
+التقييم 0.15 |
تاريخ التسجيل Jul 2019 |
الاقامة اسكندريه |
نظام التشغيل windows 7 |
رقم العضوية 438 |
أفضل جواب - كتبه Hassan Emprator
|
|
كود:
دا حل الصنانديق الي جوا كدا كلها هترد عليك وهتفتح ليك اللوتري |
#region Lottery_By_HassanEmprator
#region LuckyBox
case 925:
case 926:
case 928:
case 929:
case 930:
case 931:
case 932:
case 933:
case 934:
case 935:
case 936:
case 937:
case 938:
case 939:
case 940:
case 942:
case 943:
case 944:
case 945:
case 946:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Inventory.Contains(711504, 1))
{
if (client.LotteryEntries < 500)
{
client.Inventory.Remove(711504, 1);
int rand = Kernel.Random.Next(MrHassan.Database.LotteryTable.LotteryItems.Count);
var item = MrHassan.Database.LotteryTable.LotteryItems[rand];
var tobesent = new newLottery(true);
tobesent.boxid = 3;//npcRequest.NpcID;// 0x10103;
tobesent.ItemID = item.ID;
client.Entity.LOTOITEM = item;
if (item.Sockets > 0)
tobesent.SocketGem1 = 255;
if (item.Sockets > 1)
tobesent.SocketGem2 = 255;
client.Entity.AddJade = 0;
tobesent.JadesAdded = client.Entity.AddJade;
tobesent.plus = item.Plus;
client.LotteryEntries += 1;
client.Send(tobesent);
MrHassan.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " won " + item.Name + " in lottery.", System.Drawing.Color.Black, Message.Talk), MrHassan.Program.Values);
}
else
{
dialog.Text("Sorry, your LotteryEntries has finished come tomorrow.");
dialog.Option("Okay", 255);
}
}
else
{
dialog.Text("You need to SmallLottryTickets to draw from the lottery in the lottery Center.");
dialog.Option("Okay", 255);
}
break;
}
}
break;
}
#endregion
#endregion
#region lottery_by_hassanemprator
#region luckybox
case 925:
Case 926:
Case 928:
Case 929:
Case 930:
Case 931:
Case 932:
Case 933:
Case 934:
Case 935:
Case 936:
Case 937:
Case 938:
Case 939:
Case 940:
Case 942:
Case 943:
Case 944:
Case 945:
Case 946:
{
switch (npcrequest.optionid)
{
case 0:
{
if (client.inventory.contains(711504, 1))
{
if (client.lotteryentries < 500)
{
client.inventory.remove(711504, 1);
int rand = kernel.random.next(mrhassan.database.lotterytable.lotteryitems.count);
var item = mrhassan.database.lotterytable.lotteryitems[rand];
var tobesent = new newlottery(true);
tobesent.boxid = 3;//npcrequest.npcid;// 0x10103;
tobesent.itemid = item.id;
client.entity.lotoitem = item;
if (item.sockets > 0)
tobesent.socketgem1 = 255;
if (item.sockets > 1)
tobesent.socketgem2 = 255;
client.entity.addjade = 0;
tobesent.jadesadded = client.entity.addjade;
tobesent.plus = item.plus;
client.lotteryentries += 1;
client.send(tobesent);
mrhassan.kernel.sendworldmessage(new message("congratulations! " + client.entity.name + " won " + item.name + " in lottery.", system.drawing.color.black, message.talk), mrhassan.program.values);
}
else
{
dialog.text("sorry, your lotteryentries has finished come tomorrow.");
dialog.option("okay", 255);
}
}
else
{
dialog.text("you need to smalllottrytickets to draw from the lottery in the lottery center.");
dialog.option("okay", 255);
}
break;
}
}
break;
}
#endregion
#endregion
|
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|