Worldgreatest
If you are reading this you are dumb
- Joined
- Oct 26, 2014
- Messages
- 29
- Reaction score
- 4
Hello I am having some problem with exhaustion on some spells on my server I don´t think that it´s anything wrong with the spell script but it is maybe something wrong in the spell.xml, it takes about 2-3 secounds for the players to cast this spell I changed the exhaustion to 1000 it was still the same I changed it to 10 it was the same, how do I change it so my players can cast the spell faster.
How it looks like in spell.xml
Spell script
How it looks like in spell.xml
Code:
<instant name="Explosion" words="Tera boom" lvl="200" mana="1400" prem="1" exhaustion="2000" selftarget="1" needlearn="0" event="script" value="explosiontera.lua">
<vocation id="2"/>
<vocation id="10"/>
<vocation id="6"/>
</instant>
Spell script
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, 1)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 37)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, false)
local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)
function onGetFormulaValues(cid, level, maglevel)
min = -(maglevel*25) -level/1.5 -100 --1200 level 200
max = -(maglevel*25) -level/1.5 -300 --1500
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end