Sir Shutter
Learning LUA
hey.. I got that !bless script its not working at all :/ here is the script :-
bless.lua
In talkactions.xml
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!
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!