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

[AVESTA SQL 7.6] Mana Rune!

Anyjia

KillaBeez
Joined
Jun 10, 2007
Messages
220
Reaction score
37
Location
Sweden
Hello!

I'm trying to get a manarune in my server that you can use spells with at the same time (like manafluid but it's a rune).
Here is the script. I hope someone can help me :)

Thanks in advance.

This is the manarune .lua!
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, 200))
				doPlayerSay(cid, "Aaaah...", 1)
	return doCombat(cid, combat, var)
end

This is in spells.xml

Code:
<rune name="Manarune" id="2284" aggressive="0" charges="2" needtarget="1" maglv="0" exhaustion="1" enabled="1" allowfaruse="1" script="manarune.lua"></rune>
 
Back
Top