Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local positions = {
- {x = 1012, y = 1036, z =7},
- {x = 1013, y = 1036, z =7},
- {x = 1014, y = 1036, z =7},
- {x = 1015, y = 1036, z =7},
- }
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- if item.itemid == 1945 then
- doTransformItem(item.uid, 1946)
- else
- doTransformItem(item.uid, 1945)
- end
- for _, pos in pairs(positions) do
- local stone = getTileItemById(pos, 1304).uid
- if stone >= 100 then
- doRemoveItem(stone)
- else
- doCreateItem(1304, 1, pos)
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment