Joriku
Working in the mines, need something?
Hi,
I know this might not the the best thing to ask for but for you who's reading this. It might be as easy as writing the code as it is for me writing the therd.
I'm trying to add an exhaustion onto an !aol command, the script looks like this.
What I've seen,
if exhaustion.get(cid, 101)
But cannot manage to get it to work, any Ideas and any "solved solutions" can can be explained so I can manage to put it up myself?
I know this might not the the best thing to ask for but for you who's reading this. It might be as easy as writing the code as it is for me writing the therd.
I'm trying to add an exhaustion onto an !aol command, the script looks like this.
What I've seen,
if exhaustion.get(cid, 101)
But cannot manage to get it to work, any Ideas and any "solved solutions" can can be explained so I can manage to put it up myself?
LUA:
local price_aol = 0
function onSay(player, words, param)
if player:removeMoney(price_aol) then
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
player:addItem(2173, 1)
else
if player:withdrawMoney(price_aol) then
if player:removeMoney(price_aol) then
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
player:addItem(2173, 1)
end
else
player:getPosition():sendMagicEffect(CONST_ME_POFF)
player:sendCancelMessage("You don't have enought money. Not even in your bank!")
end
end
return true
end