الجمعة مايو 01, 2020 8:42 pm | المشاركة رقم: #1 |
المعلومات | الكاتب: | | اللقب: | | الرتبه: | | الصورة الرمزية | |
البيانات | المزاج : | | معلومات العضو : | | الجنس : | | عدد المساهمات : | 1109 | السمعة : | 2835 | التقيم : | 70 | تاريخ التسجيل : | 21/11/2010 |
الإتصالات | الحالة: | | وسائل الإتصال: | |
| موضوع: بنك CPS كامل 100% بدون ثغرات بنك CPS كامل 100% بدون ثغرات الموضوع : بنك CPS كامل 100% بدون ثغرات شرح الاضافة:
ضيف دة فى NPC - الكود:
-
#region CPS-Bank case 12317: { switch (npcRequest.OptionID) { case 0: {
dialog.Text("Hello friend. I can help you get on the top faster you need save cps here **_Bank = "); dialog.Text("<tip color=d7ff41 desc=Your#Cps#In#Bank>[" + client.Entity.CpsBank + "]</tip>: \n"); dialog.Option("you need Add cps.", 1); dialog.Option("you need Withdraw cps:", 4); dialog.Option("No thank you.", 255); break; }
#region addcps case 1: { dialog.Input("you need add cps:", 3, 10);
break; }
case 2: { if (client.Entity.ConquerPoints >= client.NpcCpsInput && client.NpcCpsInput != 0) { client.Entity.CpsBank += client.NpcCpsInput; client.Entity.ConquerPoints -= client.NpcCpsInput; client.NpcCpsInput = 0; } break; } case 3: { uint input; if (uint.TryParse(npcRequest.Input, out input)) { if (input < 0 && input > 2000000000) { dialog.Text("Hello friend.you shore need add cps you give" + client.Entity.CpsBank + " Cps here ."); dialog.Text("you shore need add cps.."); dialog.Input("I need It :", 1, 9); dialog.Option("No thank you.", 255); return; } if (client.Entity.ConquerPoints >= input) { client.NpcCpsInput = input; dialog.Text("Are you sure you want to Save " + input + " CPs? ."); dialog.Option("Yes", 2); dialog.Option("No thank you.", 255); }
} else { dialog.Text("You Must save 1:2000000000 cps."); dialog.Input("Insert amount:", 1, 9); dialog.Option("No thank you.", 255); } break; } #endregion #region withdraw cps
case 4: { dialog.Input("you need withdraw cps:", 5, 10);
break; } case 6: { if (client.Entity.CpsBank >= client.NpcCpsInput && client.NpcCpsInput != 0) { client.Entity.CpsBank -= client.NpcCpsInput; client.Entity.ConquerPoints += client.NpcCpsInput; client.NpcCpsInput = 0; } break; } case 5: { uint input; if (uint.TryParse(npcRequest.Input, out input)) { if (input < 0 && input > 2000000000) { dialog.Text("Hello friend.you shore need withdraw cps you give" + client.Entity.CpsBank + " Cps here ."); dialog.Text("you shore need add cps.."); dialog.Input("I need It :", 1, 9); dialog.Option("No thank you.", 255); return; } if (client.Entity.CpsBank >= input) { client.NpcCpsInput = input; dialog.Text("Are you sure you want to withdraw " + input + " CPs? ."); dialog.Option("Yes", 6); dialog.Option("No thank you.", 255); }
} else { dialog.Text("You Must in cps cps."); dialog.Input("Insert amount:", 4, 9); dialog.Option("No thank you.", 255); } break; } #endregion } } break; #endregion
وفي Entity ابحث عن - الكود:
-
public WindWalker.ThunderCloud Cloud;
وضيف دة فوقيها - الكود:
-
#region CpsBank long _CpsBank; public long CpsBank { get { return _CpsBank; } set { value = Math.Max(0, value); _CpsBank = value; Database.EntityTable.UpdateCpsbank(this.Owner);
} } #endregion
وافتح ملف EntityTable ابحث عن - الكود:
-
client.Entity.Level = reader.ReadByte("Level");
ضيف دة تحتها - الكود:
-
client.Entity.CpsBank = reader.ReadInt64("CpsBank");
وفي نفس الملف ابحث عن - الكود:
-
public static void UpdateMoney
ضيف تحتها دة - الكود:
-
#region CpsBank public static void UpdateCpsbank(Client.GameState client) { UpdateData(client, "CpsBank", client.Entity.CpsBank); } #endregion وابحث علي - الكود:
-
.Set("Body",
ضيف تحتيها دة - الكود:
-
.Set("CpsBank", client.Entity.CpsBank)
entities ادخل ودوس ctrl +D و ضيف ده CpsBank int 255 وحدد unsigned زي الصورة كدة
|
| |