Fermantor
Active Member
Here is a part of my script... the important part. It's an action
pick.lua
The problem seems to be in this line
It always says, can't find Item() blablabla
I'm loosing my mind here, because in others scripts this addEvent() works, the only difference is, I'm using "itemEx" here instead of "item". I have tried everything, to find the error... writing the direct uid of the item, let me print the itemEx.uid and it is the right one, but he always tells me, he can't find the item.
Any ideas?
pick.lua
Lua:
elseif itemEx.uid == 17104 then
doTransformItem(itemEx.uid, 2249)
addEvent(doTransformItem, 1000*5, itemEx.uid, 3615)
doSendMagicEffect(toPosition, CONST_ME_POFF)
return TRUE
elseif ...
Code:
addEvent(doTransformItem, 1000*5, itemEx.uid, 3615)
I'm loosing my mind here, because in others scripts this addEvent() works, the only difference is, I'm using "itemEx" here instead of "item". I have tried everything, to find the error... writing the direct uid of the item, let me print the itemEx.uid and it is the right one, but he always tells me, he can't find the item.
Any ideas?
Last edited: