I already know that there are many bless commands, but, here is mine.
This script buys all 5 bless at the same time, and you can change the cost of all 5, by changing
Credits to Ninkobi for the base of my script, rest is modifid by me!
This script buys all 5 bless at the same time, and you can change the cost of all 5, by changing
Lua:
local cost = xxx
Credits to Ninkobi for the base of my script, rest is modifid by me!
Lua:
--|-------------------|--
--|Script by Ninkobi--|--
--|Modified by Xavizus|--
--|-------------------|--
function onSay(cid, words, param)
--Config--
local cost = xxx
--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
Last edited: