gremlee
Qumora.com
- Joined
- Jul 15, 2008
- Messages
- 511
- Reaction score
- 16
Hello i need to config this one so it only spawn one stone after event because if they are 10 ppl running into the teleport it will spawn 10 stones :S
Code:
for posx = 1, #positionsx do
if getTileItemById(positionsx[posx], 1353).uid < 1 and getGlobalStorageValue(1904) < os.time() then
addEvent(doCreateItem, 30*60*1000, 1353, 1, positionsx[posx])
if posx == #positionsx then
setGlobalStorageValue(1904, os.time() + 30*60)
end
end
end
for posz = 1, #positionsz do
if getTileItemById(positionsz[posz], 1354).uid < 1 and getGlobalStorageValue(1905) < os.time() then
addEvent(doCreateItem, 30*60*1000, 1354, 1, positionsz[posz])
if posz == #positionsz then
setGlobalStorageValue(1905, os.time() + 30*60)
end
end
end