Hi,
This script for 5 bless with 1 command.it is my scripts(kokorec).
i tried on TFS 0.3+
here is script:
talkactions.xml
Note:you can change with red colours words.
Thanks~
This script for 5 bless with 1 command.it is my scripts(kokorec).
i tried on TFS 0.3+
here is script:
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,'[COLOR="Red"]You have already got one or more blessings![/COLOR]')
else
if doPlayerRemoveMoney(cid, [COLOR="Red"]70000[/COLOR]) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), [COLOR="Red"]CONST_ME_HOLYDAMAGE[/COLOR])
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'[COLOR="Red"]You have been blessed by the gods![/COLOR]')
else
doPlayerSendCancel(cid, "[COLOR="Red"]You need 70k to get blessed![/COLOR]")
end
end
return 1
end->
talkactions.xml
Code:
<talkaction words="!bless" script="bless.lua" />
Note:you can change with red colours words.
Thanks~