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

Runes

Manarune:

In spells/scripts/custom create a new lua document and add this:
PHP:
local combat = createCombatObject() 
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) -- Color 
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1) 
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) 

function onCastSpell(cid, var) 
doPlayerAddMana(cid,math.random(100,300)) -- Random Ammount 
return doCombat(cid, combat, var) 
end

And then in spells.xml add this:
PHP:
<rune name="Manarune" id="2280" charges="1" mana="1" maglv="0" exhaustion="1500" blocktype="solid" allowfaruse="1" script="custom/manaheal.lua"/>


(If you dont know how to make a .lua file then just make a .txt file and save it as manarune.lua)

Credits to: Lolaye and justin234 for the scrips..


How to modify the script ?
Code:
doPlayerAddMana(cid,math.random(100,300)) -- Random Ammount

100,300 = It will give you between 100 and 300 mana. If you change it to 500,3000 it will give you between 500 and 3000 mana per useage.
 
Back
Top