Now I have 1 talk action and this say error in the console GUI
This say:
And the script is...
Anyone can help me?
This say:
Code:
[22/11/2009 08:41:56] attempt to index a nil value
[22/11/2009 08:41:57] stack traceback:
[22/11/2009 08:41:57] [C]: in function 'doSendMagicEffect'
[22/11/2009 08:41:58] data/talkactions/scripts/!fire boots.lua:10: in function <data/talkactions/scripts/!fire boots.lua:1>
[22/11/2009 08:41:59] Lua Script Error: [TalkAction Interface]
[22/11/2009 08:42:00] data/talkactions/scripts/!fire boots.lua:onSay
And the script is...
Code:
function onSay(cid, words, param)
if getPlayerMoney(cid) >= 10000 then
if getPlayerItemCount(cid,9934) >= 1 then
doPlayerTakeItem(cid,9934,1)
doPlayerRemoveMoney(cid, 10000)
doPlayerAddItem(cid,9932,1)
else
doPlayerSendCancel(cid, "Tu no tienes las firewalker boots.")
end
doSendMagicEffect(topos,12)
else
doPlayerSendCancel(cid, "Tu necesitas 10k y el worn firewalker boots.")
end
return TRUE
end
local function GIC(cid, x)
return getPlayerItemCount(cid, x)
end
local function getPlayerMoney(cid)
return GIC(cid, 2160)*10000 + GIC(cid, 2152)*100 + GIC(cid, 2148)
end
Anyone can help me?