• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Blessings

freddzor11

Member
Joined
May 25, 2009
Messages
695
Reaction score
5
How do I change so I don't loose like 3 levels with bless :S

Here is my 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 bought all blessings!')
    else
        if doPlayerRemoveMoney(cid, 50000) == TRUE then
            doPlayerAddBlessing(cid, 1)
            doPlayerAddBlessing(cid, 2)
            doPlayerAddBlessing(cid, 3)
            doPlayerAddBlessing(cid, 4)
            doPlayerAddBlessing(cid, 5)
            doSendMagicEffect(getPlayerPosition(cid), 49)
            doCreatureSay(cid, "You have been blessed by the gods!", TALKTYPE_ORANGE_1)
        else
            doPlayerSendCancel(cid, "You need 50000 to get blessed!")
        end
    end    
    return 1
end
 
Yes, you can change it in the config.

You can also change it by running this command in your database:
Code:
UPDATE players SET loss_experience = 7, loss_mana = 7, loss_skills = 7, loss_containers = 100, loss_items = 7;

Change it to whatever you want, just note its in percent.
 
serch for this in config.lua
Code:
deathLostPercent = 10

 And

blessingOnlyPremium = false
blessingReductionBase = 45
blessingReductionDecreament = 5
eachBlessReduction = 9
 
Last edited:
Back
Top