God Mythera
Veteran OT User
Hello and i need bless script that is 100% so you dont lose any items or levels, i tried another 1 but went to level 1...im using TFS 0.4
here is my talkaction script
here is my talkaction script
Code:
--|-------------------|--
--|Script by Ninkobi--|--
--|Modified by Xavizus|--
--|-------------------|--
function onSay(cid, words, param)
--Config--
local cost = 25000
--End of Config--
for b = 1,5 do
if getPlayerBlessing(cid, b) then
doPlayerSendCancel(cid,'You have already got one or more blessings!')
else
if doPlayerRemoveMoney(cid, cost) == TRUE then
for i = 1,5 do
doPlayerAddBlessing(cid, i)
end
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have been blessed by the gods!')
else
doPlayerSendCancel(cid, "You need "..cost.." gold coins to get blessed!")
end
end
return true
end
end