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

From Manarune To Healingrune.

nystrom

New Member
Joined
Nov 17, 2009
Messages
269
Reaction score
0
Hello i have a manarune that i just got to work, so it addes mana to a player, but now i need a rune that adds health to a player. so i wounder if some one knows how to edit this rune to add health.

PHP:
local MIN = 550
local MAX = 1250


function onUse(cid, item, fromPosition, itemEx, interval, lastexecution)
	if isPlayer(itemEx.uid) == FALSE then
		return FALSE
	end

	if((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 100)) then
		doCreatureSay(itemEx.uid, "Only sorcerers and druids of level 80 or above use this mana rune.", TALKTYPE_ORANGE_1)
		return TRUE
	end

	if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
		return FALSE
	end

        doCreatureSay(cid,"Aaaah...", TALKTYPE_ORANGE_1) 
        doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
	return TRUE
end

i tryed to do this:
if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end
 
Health Rune Solved

Solved :D here is the script if some one have the same problem :P
PHP:
local MIN = 550
local MAX = 1450


function onUse(cid, item, fromPosition, itemEx, interval, lastexecution)
	if isPlayer(itemEx.uid) == FALSE then
		return FALSE
	end

	if((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid) or isKnight(itemEx.uid)or isPaladin(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 100)) then
		doCreatureSay(itemEx.uid, "Only players with level 100 or above can use this manarune.", TALKTYPE_ORANGE_1)
		return TRUE
	end

	if doCreatureAddHealth(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
		return FALSE
	end

        doCreatureSay(cid,"Aaaah...", TALKTYPE_ORANGE_1) 
        doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
	return TRUE
end
 
Back
Top