It wont work!!
--------------------------------------
In the Console it say
data/talkactions/scripts/aol.lua:2: attempt to call global 'getPlayerStorageValue' (a nil value)
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/aol.lua
nSay
data/talkactions/scripts/aol.lua:2: attempt to call global 'getPlayerStorage' (a nil value)
stack traceback:
[C]: in function 'getPlayerStorage'
data/talkactions/scripts/aol.lua:2: in function <data/talkactions/scripts/aol.lua:1>
This is for a !aol script.
Code:
function onSay(cid, words, param, channel)
if getPlayerStorage(cid, 2700) <= os.time() then
local kk = os.time()+2
setPlayerStorageValue(cid, 2700, kk)
if getPlayerMoney(cid) >= 10000 then
if doPlayerAddItem(cid, 2173, 1, false) then
return doPlayerRemoveMoney(cid, 10000) and doSendMagicEffect(getCreaturePosition(cid), 22)
else
return doPlayerSendCancel(cid, "You don't have space or cap.") and doSendMagicEffect(getCreaturePosition(cid), 2)
end
else
return doPlayerSendCancel(cid, "You don't have money.") and doSendMagicEffect(getCreaturePosition(cid), 2)
end
else
return doPlayerSendCancel(cid, "You are exhausted.") and doSendMagicEffect(getCreaturePosition(cid), 2)
end
return true
end
In the Console it say
data/talkactions/scripts/aol.lua:2: attempt to call global 'getPlayerStorageValue' (a nil value)
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/aol.lua
data/talkactions/scripts/aol.lua:2: attempt to call global 'getPlayerStorage' (a nil value)
stack traceback:
[C]: in function 'getPlayerStorage'
data/talkactions/scripts/aol.lua:2: in function <data/talkactions/scripts/aol.lua:1>
This is for a !aol script.
Last edited by a moderator: