hello,
well I found a mana rune script in the forum:
and made a .lua file in the spell\scripts\custom folder called manarune.lua
then, in spells.xml, I added:
and when I try to use it, it says: "You can't use this in here."
plz tell me what's wrong
well I found a mana rune script in the forum:
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)
doPlayerAddMana(cid, math.random(100, 1000))
return doCombat(cid, combat, var)
end
and made a .lua file in the spell\scripts\custom folder called manarune.lua
then, in spells.xml, I added:
Code:
<rune name="Mana Rune" id="2282" allowfaruse="1" charges="1" lvl="25" maglv="10" exhaustion="2000" needtarget="1" script="custom/manarune.lua"/>
and when I try to use it, it says: "You can't use this in here."
plz tell me what's wrong