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

HEALT / MANA - Rune

wohami

New Member
Joined
May 18, 2010
Messages
93
Reaction score
0
Location
sweden
Hello, i am noob at this whit level / ml lavel based mana and uh rune so i hope some one in this forum can help me i have tryed to edit self but dont work good for me.

Code:
UH1: 700-1000
MR1: 600-900

-------

UH2: 1000-1600
MR2: 1000-1300

------

UH3: 1800-2000
MR3: 1600-1900

------

Thanks for help and i will give good whit rep.
Know that is it alot but if u help me i can chere this rune whit other thats look after the same rune.

so help me and help alot of other peapol.

Mvh Wohami :thumbup:
 
Code:
 function onUse(cid, item, fromPosition, itemEx, toPosition)
	local min, max = 0, 0

	
	local rand = math.random(min, max)
	if rand > 1600 then
		rand = 1600
	end
	
	if rand < 900 then
		rand = 900
	end
	
	if not isPlayer(itemEx.uid) then
		return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
	end
	
	if(getCreatureMana(cid) >= getCreatureMaxMana(cid)) then
		return doPlayerSendCancel(cid, "Your mana is currently full.")
	end
	
	return doChangeTypeItem(item.uid, item.type - 1) and doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE) and doPlayerAddMana(itemEx.uid, rand) and doCreatureSay(itemEx.uid, "Mmmh, delicious!", TALKTYPE_ORANGE_1)
end

Just change the 1600/900 values to what you want them to be..
 
YES, People request this every day, but they all say the same: use search
and they get some crappy UH and Mana Rune After That.

i wont a ml / level based. rune. thats heals that mucth when its starting to get high level like 600 maybe.
 
Back
Top Bottom