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

Solved

rilleman

New Member
Joined
Feb 14, 2010
Messages
269
Reaction score
0
Howdy!

I want a manarune that gives 400 mana, and when you use it it a orange text should come up and say "First manarune"
and it should be no exhaust at all.

Thanks :)
 
Last edited:
PHP:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
 
        if mag >= 3 then
        doSendMagicEffect(topos,1)
        doCreatureSay(cid,"Donated Manarune!!",19)
		doSendAnimatedText(pos, mana_add, 19)
        doPlayerAddMana(cid, 1000)
    

        else
        doSendMagicEffect(frompos,2)
        doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
        end

 return TRUE
end

This is my manarune right now. But It to add the ammout of mana you heal each time u heals..

Like "Donation manarune!!" (Orange text) then under, 1000+ in blue text (the ammout of mana).. please help me!
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if not isPlayer(itemEx.uid) then
		return false
	end
	doSendMagicEffect(toPosition, CONST_ME_STUN)
	doCreatureSay(cid, 'Donation manarune!!', TALKTYPE_ORANGE_1, false, 0, toPosition)
	doSendAnimatedText(toPosition, 1000, COLOR_LIGHTBLUE)
	doPlayerAddMana(itemEx.uid, 1000)
	return true
end
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if not isPlayer(itemEx.uid) then
		return false
	end
	doSendMagicEffect(toPosition, CONST_ME_STUN)
	doCreatureSay(cid, 'Donation manarune!!', TALKTYPE_ORANGE_1, false, 0, toPosition)
	doSendAnimatedText(toPosition, 1000, COLOR_LIGHTBLUE)
	doPlayerAddMana(itemEx.uid, 1000)
	return true
end

Rep for you ! :)
 
Back
Top