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

Windows death loss tfs 1.1

kozmo

Member
Joined
Jan 30, 2009
Messages
433
Solutions
2
Reaction score
22
Hey otland hows it!

Was messing around trying to make my pvp feel much better
when I noticed when you kill a higher level on my Server 400+
They end up almost losing 3 and a half levels, which would be quite
annoying if you died a lot so I was wondering how I could fix this or even.
Make this talk actions blessings command save more of your Exp?

function getCost(level)
if level <= 30 then
return 2000*5
elseif level >= 120 then
return 20000*5
else
return ((level - 20) * 200 * 5)
end
end

function onSay(cid, words, param)
local p = Player(cid)
local cost = getCost(getPlayerLevel(cid))
if(not(isPlayerPzLocked(cid))) then
if(p:hasBlessing(1) and p:hasBlessing(2) and p:hasBlessing(3) and p:hasBlessing(4) and p:hasBlessing(5) and p:hasBlessing(6)) then
p:sendCancelMessage("You have already been blessed by the gods.")
return false
end
if(p:removeMoney(cost)) then
for b = 1,6 do
p:addBlessing(b)
end
p:getPosition():sendMagicEffect(39)
p:sendTextMessage(19, "You have been blessed by the gods!")
else
p:sendCancelMessage("You need "..cost.." gold coins to buy all blessings.")
end
else
p:sendCancelMessage("You can't buy bless, when you are in a battle.")
end
return false
end

Thanks for reading
Kozmo.
 
Back
Top