Posts: 219
Threads: 11
Joined: Dec 2013
Thanks: 52
Given 8 thank(s) in 4 post(s)
I think it's better to storage the enchantments and the level. Then it's easier to get the levels for the enchantments.
I use your typedef so this is using cEnchantments.
Can you give me a little example to add the enchantment with level? Then i can work faster.
Posts: 219
Threads: 11
Joined: Dec 2013
Thanks: 52
Given 8 thank(s) in 4 post(s)
Have anyone a idea how can i make the enchanting progress?
How can i get the enchantments who i should add? I have the available enchantments.
I think i need all enchanting levels and the player level of them for every enchanting. Should i make a map with this?
Hope someone has ideas.
Posts: 372
Threads: 29
Joined: Mar 2011
Thanks: 1
Given 21 thank(s) in 18 post(s)
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.