Posts: 219
Threads: 11
Joined: Dec 2013
Thanks: 52
Given 8 thank(s) in 4 post(s)
01-21-2014, 12:35 AM
(This post was last modified: 01-21-2014, 01:14 AM by daniel0916.)
I think. It don't give nil in c++. But thanks.
How can i get a window from his id? the enchantment packet returns me the id. But now i need the window from them.
Posts: 1,162
Threads: 68
Joined: Mar 2013
Thanks: 245
Given 125 thank(s) in 100 post(s)
I tried it, the major problem is that we now can't check if an item is enchantable. Maybe we cound do a g_IsItemEnchantable function
Posts: 372
Threads: 29
Joined: Mar 2011
Thanks: 1
Given 21 thank(s) in 18 post(s)
Yeah, that was how i wanted to do it as well,
Using this you can also only add the enchants the object is capable of,
If it was coded in the server, you are unable to enchant custom stuff, like a log that has a enchant, for fun of course..
Posts: 372
Threads: 29
Joined: Mar 2011
Thanks: 1
Given 21 thank(s) in 18 post(s)
Ah i see you are directly writing this in c++ ?
I was planning to do it tru lua plugin.