السبت ديسمبر 30, 2023 8:34 pm | المشاركة رقم: #1 |
المعلومات | الكاتب: | | اللقب: | | الرتبه: | | الصورة الرمزية | |
البيانات | المزاج : | | معلومات العضو : | | الجنس : | | عدد المساهمات : | 1111 | السمعة : | 2841 | التقيم : | 70 | تاريخ التسجيل : | 21/11/2010 |
الإتصالات | الحالة: | | وسائل الإتصال: | |
| موضوع: اضافه NPC لبيع في اي بي من 1 لحد 6 اضافه NPC لبيع في اي بي من 1 لحد 6 الموضوع : اضافه NPC لبيع في اي بي من 1 لحد 6شرح الاضافة: افتح كلاس NPC وضيف دة تحت اي ان بي سي - الكود:
-
#region vip Seller case 5555: { switch (npcRequest.OptionID) { case 0: { if (client.Entity.VIPLevel <= 6) { dialog.Text("Hi " + client.Entity.Name + " I can Seller Vip From 1 To 6 For some Cps."); dialog.Option("Vip Level 1 [200.000] Cps.", 1); dialog.Option("Vip Level 2 [500.000] Cps.", 2); dialog.Option("Vip Level 3 [700.000] Cps.", 3); dialog.Option("Vip Level 4 [1.000.000] Cps.", 4); dialog.Option("Vip Level 5 [1.200.000] Cps.", 5); dialog.Option("Vip Level 6 [1.500.000] Cps.", 6); dialog.Option("No tk.", 255); dialog.Avatar(116); dialog.Send(); break; }
else { dialog.Text("yes do it"); dialog.Option("ok.", 255); } break; } case 1: { if (client.Entity.VIPLevel <= 0) { if (client.Entity.ConquerPoints >= 200000) { client.Entity.ConquerPoints -= 200000; client.Entity.VIPLevel = 1; _String str = new _String(true); str.UID = client.Entity.UID; str.Type = _String.Effect; str.Texts.Add("eidolon"); str.TextsCount = 1; client.Entity.SendScreen(str); }
else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry But You Don't Have [200.000] ConquerPoints"); npc.OptionID = 255; client.Send(npc.ToArray()); break; }
} else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry Can't upgrade any more You Alredy Vip Level [" + client.Entity.VIPLevel + "]"); npc.OptionID = 255; client.Send(npc.ToArray()); break; } break; } case 2: { if (client.Entity.VIPLevel == 1) { if (client.Entity.ConquerPoints >= 500000) { client.Entity.ConquerPoints -= 500000; client.Entity.VIPLevel = 2; _String str = new _String(true); str.UID = client.Entity.UID; str.Type = _String.Effect; str.Texts.Add("eidolon"); str.TextsCount = 1; client.Entity.SendScreen(str); }
else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry But You Don't Have [500.000] ConquerPoints"); npc.OptionID = 255; client.Send(npc.ToArray()); break; }
} else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry Can't upgrade any more You Alredy Vip Level [" + client.Entity.VIPLevel + "]"); npc.OptionID = 255; client.Send(npc.ToArray()); break; } break; } case 3: { if (client.Entity.VIPLevel == 2) { if (client.Entity.ConquerPoints >= 700000) { client.Entity.ConquerPoints -= 700000; client.Entity.VIPLevel = 3; _String str = new _String(true); str.UID = client.Entity.UID; str.Type = _String.Effect; str.Texts.Add("eidolon"); str.TextsCount = 1; client.Entity.SendScreen(str); }
else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry But You Don't Have [700.000] ConquerPoints"); npc.OptionID = 255; client.Send(npc.ToArray()); break; }
} else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry Can't upgrade any more You Alredy Vip Level [" + client.Entity.VIPLevel + "]"); npc.OptionID = 255; client.Send(npc.ToArray()); break; } break; } case 4: { if (client.Entity.VIPLevel == 3) { if (client.Entity.ConquerPoints >= 1000000) { client.Entity.ConquerPoints -= 1000000; client.Entity.VIPLevel = 4; _String str = new _String(true); str.UID = client.Entity.UID; str.Type = _String.Effect; str.Texts.Add("eidolon"); str.TextsCount = 1; client.Entity.SendScreen(str); }
else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry But You Don't Have [1.000.000] ConquerPoints"); npc.OptionID = 255; client.Send(npc.ToArray()); break; }
} else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry Can't upgrade any more You Alredy Vip Level [" + client.Entity.VIPLevel + "]"); npc.OptionID = 255; client.Send(npc.ToArray()); break; } break; } case 5: { if (client.Entity.VIPLevel == 4) { if (client.Entity.ConquerPoints >= 1200000) { client.Entity.ConquerPoints -= 1200000; client.Entity.VIPLevel = 5; _String str = new _String(true); str.UID = client.Entity.UID; str.Type = _String.Effect; str.Texts.Add("eidolon"); str.TextsCount = 1; client.Entity.SendScreen(str); }
else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry But You Don't Have [1.200.000] ConquerPoints"); npc.OptionID = 255; client.Send(npc.ToArray()); break; }
} else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry Can't upgrade any more You Alredy Vip Level [" + client.Entity.VIPLevel + "]"); npc.OptionID = 255; client.Send(npc.ToArray()); break; } break; } case 6: { if (client.Entity.VIPLevel == 5) { if (client.Entity.ConquerPoints >= 1500000) { client.Entity.ConquerPoints -= 1500000; client.Entity.VIPLevel = 6; _String str = new _String(true); str.UID = client.Entity.UID; str.Type = _String.Effect; str.Texts.Add("eidolon"); str.TextsCount = 1; client.Entity.SendScreen(str); }
else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry But You Don't Have [1.500.000] ConquerPoints"); npc.OptionID = 255; client.Send(npc.ToArray()); break; }
} else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Sorry Can't upgrade any more You Alredy Vip Level [" + client.Entity.VIPLevel + "]"); npc.OptionID = 255; client.Send(npc.ToArray()); break; } break; } } break; } #endregion
|
| |