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

exhaustion between manarune and Healing spells

Casper1996

New Member
Joined
Mar 15, 2012
Messages
9
Reaction score
0
On my server there is alot of exhaustion between using manarune and healing spells and i dont want that does anyone know how to change that ? (when i use exura vita it takes some time to be able to use manarune again)
 
Solution
Try doing it through actions like potions, in data\actions\scripts create a Lua file and name it mana rune.lua and add this code to it.
Lua:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
    local mana_minimum = 1200
    local mana_maximum = 1750
    local mana_add = math.random(mana_minimum, mana_maximum)
    
    doPlayerAddMana(cid, mana_add)
    doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_GREEN)
    doCreatureSay(cid,"DONATE MANA",19)
    doRemoveitem(item.uid)
    return TRUE
end
then in data\actions\actions.xml add this line...
TFS version? Post your manarune script and that exhaust also happens with potions? GMP/SMP etc..?
 
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)
doCreatureSay(cid,"DONATE MANA",19)
doPlayerAddMana(cid, math.random(1200,1750))
return doCombat(cid, combat, var)
end



0.3.6
Post automatically merged:

<rune name="Donate Manarune" id="2299" charges="20" maglv="0" exhaustion="200" blocktype="solid" allowfaruse="1" aggressive="0" script="custom/donated manarune.lua"/>


exhaustion="200 if i decres this it dosent help
 
Try doing it through actions like potions, in data\actions\scripts create a Lua file and name it mana rune.lua and add this code to it.
Lua:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
    local mana_minimum = 1200
    local mana_maximum = 1750
    local mana_add = math.random(mana_minimum, mana_maximum)
    
    doPlayerAddMana(cid, mana_add)
    doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_GREEN)
    doCreatureSay(cid,"DONATE MANA",19)
    doRemoveitem(item.uid)
    return TRUE
end
then in data\actions\actions.xml add this line
XML:
<action itemid="2299" event="script" value="mana rune.lua" allowfaruse="1"/>
 
Solution
Back
Top