jestem pro
That is the question
- Joined
- Apr 20, 2013
- Messages
- 650
- Solutions
- 14
- Reaction score
- 88
Hi everbody. I'm making a script and I have a problem with the loop. Ok so the script is to movevent function onAddItem. I don't know how i can make that a item will create on the position of the few, because it creates only the first position of the table.
Here the piece:
so as I lay item on a one of these positions( from table), it creates another item on the position.
Thanks and help me
Sorry my english.
Here the piece:
LUA:
local pos = {
{x=1000, y=1000, z=7},
{x=1001, y=1001, z=7}
}
for _, k in ipairs(pos) do
if moveitem.itemid == 2669 then
doCreateItem(8046 ,1, k)
end
end
so as I lay item on a one of these positions( from table), it creates another item on the position.
Thanks and help me
Sorry my english.