• 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!

Blessing system

replace this in your config.lua
LUA:
blessingOnlyPremium = false
        blessingReductionBase = 30
        blessingReductionDecreament = 5
        eachBlessReduction = 20
talkactions.xml
Code:
	<talkaction words="!bless" event="script" value="bless.lua"/>

talkactions/scripts/bless.lua
LUA:
  function onSay(cid, words, param, channel)
        if getPlayerBlessing(cid, 5) == FALSE then
                if getPlayerMoney(cid) >= 300000 then
                        for i = 1,5 do
                                doPlayerAddBlessing(cid, i)
                        end
                        doSendMagicEffect(getCreaturePosition(cid), 39)
                        doPlayerRemoveMoney(cid, 300000)
                        doPlayerSendTextMessage(cid, 22, "You have been blessed by the gods!")
                else
                        doPlayerSendCancel(cid, "You don't have enough money.")
                        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
                end
        else
                doPlayerSendCancel(cid, "You have already been blessed.")
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
        end
return true
end
 
You want the player do drop one lvl?
LUA:
blessingOnlyPremium = false
        blessingReductionBase = 30
        blessingReductionDecreament = 5
        eachBlessReduction = 18
 
so what i replace in conig.lua

blessingsOnlyPremium = "no"
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 20

?
 
Yepp if you want the players loose one lvl when the have blessings
replace this in config.lua
LUA:
blessingsOnlyPremium = "no"
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 20
With this:
LUA:
blessingOnlyPremium = false
        blessingReductionBase = 30
        blessingReductionDecreament = 5
        eachBlessReduction = 18
 
LUA:
	blessingsOnlyPremium = "no"
	blessingReductionBase = 30
	blessingReductionDecreament = 5
	eachBlessReduction = 15
 
Back
Top