02-01-2014, 11:38 AM
I simply, do in lua
local Item2 = cItem(E_ITEM_DIAMOND_SWORD, 1, 0, "1=1")
And then Window:SetSlot(a_Player,SlotNum, Item2)
Ofcourse, when you show the options aka what level it has etc, you should store those,
For when you get the 0x11 packet, and then actually run the code above to apply the enchantment.
local Item2 = cItem(E_ITEM_DIAMOND_SWORD, 1, 0, "1=1")
And then Window:SetSlot(a_Player,SlotNum, Item2)
Ofcourse, when you show the options aka what level it has etc, you should store those,
For when you get the 0x11 packet, and then actually run the code above to apply the enchantment.