Hello everybody...
I hope someone can help me out here...
I just can't get this to work...
I want the script to check if the item on one of the players hand has a plus signal on its description...
Here is how the scripts looks like now:
I get this msg error:
Thanks a lot already for the help!
Rep+
I hope someone can help me out here...
I just can't get this to work...
I want the script to check if the item on one of the players hand has a plus signal on its description...
Here is how the scripts looks like now:
LUA:
local hand = getPlayerSlotItem(cid, CONST_SLOT_RIGHT)
local hand2 = getPlayerSlotItem(cid, CONST_SLOT_LEFT)
if (getItemSpecialDescription(hand):find('+')) or (getItemSpecialDescription(hand2):find('+')) then
I get this msg error:
Code:
[Error - TalkAction Interface]
data/talkactions/scripts/auction.lua:onSay
Description:
(luaGetthing) Thing not found
[Error - TalkAction Interface]
data/talkactions/scripts/auction.lua:onSay
Description:
data/lib/050-function.lua:269: attempt to index a boolean value
stack traceback:
data/lib/050-function.lua:269: in function 'getItemSpecialDescription'
data/talkactions/scripts/auction.lua:51: in function <data/talkactions/scripts/auction.lua:12>
Thanks a lot already for the help!
Rep+