|
أفضل جواب - كتبه Tefa |
ده كود بيدي ايتم كود:
هنقف علي كلمة add و هندوس اف 12 هناخدها كلها كوبي الي هيه add كود:
تحت كود:
زود دي كود:
كده اي ايتم جديد هيتضاف ب الاسم الي انته حاطه مكان add هييجي 9 تاج |
#region PerfectionLevel 54 Item NPC !
case 808134:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello Pro I Am Here To Perfection Full Your Gear... To Beautify You Special items For 100k cps In Server [BlackBlock-Co].");
dialog.Option("Open Necklace", (byte)ConquerItem.Necklace);
dialog.Option("Open Armor", (byte)ConquerItem.Armor);
dialog.Option("Open Tower", (byte)ConquerItem.Tower);
dialog.Option("Open Fan", (byte)ConquerItem.Fan);
dialog.Option("Open Crop", (byte)ConquerItem.SteedCrop);
dialog.Option("Open Wing", (byte)ConquerItem.Wing);
dialog.Option("Open Ring", (byte)ConquerItem.Ring);
dialog.Option("Open Head", (byte)ConquerItem.Head);
dialog.Option("Open Boots", (byte)ConquerItem.Boots);
dialog.Option("Open Steed", (byte)ConquerItem.Steed);
dialog.Option("Open RightWeapon", (byte)ConquerItem.RightWeapon);
dialog.Option("Open LeftWeapon", (byte)ConquerItem.LeftWeapon);
dialog.Send();
break;
}
case (byte)ConquerItem.Necklace:
case (byte)ConquerItem.Armor:
case (byte)ConquerItem.Ring:
case (byte)ConquerItem.Boots:
case (byte)ConquerItem.Head:
case (byte)ConquerItem.Tower:
case (byte)ConquerItem.Fan:
case (byte)ConquerItem.SteedCrop:
case (byte)ConquerItem.Steed:
case (byte)ConquerItem.RightWeapon:
case (byte)ConquerItem.LeftWeapon:
{
ConquerItem item;
if ((item = client.Equipment.TryGetItem(npcRequest.OptionID)) != null)
{
if (item.PerfectionLevel == 0 && client.Player.ConquerPoints >= 100000)
{
client.Player.ConquerPoints -= 100000;
item.Stars = 54;
item.Mode = Game.Enums.ItemMode.Update;
item.Send(client);
Database.ConquerItemTable.UpdatePerfection(item);
}
else
{
dialog.Text("Please Come Back To Me With 100K ConquerPoints.");
dialog.Option("Ahh sorry.", 255);
dialog.Send();
}
}
break;
}
case (byte)ConquerItem.Wing:
{
ConquerItem item;
if ((item = client.Equipment.TryGetItem(npcRequest.OptionID)) != null)
{
if (item.PerfectionLevel == 0 && client.Player.ConquerPoints >= 100000)
{
client.Player.ConquerPoints -= 100000;
item.Stars = 54;
item.Mode = Game.Enums.ItemMode.Update;
item.Send(client);
Database.ConquerItemTable.UpdatePerfection(item);
}
else
{
dialog.Text("Please Come Back To Me With 100K ConquerPoints.");
dialog.Option("Ahh sorry.", 255);
dialog.Send();
}
}
break;
}
}
break;
}
#endregion
#region perfectionlevel 54 item npc !
Case 808134:
{
switch (npcrequest.optionid)
{
case 0:
{
dialog.text("hello pro i am here to perfection full your gear... To beautify you special items for 100k cps in server [blackblock-co].");
dialog.option("open necklace", (byte)conqueritem.necklace);
dialog.option("open armor", (byte)conqueritem.armor);
dialog.option("open tower", (byte)conqueritem.tower);
dialog.option("open fan", (byte)conqueritem.fan);
dialog.option("open crop", (byte)conqueritem.steedcrop);
dialog.option("open wing", (byte)conqueritem.wing);
dialog.option("open ring", (byte)conqueritem.ring);
dialog.option("open head", (byte)conqueritem.head);
dialog.option("open boots", (byte)conqueritem.boots);
dialog.option("open steed", (byte)conqueritem.steed);
dialog.option("open rightweapon", (byte)conqueritem.rightweapon);
dialog.option("open leftweapon", (byte)conqueritem.leftweapon);
dialog.send();
break;
}
case (byte)conqueritem.necklace:
Case (byte)conqueritem.armor:
Case (byte)conqueritem.ring:
Case (byte)conqueritem.boots:
Case (byte)conqueritem.head:
Case (byte)conqueritem.tower:
Case (byte)conqueritem.fan:
Case (byte)conqueritem.steedcrop:
Case (byte)conqueritem.steed:
Case (byte)conqueritem.rightweapon:
Case (byte)conqueritem.leftweapon:
{
conqueritem item;
if ((item = client.equipment.trygetitem(npcrequest.optionid)) != null)
{
if (item.perfectionlevel == 0 && client.player.conquerpoints >= 100000)
{
client.player.conquerpoints -= 100000;
item.stars = 54;
item.mode = game.enums.itemmode.update;
item.send(client);
database.conqueritemtable.updateperfection(item);
}
else
{
dialog.text("please come back to me with 100k conquerpoints.");
dialog.option("ahh sorry.", 255);
dialog.send();
}
}
break;
}
case (byte)conqueritem.wing:
{
conqueritem item;
if ((item = client.equipment.trygetitem(npcrequest.optionid)) != null)
{
if (item.perfectionlevel == 0 && client.player.conquerpoints >= 100000)
{
client.player.conquerpoints -= 100000;
item.stars = 54;
item.mode = game.enums.itemmode.update;
item.send(client);
database.conqueritemtable.updateperfection(item);
}
else
{
dialog.text("please come back to me with 100k conquerpoints.");
dialog.option("ahh sorry.", 255);
dialog.send();
}
}
break;
}
}
break;
}
#endregion
client.Inventory.Add(2100075, 0, 1);
public bool Add(uint id, byte plus, byte times, bool bound = false)
{
try
{
Database.ConquerItemInformation infos = new Database.ConquerItemInformation(id, plus);
while (times > 0)
{
ConquerItem _ExistingItem;
Database.ConquerItemInformation iteminfo = new Database.ConquerItemInformation(id, 0);
if (Owner.Inventory.Contains(iteminfo.BaseInformation.ID, bound, iteminfo.BaseInformation.StackSize, out _ExistingItem))
{
if (_ExistingItem.StackSize == 0)
_ExistingItem.StackSize = 1;
ushort _StackCount = iteminfo.BaseInformation.StackSize;
_StackCount -= (ushort)_ExistingItem.StackSize;
if (_StackCount >= 1)
_StackCount += 1;
_ExistingItem.StackSize += 1;
Database.ConquerItemTable.UpdateStack(_ExistingItem);
_ExistingItem.Mode = Game.Enums.ItemMode.Update;
_ExistingItem.Send(Owner);
_ExistingItem.Mode = Game.Enums.ItemMode.Default;
}
else
{
if (Count <= 39)
{
ConquerItem item = new Network.GamePackets.ConquerItem(true);
item.ID = id;
item.Plus = plus;
item.Bound = bound;
item.Durability = item.MaximDurability = infos.BaseInformation.Durability;
item.StackSize = 1;
item.MaxStackSize = infos.BaseInformation.StackSize;
Add(item, Enums.ItemUse.CreateAndAdd);
}
}
times--;
}
}
catch (Exception e)
{
Program.SaveException(e);
}
return true;
}
item.ID
item.Stars = 54;
client.Inventory.Add(2100075, 0, 1);
public bool Add(uint id, byte plus, byte times, bool bound = false)
{
try
{
Database.ConquerItemInformation infos = new Database.ConquerItemInformation(id, plus);
while (times > 0)
{
ConquerItem _ExistingItem;
Database.ConquerItemInformation iteminfo = new Database.ConquerItemInformation(id, 0);
if (Owner.Inventory.Contains(iteminfo.BaseInformation.ID, bound, iteminfo.BaseInformation.StackSize, out _ExistingItem))
{
if (_ExistingItem.StackSize == 0)
_ExistingItem.StackSize = 1;
ushort _StackCount = iteminfo.BaseInformation.StackSize;
_StackCount -= (ushort)_ExistingItem.StackSize;
if (_StackCount >= 1)
_StackCount += 1;
_ExistingItem.StackSize += 1;
Database.ConquerItemTable.UpdateStack(_ExistingItem);
_ExistingItem.Mode = Game.Enums.ItemMode.Update;
_ExistingItem.Send(Owner);
_ExistingItem.Mode = Game.Enums.ItemMode.Default;
}
else
{
if (Count <= 39)
{
ConquerItem item = new Network.GamePackets.ConquerItem(true);
item.ID = id;
item.Plus = plus;
item.Bound = bound;
item.Durability = item.MaximDurability = infos.BaseInformation.Durability;
item.StackSize = 1;
item.MaxStackSize = infos.BaseInformation.StackSize;
Add(item, Enums.ItemUse.CreateAndAdd);
}
}
times--;
}
}
catch (Exception e)
{
Program.SaveException(e);
}
return true;
}
item.ID
item.Stars = 54;
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
طلب صغير | osama | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-05-09 11:01 PM |
طلب صغير | AliNasser | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2020-03-09 06:43 PM |
طلب صغير جدا | MRonlineGvrix | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-08-19 06:05 AM |
طلب صغير | osama | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2019-08-04 11:54 PM |
طلب صغير | ابو حمزه9 | مشكلات السيرفيرات كونكر الشخصيه | 8 | 2019-07-23 08:28 PM |