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

What XML do i use to make a manarune

Anak

New Member
Joined
Mar 10, 2011
Messages
3
Reaction score
0
I got a script and stuff for a manarune.. and i placed the .lua file in actions and made a folder for it.. and i wanna know what XML file i use to import the script. :D
 
in your spells.xml

Code:
<rune name="strong manarune" id="2299" charges="20" maglv="1" exhaustion="1000" blocktype="solid" allowfaruse="1" aggressive="0" script="custom/strongmanarune.lua"/>


in your spells/healing/folder
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, 2000) 
return doCombat(cid, combat, var)

end

local area = createCombatArea(AREA_MANAWAVE5)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
Back
Top