• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

manarune Help!

grogan

New Member
Joined
Dec 6, 2007
Messages
133
Reaction score
0
I need a manarune for 8.22 thats gives around 1000/1200 mana.. but i want it so only level 300 can use this rune i want the id of the rune to be 2281. Can anyone make me a script for this manarune thanks. IM using the latest forgottens server
 
I think this will work :p... next time search?

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
    local mana = math.random(1000, 1200)
    doPlayerAddMana(cid, mana)
    --doSendAnimatedText(getPlayerPosition(cid), '+' .. mana, TEXTCOLOR_GOLD)
    return doCombat(cid, combat, var)	   	
end

This goes to manarune.lua ^
Add it like a normal rune to spells.xml
 
The problem is most probably that the rune you want to use is already in use by another spell, make sure that is not the case, because i had problems with this rune too, until i noticed that it was already in use by another spell, so i had to give that spell another rune, so i could use this rune for manarune.
 
Back
Top