Using the provided Damage.lua script, I am passing 2 spell_data params, both INT, one is damageType 0 (slashing) the other is damage amount 9, for the Assassin skill "Quick Strike" (I am not currently using the DOT component). After casting it once, I see the right damage hit the mob - but after casting it a second time, I usually crash the world.
Code: Select all
0: 25 00 01 00 31 | %...1
0: 22 00 05 00 34 30 30 30 - 30 | "...40000
Error running attempt to call a nil value
0: 22 00 05 00 34 30 30 30 - 30 | "...40000
Error running attempt to call a nil value
Got signal 11My Damage.lua (from SVN):
Info from servers Application log:--[[
This is the EQ2Emu generic spell damage script written in LUA.
These functions are shared, so don't save any character data in them.
If you have any questions be sure to read the readme.txt file located in this directory
--]]
--main process function
function cast(Caster, Target, DamageType, Damage)
-- syntax for SpellDamage is Target, DamageType, and Damage
SpellDamage(Target, DamageType, Damage)
end
function remove(Caster, Target)
Code: Select all
Faulting application eq2world.exe, version 0.0.0.0, faulting module ntdll.dll, version 5.1.2600.2180, fault address 0x00010f29.Edit OP: Renamed because this has nothing to do with spells only. I see more world crashes changing LUA scripts, and using /reload luasystem and /reload spawnscripts then /repop. Seems to happen often doing that.