• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Support with this script

SnowFox

New Member
Joined
May 18, 2008
Messages
264
Reaction score
0
I have this !bless script talkaction but when i use it my client debugs...I use the latest mystic spirit for 9.1

Any help?

Code:
 function onSay(cid, words, param, channel)
        if getPlayerBlessing(cid, 5) == FALSE and isPlayerVip(cid) == TRUE then
                if getPlayerMoney(cid) >= 50000 then
                        for i = 1,5 do
                                doPlayerAddBlessing(cid, i)
                        end
                        doPlayerRemoveMoney(cid, 50000)
                        doPlayerSendTextMessage(cid, 22, "You have been blessed by the gods!")
                else
                        doPlayerSendCancel(cid, "You don't have enough money.")
                end
        else
                doPlayerSendCancel(cid, "You have already been blessed. Or you do not own VIP on this character.")
        end
return true
end
 
PHP:
  function onSay(cid, words, param, channel)
        if getPlayerBlessing(cid, 5) == FALSE and isPlayerVip(cid) == TRUE then
                if getPlayerMoney(cid) >= 100000 then
                        for i = 1,5 do
                                doPlayerAddBlessing(cid, i)
                        end
                        doSendMagicEffect(getCreaturePosition(cid), 39)
                        doPlayerRemoveMoney(cid, 100000)
						doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
                        doPlayerSendTextMessage(cid, 22, "You have been blessed by the gods!")
                else
                        doPlayerSendCancel(cid, "Sorry, but you dont have enough money")
                        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
                end
        else
                doPlayerSendCancel(cid, "You have already been blessed, or you do not own VIP on this character")
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
        end
return true
end

try this and let me know
 
Lua:
 function onSay(cid, words, param, channel)
        if getPlayerBlessing(cid, 5) == FALSE and isPlayerVip(cid) == TRUE then
                if getPlayerMoney(cid) >= 50000 then
                        for i = 1,5 do
                                doPlayerAddBlessing(cid, i)
                        end
                        doPlayerRemoveMoney(cid, 50000)
                        doPlayerSendTextMessage(cid, 21, "You have been blessed by the gods!")
                else
                        doPlayerSendCancel(cid, "You don't have enough money.")
                end
        else
                doPlayerSendCancel(cid, "You have already been blessed. Or you do not own VIP on this character.")
        end
return true
end
Try that, also, this thread belongs to the Support Board.
 
Back
Top