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

Manarune healing goes up after reaching x level

wafuboe

Active Member
Joined
Dec 24, 2010
Messages
884
Solutions
2
Reaction score
26
ok i need a manarune that depends on your level
example
100-300: mana healing: 1600
300-700: mana healing: 2500
700+ : mana healing:3500


a
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if toPosition.x ~= 0 and toPosition.x ~= 65535 and itemEx.uid ~= 0 and isPlayer(itemEx.uid) then
		local k = getPlayerLevel(cid)
		if k < 300 then
			k = 1600
		elseif k < 700 then
			k = 2500
		else
			k = 3500
		end
		doPlayerAddMana(itemEx.uid, k)
		doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE)
		return true
	end
end
 
mmm
kind of confused can you explain it?
k= player level ok
if k= 300 then
k= 1600 << mana?

if k= 700
K=2500
k=3500

helaing between 2500 and 3500'?
 
if level is lower than 300 heal 1600
else if level is lower than 700 heal 2500
else (700 or higher) heal 3500
 
Back
Top