down = getGlobalStorageValue(CHANGE)
stonePos = {x = 100, y = 100, z = 10, stackpos = 2}
getStone = getThingfromPos(stonePos)
function onStepIn(cid, frompos, topos)
if item.actionid == CHANGE then
if isPlayer(cid) == 1 then
if down == 0 then
doRemoveItem(getStone.uid,1)
setGlobalStorageValue(CHANGE,1)
end
end
end
end
function onStepOut(cid, frompos, topos)
if item.actionid == CHANGE then
if isPlayer(cid) == 1 then
if down == 1 then
setGlobalStorageValue(CHANGE,0)
doCreateItem(1354,stonePos,1)
end
end
end
end
<movevent event="StepIn" actionid="CHANGE" script="stonetile.lua"/>
<movevent event="StepOut" actionid="CHANGE" script="stonetile.lua"/>
down = getGlobalStorageValue(9999)
stonePos = {x = 541, y = 707, z = 10, stackpos = 2}
getStone = getThingfromPos(stonePos)
function onStepIn(cid, frompos, topos)
if item.actionid == 9999 then
if isPlayer(cid) == 1 then
if down == 0 then
doRemoveItem(getStone.uid,1)
setGlobalStorageValue(9999,1)
end
end
end
end
function onStepOut(cid, frompos, topos)
if item.actionid == 9999 then
if isPlayer(cid) == 1 then
if down == 1 then
setGlobalStorageValue(9999,0)
doCreateItem(1354,stonePos,1)
end
end
end
end