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

Bless Problem

25193323

New Member
Joined
Jun 13, 2013
Messages
91
Reaction score
0
Hello, I got bless problem when the player dies with a bless loses 3 levels, without it loses 6 levels I want to edit with bless 1 level and without 3 how I can do that ?

I'll REP.
 
Lua:
function onDeath(cid, corpse, deathList)
	function HaveBless(cid)
		for i = 1,5 do
			if getPlayerBlessing(cid, i) then
				return true
			end
		end
		return false
	end
	if isPlayer(cid) and HaveBless(cid) and getPlayerSkullType(cid) < SKULL_RED then
		doCreatureSetDropLoot(cid, false)
	end
	return true
end

and

Lua:
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 got one or more blessings!')
    else
        if doPlayerRemoveMoney(cid, 60000) == TRUE then
			if isPremium(cid) == 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 a premium account!")
			end
        else
            doPlayerSendCancel(cid, "You need 6 crystal coin to get blessed!")
        end
    end    
    return 1
end
 
Last edited by a moderator:
Lua:
function onDeath(cid, corpse, deathList)
function HaveBless(cid)
for i = 1,5 do
if getPlayerBlessing(cid, i) then
return true
end
end
return true
end
if isPlayer(cid) and HaveBless(cid) and getPlayerSkullType(cid) < SKULL_RED then
doCreatureSetDropLoot(cid, false)
end
return true
end

try that?
 
same problem with me buy i think you should see your config.lua

you may found something like that :

blessings = true
blessingOnlyPremium = false
blessingReductionBase = 30
blessingReductionDecrement = 5
eachBlessReduction = 8
 
Back
Top