EndDead: , I made a typo in a function name
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
EXAMPLE = {
{43, 23, 24}, -- TileX, TileY, Item ID
{13, 43, 45} -- TileX, TileY, Item ID
}
addhook("use","_use")
function _use(id,x,y)
for k,v in pairs(EXAMPLE) do
if x == v[1] and y == v[2] then
parse("equip "..id.." "..v[3])
end
end
end
"Table" example


Offline
