Hey, I have problem with my talkaction script which buys bless
Sometime people lose items with blessings blessing should give invisible AoL, whats wrong?
TFS 0.3.6
Code:
function onSay(cid, words, param, channel)
if getPlayerBlessing(cid, 5) == FALSE then
if getPlayerMoney(cid) >= 100000 then
for i = 1,5 do
doPlayerAddBlessing(cid, i)
end
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN)
doPlayerRemoveMoney(cid, 100000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have been blessed by the gods!")
else
doPlayerSendCancel(cid, "You do not have enough money!")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
else
doPlayerSendCancel(cid, "You have already been blessed.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
return true
end
Sometime people lose items with blessings blessing should give invisible AoL, whats wrong?
TFS 0.3.6