Fix It guys He get to me Error In Engine
-- function SendAnmi(cid)
-- stone_pos={x=562,y=1591,z=8,stackpos=1}
-- num = getGlobalStorageValue(98575)
-- stone = getThingfromPos(stone_pos)
-- if stone.itemid == 6966 then
-- --if num>0 then
-- -- setGlobalStorageValue(98575, -1)
-- -- end
-- else
-- num = num -1
-- n = num + 17
-- doSendAnimatedText(stone_pos, "".. n .."", TEXTCOLOR_RED)
-- if num == 0 then
-- num=17
-- end
-- setGlobalStorageValue(98575, num)
-- end
-- end
function onStepIn(cid, item, pos)
pos1={x=556,y=1580,z=8,stackpos=1}
pos2={x=568,y=1589,z=8,stackpos=1}
stone_pos={x=562,y=1591,z=8,stackpos=1}
stone = getThingfromPos(stone_pos)
local found = nil
local player=nil
for arenax = pos1.x, pos2.x do
for arenay = pos1.y, pos2.y do
for sp=0,253 do
arenapos = {x=arenax, y=arenay, z=pos1.z, stackpos=sp}
slain1 = getThingfromPos(arenapos)
if slain1.itemid == 3028 then
found = true
x=slain1.duration
end
end
end
end
if found and stone.itemid == 6966 then
doRemoveItem(stone.uid,1)
doSendMagicEffect(stone_pos, 41)
for arenax = pos1.x, pos2.x do
for arenay = pos1.y, pos2.y do
for sp=0,253 do
arenapos = {x=arenax, y=arenay, z=pos1.z, stackpos=sp}
slain1 = getThingfromPos(arenapos)
if slain1.itemid == 3028 then
for x = 1, 15 do
end
end
end
end
end
end
if found ~=true and stone.itemid ~= 6966 then
doCreateItem(cid,6966,1,stone_pos)
doSendMagicEffect(stone_pos, 43)
end
end