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

mana rune problem

vicho815

New Member
Joined
Jan 10, 2009
Messages
3
Reaction score
0
hello,

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
 
thanks to the first script I could fix mine so I'll help you :p

this is what I have in spells.xml

Code:
 <rune name="Mana Rune" id="2276" allowfaruse="1" charges="5" lvl="80" exhaustion="1000" maglv="18" aggressive="0" needtarget="1" blocktype="solid" script="manarune.lua" />
 
Back
Top