Bug
New Member
- Joined
- Jan 7, 2011
- Messages
- 111
- Reaction score
- 1
Hi my globalevent removes some stones each x time, it announces the event but it doesnt remove nothing
Here the script:
Here the script:
Code:
function onTime()
local stonePos = {
[1] = {x=32366, y=32233, z=6, stackpos=1},
[2] = {x=32367, y=32233, z=6, stackpos=1},
[3] = {x=32368, y=32233, z=6, stackpos=1},
[4] = {x=32369, y=32233, z=6, stackpos=1},
[5] = {x=32370, y=32233, z=6, stackpos=1},
[6] = {x=32371, y=32233, z=6, stackpos=1},
[7] = {x=32372, y=32233, z=6, stackpos=1}
}
for stonePos = 1 do,
doRemoveItem(getThingfromPos(stonePos[1]).uid, 1)
end
for stonePos = 2 do ,
doRemoveItem(getThingfromPos(stonePos[2]).uid, 1)
end
for stonePos = 3 do,
doRemoveItem(getThingfromPos(stonePos[3]).uid, 1)
end
for stonePos = 4 do,
doRemoveItem(getThingfromPos(stonePos[4]).uid, 1)
end
for stonePos = 5 do,
doRemoveItem(getThingfromPos(stonePos[5]).uid, 1)
end
for stonePos = 6 do,
doRemoveItem(getThingfromPos(stonePos[6]).uid, 1)
end
for stonePos = 7 do,
doRemoveItem(getThingfromPos(stonePos[7]).uid, 1)
end
for _, name in ipairs(getOnlinePlayers()) do
local cid = getPlayerByName(name)
doPlayerSendTextMessage(cid, 22, "New Event:\nFree outfits in second floor of temple!\nYou have just 10 minutes!")
end
return true
end