Hello, I have the following problem:
I paste the script below, maybe you can see the solution. (from 1573)
bad argument #2 to 'random' (interval is empty)
Lua:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/stats.lua:onHealthChange
data/stats.lua:1573: bad argument #2 to 'random' (interval is empty)
Code:
local hp_d = math.random(1, math.floor(math.random(0, tonumber(cur_slots[i][2]))))
if hp_d > 0 then
doTargetCombatHealth(aid, cid, COMBAT_LIFEDRAIN, -hp_d, -hp_d, CONST_ME_MAGIC_RED)...