|
المشاركات 1,940 |
+التقييم 0.95 |
تاريخ التسجيل Apr 2019 |
الاقامة Egypt |
نظام التشغيل windows 7 |
رقم العضوية 1 |
#region [#Share] [#VIP]
case 1425245:
{
switch (npcRequest.OptionID)
{
case 0:
dialog.Text("Hello this is the vip Share master .. I can help you to share a players");
dialog.Input("Input the player's name", 25, 32);
dialog.Option("Nah !", 255);
dialog.Send();
break;
case 25:
string lowered = npcRequest.Input.ToLower().Replace(" ", "~");
var player = Kernel.GamePool.Values.FirstOrDefault(p => p.Entity.LoweredName == lowered);
if (player == null)
{
dialog.Text("This person must be offline because I cannot find him/her. Are you sure this is the right name?");
dialog.Option("Let me try again!", 0);
dialog.Option("Forget it!", 255);
dialog.Send();
}
else
{
if (player.Entity.VIPLevel < client.Entity.VIPLevel)
{
client.MessageBox("Are you sure you wanna share " + player.Entity.Name + " ?", delegate(GameClient p)
{
player.Entity.VIPLevel = client.Entity.VIPLevel;
client.Entity.VIPLevel -= 1;
player.MessageBox(client.Entity.Name + " had share you Vip to u ur now vip "+player.Entity.VIPLevel+"!", null, null, 0);
dialog.Text("Great! Now your Target got the vip ! You Now VIP " + client.Entity.VIPLevel + "");
dialog.Option("Thanks bro !", 255);
dialog.Send();
}, null, 0);
}
else
client.MessageBox("He's already got vip " + client.Entity.VIPLevel + " so you cant share him !", null, null, 0);
break;
}
break;
}
break;
}
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|