Send me the original distro so I see what can I do0.3.7 r5969.
It only work with the LIMIT set on 1... :C
Send me the original distro so I see what can I do0.3.7 r5969.
It only work with the LIMIT set on 1... :C
*Code improved
*Limit counter fixed
*Player can't pull lever diagonally
*Added lever itemid configuration
*List of fruits and combinations simplified
*Configuration of row positions simplified
[16:59:29.055] [Error - Action Interface]
[16:59:29.055] In a timer event called from:
[16:59:29.055] data/actions/scripts/slot.lua:onUse
[16:59:29.055] Description:
[16:59:29.055] (luaDoCreateItem) Item not found
[16:59:29.055] [Error - Action Interface]
[16:59:29.055] In a timer event called from:
[16:59:29.055] data/actions/scripts/slot.lua:onUse
[16:59:29.055] Description:
[16:59:29.055] (luaDoCreateItem) Item not found
Send me the distro in private, make sure you are configuring the lever(s) well0.4Code:[16:59:29.055] [Error - Action Interface] [16:59:29.055] In a timer event called from: [16:59:29.055] data/actions/scripts/slot.lua:onUse [16:59:29.055] Description: [16:59:29.055] (luaDoCreateItem) Item not found [16:59:29.055] [Error - Action Interface] [16:59:29.055] In a timer event called from: [16:59:29.055] data/actions/scripts/slot.lua:onUse [16:59:29.055] Description: [16:59:29.055] (luaDoCreateItem) Item not found
3884
function verifyRow(cid, pos)
local result = FALSE
for combo, profit in pairs(SETUP.WIN) do
if (getTileItemById(pos[101], combo[1]).uid > 0) or (combo[1] == ANY) then
if (getTileItemById(pos[102], combo[2]).uid > 0) or (combo[2] == ANY) then
if (getTileItemById(pos[103], combo[3]).uid > 0) or (combo[3] == ANY) then
[16:5:29.794] [Error - Action Interface]
[16:5:29.794] data/actions/scripts/slot.lua:onUse
[16:5:29.795] Description:
[16:5:29.795] (luaDoRemoveItem) Item not found
\data\lib\032-position.lua
I got that error too..
I'm using 0.3.6
function getPositionByDirection(position, direction, size)
local n = size or 1
if(direction == NORTH) then
position.y = position.y - n
elseif(direction == SOUTH) then
position.y = position.y + n
elseif(direction == WEST) then
position.x = position.x - n
elseif(direction == EAST) then
position.x = position.x + n
elseif(direction == NORTHWEST) then
position.y = position.y - n
position.x = position.x - n
elseif(direction == NORTHEAST) then
position.y = position.y - n
position.x = position.x + n
elseif(direction == SOUTHWEST) then
position.y = position.y + n
position.x = position.x - n
elseif(direction == SOUTHEAST) then
position.y = position.y + n
position.x = position.x + n
end
return position
end