رد: انبي سي innerPower
عاش
و ده واحد تاني محدد كل بوابه ب ايتماتها و اسعارها
و بيبيع نقط
هتمسح CPanal.itemsInnerPower
و تحط مكانها الكبس الي عايز يبيعه بيه
كود PHP:
#region System InnerPower +items-Check case 1547: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Hey [" + client.Entity.Name + "] I can sell Items InnerPower. all you have to choose and Check your Points."); dialog.Text("Your~InnerPower~Count~is: "); dialog.Text("<tip color=d7ff41 desc=Inner#Power>[" + client.Entity.InnerPower.Potency + "]</tip>: \n"); dialog.Option("UniversalConcept(A)&(B) For " + CPanal.itemsInnerPower + " CPS", 1); dialog.Option("SecretofBreath(A)&(B) For " + CPanal.itemsInnerPower + " CPS", 2); dialog.Option("DragonTactics(A)&(B) For " + CPanal.itemsInnerPower + " CPS", 3); dialog.Option("DoctrineofDeity(A)(B)(C) For " + CPanal.itemsInnerPower + " CPS", 4); dialog.Option("DemonRider(A)(B) For " + CPanal.itemsInnerPower + " CPS", 5); dialog.Option("BoundlessHeart(A)(B)(C) For " + CPanal.itemsInnerPower + " CPS", 6); dialog.Option("PuzzleofLife(A)(B)(C) For " + CPanal.itemsInnerPower + " CPS", 7); dialog.Option("Points Inner For " + CPanal.itemsInnerPower + " CPS", 8); dialog.Option("Let~me~think.", 255); break; } #region UniversalConcept(A)&(B) case 1: { if (client.Entity.ConquerPoints >= CPanal.itemsInnerPower) { client.Entity.ConquerPoints -= CPanal.itemsInnerPower; client.Inventory.AddBoundItem(3005365, 0, 1); client.Inventory.AddBoundItem(3005366, 0, 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); Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Congratz you got a UniversalConcept(A)(B) in your inventory."); npc.OptionID = 255; client.Send(npc.ToArray()); } else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "You don't have Enough [" + CPanal.itemsInnerPower + "] Cps."); npc.OptionID = 255; client.Send(npc.ToArray()); } break; } #endregion #region SecretofBreath(A)&(B) case 2: { if (client.Entity.ConquerPoints >= CPanal.itemsInnerPower) { client.Entity.ConquerPoints -= CPanal.itemsInnerPower; client.Inventory.AddBoundItem(3005395, 0, 1); client.Inventory.AddBoundItem(3005396, 0, 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); Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Congratz you got a SecretofBreath(A)(B) in your inventory."); npc.OptionID = 255; client.Send(npc.ToArray()); } else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "You don't have Enough [" + CPanal.itemsInnerPower + "] Cps."); npc.OptionID = 255; client.Send(npc.ToArray()); } break; } #endregion #region DragonTactics(A)&(B) case 3: { if (client.Entity.ConquerPoints >= CPanal.itemsInnerPower) { client.Entity.ConquerPoints -= CPanal.itemsInnerPower; client.Inventory.AddBoundItem(3005397, 0, 1); client.Inventory.AddBoundItem(3005398, 0, 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); Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Congratz you got a DragonTactics(A)(B) in your inventory."); npc.OptionID = 255; client.Send(npc.ToArray()); } else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "You don't have Enough [" + CPanal.itemsInnerPower + "] Cps."); npc.OptionID = 255; client.Send(npc.ToArray()); } break; } #endregion #region DoctrineofDeity(A)(B)(C) case 4: { if (client.Entity.ConquerPoints >= CPanal.itemsInnerPower) { client.Entity.ConquerPoints -= CPanal.itemsInnerPower; client.Inventory.AddBoundItem(3005399, 0, 1); client.Inventory.AddBoundItem(3005400, 0, 1); client.Inventory.AddBoundItem(3005401, 0, 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); Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Congratz you got a DoctrineofDeity(A)(B)(C) in your inventory."); npc.OptionID = 255; client.Send(npc.ToArray()); } else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "You don't have Enough [" + CPanal.itemsInnerPower + "] Cps."); npc.OptionID = 255; client.Send(npc.ToArray()); } break; } #endregion #region DemonRider(A)(B) case 5: { if (client.Entity.ConquerPoints >= CPanal.itemsInnerPower) { client.Entity.ConquerPoints -= CPanal.itemsInnerPower; client.Inventory.AddBoundItem(3007113, 0, 1); client.Inventory.AddBoundItem(3007114, 0, 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); Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Congratz you got a DemonRider(A)(B) in your inventory."); npc.OptionID = 255; client.Send(npc.ToArray()); } else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "You don't have Enough [" + CPanal.itemsInnerPower + "] Cps."); npc.OptionID = 255; client.Send(npc.ToArray()); } break; } #endregion #region BoundlessHeart(A)(B)(C) case 6: { if (client.Entity.ConquerPoints >= CPanal.itemsInnerPower) { client.Entity.ConquerPoints -= CPanal.itemsInnerPower; client.Inventory.AddBoundItem(3007115, 0, 1); client.Inventory.AddBoundItem(3007116, 0, 1); client.Inventory.AddBoundItem(3007117, 0, 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); Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Congratz you got a BoundlessHeart(A)(B)(C) in your inventory."); npc.OptionID = 255; client.Send(npc.ToArray()); } else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "You don't have Enough [" + CPanal.itemsInnerPower + "] Cps."); npc.OptionID = 255; client.Send(npc.ToArray()); } break; } #endregion #region PuzzleofLife(A)(B)(C) case 7: { if (client.Entity.ConquerPoints >= CPanal.itemsInnerPower) { client.Entity.ConquerPoints -= CPanal.itemsInnerPower; client.Inventory.AddBoundItem(3007230, 0, 1); client.Inventory.AddBoundItem(3007231, 0, 1); client.Inventory.AddBoundItem(3007232, 0, 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); Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Congratz you got a PuzzleofLife(A)(B)(C) in your inventory."); npc.OptionID = 255; client.Send(npc.ToArray()); } else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "You don't have Enough [" + CPanal.itemsInnerPower + "] Cps."); npc.OptionID = 255; client.Send(npc.ToArray()); } break; } #endregion #region PackPointsInner case 8: { if (client.Entity.ConquerPoints >= CPanal.itemsInnerPower) { client.Entity.ConquerPoints -= CPanal.itemsInnerPower; client.Inventory.AddBoundItem(3007110, 0, 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); Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Congratz you got a PackPointsInner in your inventory."); npc.OptionID = 255; client.Send(npc.ToArray()); } else { Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "You don't have Enough [" + CPanal.itemsInnerPower + "] Cps."); npc.OptionID = 255; client.Send(npc.ToArray()); } break; } #endregion } break; } #endregion
|