Some of my spells dont have exhaustion even if i registred it on spells.xml:
Example for this; - this spell dont have any exhaustion :
and spells.xml:
I tested this spell with a player, i could spam it like 1000/spellcasts per sec.
I know that GM - GOD can spam spells, they dont have any exhaustion, and cant be muted.
Any solutions?
LUA:
exhaustion="1000" - And i know that every 1000 is a second.
Example for this; - this spell dont have any exhaustion :
LUA:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, DEATHTARGET)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FLASHARROW)
function onGetFormulaValues(cid, level, skill, attack, factor)
local skillTotal, levelTotal = skill + attack, level / 5
return -(skillTotal / 3 + levelTotal), -(skillTotal + levelTotal)
end
setCombatCallback(combat1, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
local area1 = {
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 3, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
}
setCombatArea(combat1, createCombatArea(area1))
local parameters = { cid = cid, var = var, combat1 = combat1}
function onCastSpell(cid, var)
config = {
formula = (getCreatureMaxHealth(cid) / 100) * math.random(5, 7),
formulaa = (getCreatureMaxMana(cid) / 100) * math.random(1, 2), -- Change the 10 in any percent you want to heal it --
}
doCreatureAddHealth(cid, config.formula)
doCreatureAddMana(cid, config.formulaa)
addEvent(doCombat, 0, cid, combat1, var)
end
and spells.xml:
LUA:
<instant name="Healing attack" words="exori exur" lvl="25" mana="125" prem="0" range="3" blockwalls="1" exhaustion="1000" event="script" value="attack/xxxx.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="3"/>
<vocation id="4"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
</instant>
I tested this spell with a player, i could spam it like 1000/spellcasts per sec.
I know that GM - GOD can spam spells, they dont have any exhaustion, and cant be muted.
Any solutions?
Last edited: