Azze19
Solo developer
- Joined
- Jul 4, 2014
- Messages
- 75
- Reaction score
- 23
When I use this spell as a GOD char, the spell works as intended; however when I use it as a regular character the client crashes and returns the following error:
Player Action: 048 046 048 046 048 046 048 058 055 049 055 050
Player.cpp 344: exception occurred, reason:
Network.cpp 841: exception occurred, reason:
Control.cpp 1527: exception ocurred (Type = 164) (MainWindow = 58903224), reason:
Communication.cpp 3606: exception occurred, reason:
Creatures.cpp 1541: assertion failed (Spell = 202) (Delay = 40000), reason: Spell < SPELL_BEYONDLAST
The spell is basically a exevo mas san with a gfb animation and the spell is registered as a hell's core with the words and the spell id changed of course.
spells.xml
spell.lua
Player Action: 048 046 048 046 048 046 048 058 055 049 055 050
Player.cpp 344: exception occurred, reason:
Network.cpp 841: exception occurred, reason:
Control.cpp 1527: exception ocurred (Type = 164) (MainWindow = 58903224), reason:
Communication.cpp 3606: exception occurred, reason:
Creatures.cpp 1541: assertion failed (Spell = 202) (Delay = 40000), reason: Spell < SPELL_BEYONDLAST
The spell is basically a exevo mas san with a gfb animation and the spell is registered as a hell's core with the words and the spell id changed of course.
spells.xml
Code:
<instant group="attack" spellid="202" name="Day of Judgement" words="adolebit supra malum prona sunt ab" lvl="110" mana="1650" selftarget="1" prem="0" exhaustion="40000" groupcooldown="4000" needlearn="0" script="attack/day of judgement.lua">
<vocation name="Druid"/>
<vocation name="Elder Druid"/>
spell.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)
function onGetFormulaValues(cid, level, maglevel)
min = -((level / 5) + (maglevel * 8) + 50)
max = -((level / 5) + (maglevel * 12) + 75)
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end