• 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!

!Bless script, not working!

Sir Shutter

Learning LUA
Joined
Nov 17, 2008
Messages
1,437
Reaction score
10
Location
Egypt
hey.. I got that !bless script its not working at all :/ here is the script :-

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

In talkactions.xml

Code:
        <talkaction words="!bless" event="script" value="bless.lua"/>

that means when i say !bless should bless me all blessings ingame, but dont work im using TFS 0.2.1.0 latest 8.42 by talaturen.. rep++ ofcorse if u fix thnx!
 
Back
Top