Is it possible to rewrite the script to give 8 bless and not just 5? Even after the change, the script only gives 5.
C++:
function onSay(cid)
local player = Player(cid)
local totalBlessPrice = getBlessingsCost(player:getLevel()) * 5 * 0.7
if(not(isPlayerPzLocked(cid))) then
if player:getBlessings() == 5 then
player:sendCancelMessage("You already have been blessed!", cid)
elseif player:removeMoney(totalBlessPrice) then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been blessed by all of eight gods!")
for b = 1, 5 do
player:addBlessing(b, 1)
end
player:getPosition():sendMagicEffect(CONST_ME_HOLYAREA)
else
player:sendCancelMessage("You don't have enough money. You need " .. totalBlessPrice .. " to buy bless.", cid)
end
else
player:sendCancelMessage("You can't buy bless while you are in a battle.")
end
end