• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Action .::1-Row Slot Machine::. TFS [0.3/0.4/1.0/1.2]

Yes, 1.0 port is on the way, if possible

Script updated:
*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

lpXykPg.png
 
slot.png

Lol I am probably jumping the gun here sorry. Im sure it will turn out great
 
Last edited:
Code:
[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
0.4
3884
 
Code:
[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
0.4
3884
Send me the distro in private, make sure you are configuring the lever(s) well

Added version for TFS 1.0 on main post @Powtreeman
 
Last edited:
Everything works except I lose even when im supposed to win? Help? using tfs 1.0
 
Allrighty, I forgot to update the actionids for the verifyRow function of tfs 1.0 version, now fixed on second post
@Tufte @Powtreeman
 
Very nice. It works perfectly now! Great job

By the way what numbers did you change to fix this?
 
Last edited by a moderator:
these
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
 
@cbrm, Unfortunately I'm experiencing a problem on 0.4 (which is what you developed it on, correct?) - Except you did 0.3 I am 0.4 3884, which has all of 0.3 features + more right? So it should work..

All the effects show up in the correct locations, but no items are spawned. The money is removed, the player can click it again and it says "16:05 You have lost in the Slot Machine :( Try again"

Main Issue: Items do not show up for script call upon if they win.

Code:
[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
 
Last edited:
Send me the original distro in priv.
 
Sent you and inbox, thank you very much for the quick response!
 
slot-png.23630



I got that error too..
I'm using 0.3.6
\data\lib\032-position.lua
Code:
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
 
Heya, I have this error:
casinoerror.png


Changed global.lua and still getting this error. TFS 1.0

Thanks.
 
Last edited:
using tfs 1.0
Lua Script Error: [Action Interface]
data/actions/scripts/slot.lua:eek:nUse
data/actions/scripts/slot.lua:189: attempt to call global 'mayNotMove' (a nil value)
stack traceback:
[C]: in function 'mayNotMove'
data/actions/scripts/slot.lua:189: in function <data/actions/scripts/slot.lua:136>
 
Back
Top