Maddude
New Member
- Joined
- Feb 7, 2008
- Messages
- 34
- Reaction score
- 2
So im having a problem with this talkaction, it isnt applying the blessing to the character, but takes the money and does the effect any ideas ? using this from OTServBR-Global github.
Lua:
function onSay(cid, words, param)
if getPlayerBlessing(cid,8) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already been blessed")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
else
if doPlayerRemoveMoney(cid, 50000) == TRUE then
do doPlayerAddBlessing(cid,1,2,3,4,5,6,7,8)
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received blessings!")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ENERGYAREA)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need 50,000 gp in backpack for blessings.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ICEAREA)
end
end
end