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

Lua Manarune and Healrune,, please help

Technosss

New Member
Joined
Jul 13, 2010
Messages
27
Reaction score
0
I tested many scripts , but nothingh worked for me :S

I have a high rate server and i will have a manarune that heal more than the player get more lvl and magic level, and it must have a effect and a animation (example: Ahh!! (the number of mana)Mana! )


And a Healing Rune that heal more than the player get more lvl and magic level, too

and the same effect but with Ahh!! (the number of Health) Hp!



Please help me, i used the search fuction,too but nothing works


PS: Srry for bad english
 
great a file with name mana rune in healing

and in the manarune file insert this:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_STUN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)

function onCastSpell(cid, var)
minim = getPlayerLevel(cid)*9
maxim = getPlayerLevel(cid)*11
damage = math.random(minim, maxim)
doPlayerAddMana(cid, damage)
doCreatureSay(cid, tostring(damage), TALKTYPE_ORANGE_1)
return doCombat(cid, combat, var)
end





and on spells.xml

insert this :

<rune name="Mana Rune" id="2298" allowfaruse="1" charges="1" lvl="1" maglv="0" exhaustion="900" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/mana rune.lua"/>
 
Back
Top