Sir Shutter
Learning LUA
Hello, I wana know why !bless command dont work on tibia 8.31
Here is the bless.lua
What's wrong in it? I want it so it can work on tibia 8.31!
Thanks Rep++ if you fixed!
Here is the bless.lua
Code:
function onSay(cid, words, param)
if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
doPlayerSendCancel(cid,'You have already got one or more blessings!')
else
if doPlayerRemoveMoney(cid, 500000) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_YELLOW_RINGS)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have been blessed by the gods!')
else
doPlayerSendCancel(cid, "You need 50 crystal coin to get blessed!")
end
end
return 1
end
What's wrong in it? I want it so it can work on tibia 8.31!
Thanks Rep++ if you fixed!