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

Lua Manarune / Potion

City

Active Member
Joined
Jul 14, 2012
Messages
1,077
Reaction score
30
Location
Sweden
How would I make a manarune that acts like a potion, exhaust-wise? So you can use spells while using the rune.

LUA:
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, 1150)
doCreatureSay(cid, "Manarune", TALKTYPE_MONSTER)
return doCombat(cid, combat, var)
end

XML:
<rune name="Mana Rune" id="2309" allowfaruse="1" charges="1" lvl="1" maglv="1" exhaustion="0" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/manarunedonate.lua"/>
 
Change the exhaust to 2000?

Nothing will happen if I do, you see, if I use manarune and THEN a spell, then it will work.

But if I use a spell then manarune, I'll be exhausted.

If I set it to 2000, it'll only apply additional exhaustion so I cannot manarune > spell
 
Back
Top