SpiderOT
™ツʂριԃҽɾσƚ➽ ٩(•‿•)۶★彡
hello
here is my script it work fine but sometime when player die it crash server
any idea why??
here is my script it work fine but sometime when player die it crash server
Lua:
function onStatsChange(cid, attacker, type, combat, value)
local posp = getCreaturePosition(cid)
local frompos = {x=1776, y=1635, z=7}
local topos = {x=1833, y=1699, z=7}
local temple = { x = 1084, y = 653, z = 7}
if isInArea(posp, frompos, topos) then
if (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) then
doTeleportThing(cid, temple)
setPlayerStorageValue(cid, 901, 0)
end
end
return true
end