• 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!

MoveEvent Three Rounds Tic-Tac-Toc System(Fixed Version + more features)

can someone help me fix this

XML:
[03/01/2012 13:43:47] [Error - Action Interface] 
[03/01/2012 13:43:47] buffer:onUse
[03/01/2012 13:43:47] Description: 
[03/01/2012 13:43:47] [string "loadBuffer"]:5: attempt to index global 'config_tic' (a nil value)
[03/01/2012 13:43:47] stack traceback:
[03/01/2012 13:43:47] 	[string "loadBuffer"]:5: in function <[string "loadBuffer"]:4>

[03/01/2012 13:43:47] [Error - Action Interface] 
[03/01/2012 13:43:47] buffer:onUse
[03/01/2012 13:43:47] Description: 
[03/01/2012 13:43:47] [string "loadBuffer"]:5: attempt to index global 'config_tic' (a nil value)
[03/01/2012 13:43:47] stack traceback:
[03/01/2012 13:43:47] 	[string "loadBuffer"]:5: in function <[string "loadBuffer"]:4>

[03/01/2012 13:43:48] [Error - Action Interface] 
[03/01/2012 13:43:48] buffer:onUse
[03/01/2012 13:43:48] Description: 
[03/01/2012 13:43:48] [string "loadBuffer"]:5: attempt to index global 'config_tic' (a nil value)
[03/01/2012 13:43:48] stack traceback:
[03/01/2012 13:43:48] 	[string "loadBuffer"]:5: in function <[string "loadBuffer"]:4>

[03/01/2012 13:43:48] [Error - Action Interface] 
[03/01/2012 13:43:48] buffer:onUse
[03/01/2012 13:43:48] Description: 
[03/01/2012 13:43:48] [string "loadBuffer"]:5: attempt to index global 'config_tic' (a nil value)
[03/01/2012 13:43:48] stack traceback:
[03/01/2012 13:43:48] 	[string "loadBuffer"]:5: in function <[string "loadBuffer"]:4>

[03/01/2012 13:43:49] [Error - Action Interface] 
[03/01/2012 13:43:49] buffer:onUse
[03/01/2012 13:43:49] Description: 
[03/01/2012 13:43:49] [string "loadBuffer"]:5: attempt to index global 'config_tic' (a nil value)
[03/01/2012 13:43:49] stack traceback:
[03/01/2012 13:43:49] 	[string "loadBuffer"]:5: in function <[string "loadBuffer"]:4>

[03/01/2012 13:43:49] [Error - Action Interface] 
[03/01/2012 13:43:49] buffer:onUse
[03/01/2012 13:43:49] Description: 
[03/01/2012 13:43:49] [string "loadBuffer"]:5: attempt to index global 'config_tic' (a nil value)
[03/01/2012 13:43:49] stack traceback:
[03/01/2012 13:43:49] 	[string "loadBuffer"]:5: in function <[string "loadBuffer"]:4>
 
Show script and we can see
I have fixed that,just had to change 032-position file from lib but now i cant use command /a and when the cross has 3x in a row he doesnt win :/

I get this error when i say /a
Lua:
[03/01/2012 16:13:39] [Error - TalkAction Interface] 
[03/01/2012 16:13:39] data/talkactions/scripts/teleporttiles.lua:onSay
[03/01/2012 16:13:39] Description: 
[03/01/2012 16:13:40] data/talkactions/scripts/teleporttiles.lua:21: attempt to call global 'getPosByDir' (a nil value)
[03/01/2012 16:13:40] stack traceback:
[03/01/2012 16:13:40] 	data/talkactions/scripts/teleporttiles.lua:21: in function <data/talkactions/scripts/teleporttiles.lua:1>
 
For some reason the script won't let me move the tokens.. o_O?

TFS 0.4 rev 3777

Fixed: Had the tokens set to uid not the tiles beneath them.. =)?
 
Last edited:
Whattaaafaack...
Something is wrong..

I can't move the token or anything..
i get tped in to the area then the chicken appears then it's my turn but i can't move the token...

help!
 
Code:
[21:49:38.129] [Error - Action Interface]
[21:49:38.130] domodlib('Tic_config')
[21:49:38.130] domodlib('Tic_lib')
[21:49:38.133] local fight = createConditionObject(CONDITION_INFIGHT,-1)
[21:49:38.133] function onUse(cid, item, fromPosition, itemEx, toPosition)
[21:49:38.134] local pl1_game = getTopCreature(config_tic[1].pos_start).uid
[21:49:38.134] local pl2_game = getTopCreature(config_tic[2].pos_start).uid
[21:49:38.134] local players1_enter = getTopCreature(config_tic[1].pos_game).uid

[21:49:38.135] local players2_enter = getTopCreature(config_tic[2].pos_game).uid

[21:49:38.135] local players = {}

[21:49:38.135] if players1_enter < 1 and players2_enter < 1 then
[21:49:38.136] if getStorage(running_token) > 0 then
[21:49:38.136] doSetStorage(winner_token,-1)
[21:49:38.137] doSetStorage(round_token,-1)
[21:49:38.137] doSetStorage(running_token,-1)
[21:49:38.137] doSetStorage(won_token,-1)
[21:49:38.138] end
[21:49:38.139] end

[21:49:38.139] if getStorage(running_token) > 0 then
[21:49:38.140] return doPlayerSendCancel(cid,"The players inside didn't finish t
here game yet.")
[21:49:38.140] end

[21:49:38.141] if pl1_game > 0 and pl2_game > 0 then
[21:49:38.142] table.insert(players, pl1_game)
[21:49:38.142] table.insert(players, pl2_game)
[21:49:38.142] else
[21:49:38.143] return doPlayerSendCancel(cid,"The game needs 2 players to start.
")
[21:49:38.143] end
[21:49:38.143] gatherTokens(tic_pos.frompos,tic_pos.topos, config_tic[1].token_p
os , config_tic[2].token_pos)
[21:49:38.144] for i = 1,#players do
[21:49:38.144] doTeleportThing(players,config_tic.pos_game,false)
[21:49:38.144] doSendMagicEffect(config_tic.pos_game,10)
[21:49:38.144] doCreatureSetNoMove(players,1)
[21:49:38.145] doAddCondition(players,fight)
[21:49:38.145] setPlayerStorageValue(players,config_tic.storage,1)
[21:49:38.145] setPlayerStorageValue(players,turn_id_tocken,i)
[21:49:38.145] end
[21:49:38.146] local uid = doCreateMonster("chicken",{x = tic_pos.frompos.x+1, y
= tic_pos.frompos.y+1, z = tic_pos.frompos.z,stackpos = 0 })

[21:49:38.146] doSetStorage(turn_tocken,math.random(1,2))
[21:49:38.146] doSetStorage(running_token,1)
[21:49:38.147] doChangeSpeed(uid, - getCreatureSpeed(uid) )
[21:49:38.147] doSetStorage(canMove_token,0)
[21:49:38.147] addEvent(doCreatureSay,100,uid,"Round <1> : start",19)
[21:49:38.148] addEvent(doRemoveCreature,2400,uid)
[21:49:38.148] addEvent(doSetStorage,2410,canMove_token,1)
[21:49:38.148] addEvent(turn,2411)


[21:49:38.148] return true
[21:49:38.149] end


[21:49:38.149] :onUse
[21:49:38.150] Description:
[21:49:38.150] attempt to index a nil value
[21:49:38.150] stack traceback:
[21:49:38.151]  [C]: in function 'doTeleportThing'
[21:49:38.151]  [string "LuaInterface::loadBuffer"]:32: in function <[string "Lu
aInterface::loadBuffer"]:4>

[21:49:38.577] [Error - Action Interface]
[21:49:38.578] domodlib('Tic_config')
[21:49:38.578] domodlib('Tic_lib')
[21:49:38.579] local fight = createConditionObject(CONDITION_INFIGHT,-1)
[21:49:38.579] function onUse(cid, item, fromPosition, itemEx, toPosition)
[21:49:38.580] local pl1_game = getTopCreature(config_tic[1].pos_start).uid
[21:49:38.580] local pl2_game = getTopCreature(config_tic[2].pos_start).uid
[21:49:38.580] local players1_enter = getTopCreature(config_tic[1].pos_game).uid

[21:49:38.581] local players2_enter = getTopCreature(config_tic[2].pos_game).uid

[21:49:38.581] local players = {}

[21:49:38.582] if players1_enter < 1 and players2_enter < 1 then
[21:49:38.582] if getStorage(running_token) > 0 then
[21:49:38.582] doSetStorage(winner_token,-1)
[21:49:38.583] doSetStorage(round_token,-1)
[21:49:38.583] doSetStorage(running_token,-1)
[21:49:38.584] doSetStorage(won_token,-1)
[21:49:38.584] end
[21:49:38.584] end

[21:49:38.585] if getStorage(running_token) > 0 then
[21:49:38.585] return doPlayerSendCancel(cid,"The players inside didn't finish t
here game yet.")
[21:49:38.586] end

[21:49:38.586] if pl1_game > 0 and pl2_game > 0 then
[21:49:38.587] table.insert(players, pl1_game)
[21:49:38.587] table.insert(players, pl2_game)
[21:49:38.587] else
[21:49:38.588] return doPlayerSendCancel(cid,"The game needs 2 players to start.
")
[21:49:38.588] end
[21:49:38.589] gatherTokens(tic_pos.frompos,tic_pos.topos, config_tic[1].token_p
os , config_tic[2].token_pos)
[21:49:38.589] for i = 1,#players do
[21:49:38.590] doTeleportThing(players,config_tic.pos_game,false)
[21:49:38.590] doSendMagicEffect(config_tic.pos_game,10)
[21:49:38.591] doCreatureSetNoMove(players,1)
[21:49:38.591] doAddCondition(players,fight)
[21:49:38.592] setPlayerStorageValue(players,config_tic.storage,1)
[21:49:38.592] setPlayerStorageValue(players,turn_id_tocken,i)
[21:49:38.592] end
[21:49:38.593] local uid = doCreateMonster("chicken",{x = tic_pos.frompos.x+1, y
= tic_pos.frompos.y+1, z = tic_pos.frompos.z,stackpos = 0 })

[21:49:38.593] doSetStorage(turn_tocken,math.random(1,2))
[21:49:38.594] doSetStorage(running_token,1)
[21:49:38.594] doChangeSpeed(uid, - getCreatureSpeed(uid) )
[21:49:38.594] doSetStorage(canMove_token,0)
[21:49:38.595] addEvent(doCreatureSay,100,uid,"Round <1> : start",19)
[21:49:38.595] addEvent(doRemoveCreature,2400,uid)
[21:49:38.595] addEvent(doSetStorage,2410,canMove_token,1)
[21:49:38.596] addEvent(turn,2411)


[21:49:38.597] return true
[21:49:38.597] end


[21:49:38.598] :onUse
[21:49:38.598] Description:
[21:49:38.598] attempt to index a nil value
[21:49:38.599] stack traceback:
[21:49:38.599]  [C]: in function 'doTeleportThing'
[21:49:38.600]  [string "LuaInterface::loadBuffer"]:32: in function <[string "Lu
aInterface::loadBuffer"]:4>

[21:49:39.028] [Error - Action Interface]
[21:49:39.028] domodlib('Tic_config')
[21:49:39.029] domodlib('Tic_lib')
[21:49:39.029] local fight = createConditionObject(CONDITION_INFIGHT,-1)
[21:49:39.029] function onUse(cid, item, fromPosition, itemEx, toPosition)
[21:49:39.030] local pl1_game = getTopCreature(config_tic[1].pos_start).uid
[21:49:39.030] local pl2_game = getTopCreature(config_tic[2].pos_start).uid
[21:49:39.030] local players1_enter = getTopCreature(config_tic[1].pos_game).uid

[21:49:39.031] local players2_enter = getTopCreature(config_tic[2].pos_game).uid

[21:49:39.032] local players = {}

[21:49:39.033] if players1_enter < 1 and players2_enter < 1 then
[21:49:39.033] if getStorage(running_token) > 0 then
[21:49:39.033] doSetStorage(winner_token,-1)
[21:49:39.034] doSetStorage(round_token,-1)
[21:49:39.034] doSetStorage(running_token,-1)
[21:49:39.034] doSetStorage(won_token,-1)
[21:49:39.034] end
[21:49:39.035] end

[21:49:39.035] if getStorage(running_token) > 0 then
[21:49:39.035] return doPlayerSendCancel(cid,"The players inside didn't finish t
here game yet.")
[21:49:39.036] end

[21:49:39.036] if pl1_game > 0 and pl2_game > 0 then
[21:49:39.037] table.insert(players, pl1_game)
[21:49:39.037] table.insert(players, pl2_game)
[21:49:39.037] else
[21:49:39.038] return doPlayerSendCancel(cid,"The game needs 2 players to start.
")
[21:49:39.039] end
[21:49:39.039] gatherTokens(tic_pos.frompos,tic_pos.topos, config_tic[1].token_p
os , config_tic[2].token_pos)
[21:49:39.039] for i = 1,#players do
[21:49:39.040] doTeleportThing(players,config_tic.pos_game,false)
[21:49:39.040] doSendMagicEffect(config_tic.pos_game,10)
[21:49:39.040] doCreatureSetNoMove(players,1)
[21:49:39.040] doAddCondition(players,fight)
[21:49:39.041] setPlayerStorageValue(players,config_tic.storage,1)
[21:49:39.041] setPlayerStorageValue(players,turn_id_tocken,i)
[21:49:39.042] end
[21:49:39.042] local uid = doCreateMonster("chicken",{x = tic_pos.frompos.x+1, y
= tic_pos.frompos.y+1, z = tic_pos.frompos.z,stackpos = 0 })

[21:49:39.043] doSetStorage(turn_tocken,math.random(1,2))
[21:49:39.043] doSetStorage(running_token,1)
[21:49:39.043] doChangeSpeed(uid, - getCreatureSpeed(uid) )
[21:49:39.044] doSetStorage(canMove_token,0)
[21:49:39.044] addEvent(doCreatureSay,100,uid,"Round <1> : start",19)
[21:49:39.044] addEvent(doRemoveCreature,2400,uid)
[21:49:39.045] addEvent(doSetStorage,2410,canMove_token,1)
[21:49:39.045] addEvent(turn,2411)


[21:49:39.045] return true
[21:49:39.046] end


[21:49:39.046] :onUse
[21:49:39.046] Description:
[21:49:39.046] attempt to index a nil value
[21:49:39.047] stack traceback:
[21:49:39.047]  [C]: in function 'doTeleportThing'
[21:49:39.047]  [string "LuaInterface::loadBuffer"]:32: in function <[string "Lu
aInterface::loadBuffer"]:4>

0.4 ;/
 
Ok now I have every script separated and everything looks fine but, when two players stands and pulls the lever, they gets teleported to right place but the token is unmoveable. No errors in console or so. Using 0.4 r3884
Any clue ?
 
So i recently tried to use this. Problem is. When i go to pull the lever i get this error and nothing happens.

Here is the Error:
[21/11/2013 04:27:59] [Error - Action Interface]
[21/11/2013 04:27:59] buffer:eek:nUse
[21/11/2013 04:27:59] Description:
[21/11/2013 04:27:59] attempt to index a nil value
[21/11/2013 04:27:59] stack traceback:
[21/11/2013 04:27:59] [C]: in function 'doTeleportThing'
[21/11/2013 04:27:59] [string "loadBuffer"]:32: in function <[string "loadBuffer"]:4>
 
Code:
[21:49:38.129] [Error - Action Interface]
[21:49:38.130] domodlib('Tic_config')
[21:49:38.130] domodlib('Tic_lib')
[21:49:38.133] local fight = createConditionObject(CONDITION_INFIGHT,-1)
[21:49:38.133] function onUse(cid, item, fromPosition, itemEx, toPosition)
[21:49:38.134] local pl1_game = getTopCreature(config_tic[1].pos_start).uid
[21:49:38.134] local pl2_game = getTopCreature(config_tic[2].pos_start).uid
[21:49:38.134] local players1_enter = getTopCreature(config_tic[1].pos_game).uid

[21:49:38.135] local players2_enter = getTopCreature(config_tic[2].pos_game).uid

[21:49:38.135] local players = {}

[21:49:38.135] if players1_enter < 1 and players2_enter < 1 then
[21:49:38.136] if getStorage(running_token) > 0 then
[21:49:38.136] doSetStorage(winner_token,-1)
[21:49:38.137] doSetStorage(round_token,-1)
[21:49:38.137] doSetStorage(running_token,-1)
[21:49:38.137] doSetStorage(won_token,-1)
[21:49:38.138] end
[21:49:38.139] end

[21:49:38.139] if getStorage(running_token) > 0 then
[21:49:38.140] return doPlayerSendCancel(cid,"The players inside didn't finish t
here game yet.")
[21:49:38.140] end

[21:49:38.141] if pl1_game > 0 and pl2_game > 0 then
[21:49:38.142] table.insert(players, pl1_game)
[21:49:38.142] table.insert(players, pl2_game)
[21:49:38.142] else
[21:49:38.143] return doPlayerSendCancel(cid,"The game needs 2 players to start.
")
[21:49:38.143] end
[21:49:38.143] gatherTokens(tic_pos.frompos,tic_pos.topos, config_tic[1].token_p
os , config_tic[2].token_pos)
[21:49:38.144] for i = 1,#players do
[21:49:38.144] doTeleportThing(players,config_tic.pos_game,false)
[21:49:38.144] doSendMagicEffect(config_tic.pos_game,10)
[21:49:38.144] doCreatureSetNoMove(players,1)
[21:49:38.145] doAddCondition(players,fight)
[21:49:38.145] setPlayerStorageValue(players,config_tic.storage,1)
[21:49:38.145] setPlayerStorageValue(players,turn_id_tocken,i)
[21:49:38.145] end
[21:49:38.146] local uid = doCreateMonster("chicken",{x = tic_pos.frompos.x+1, y
= tic_pos.frompos.y+1, z = tic_pos.frompos.z,stackpos = 0 })

[21:49:38.146] doSetStorage(turn_tocken,math.random(1,2))
[21:49:38.146] doSetStorage(running_token,1)
[21:49:38.147] doChangeSpeed(uid, - getCreatureSpeed(uid) )
[21:49:38.147] doSetStorage(canMove_token,0)
[21:49:38.147] addEvent(doCreatureSay,100,uid,"Round <1> : start",19)
[21:49:38.148] addEvent(doRemoveCreature,2400,uid)
[21:49:38.148] addEvent(doSetStorage,2410,canMove_token,1)
[21:49:38.148] addEvent(turn,2411)


[21:49:38.148] return true
[21:49:38.149] end


[21:49:38.149] :onUse
[21:49:38.150] Description:
[21:49:38.150] attempt to index a nil value
[21:49:38.150] stack traceback:
[21:49:38.151]  [C]: in function 'doTeleportThing'
[21:49:38.151]  [string "LuaInterface::loadBuffer"]:32: in function <[string "Lu
aInterface::loadBuffer"]:4>

[21:49:38.577] [Error - Action Interface]
[21:49:38.578] domodlib('Tic_config')
[21:49:38.578] domodlib('Tic_lib')
[21:49:38.579] local fight = createConditionObject(CONDITION_INFIGHT,-1)
[21:49:38.579] function onUse(cid, item, fromPosition, itemEx, toPosition)
[21:49:38.580] local pl1_game = getTopCreature(config_tic[1].pos_start).uid
[21:49:38.580] local pl2_game = getTopCreature(config_tic[2].pos_start).uid
[21:49:38.580] local players1_enter = getTopCreature(config_tic[1].pos_game).uid

[21:49:38.581] local players2_enter = getTopCreature(config_tic[2].pos_game).uid

[21:49:38.581] local players = {}

[21:49:38.582] if players1_enter < 1 and players2_enter < 1 then
[21:49:38.582] if getStorage(running_token) > 0 then
[21:49:38.582] doSetStorage(winner_token,-1)
[21:49:38.583] doSetStorage(round_token,-1)
[21:49:38.583] doSetStorage(running_token,-1)
[21:49:38.584] doSetStorage(won_token,-1)
[21:49:38.584] end
[21:49:38.584] end

[21:49:38.585] if getStorage(running_token) > 0 then
[21:49:38.585] return doPlayerSendCancel(cid,"The players inside didn't finish t
here game yet.")
[21:49:38.586] end

[21:49:38.586] if pl1_game > 0 and pl2_game > 0 then
[21:49:38.587] table.insert(players, pl1_game)
[21:49:38.587] table.insert(players, pl2_game)
[21:49:38.587] else
[21:49:38.588] return doPlayerSendCancel(cid,"The game needs 2 players to start.
")
[21:49:38.588] end
[21:49:38.589] gatherTokens(tic_pos.frompos,tic_pos.topos, config_tic[1].token_p
os , config_tic[2].token_pos)
[21:49:38.589] for i = 1,#players do
[21:49:38.590] doTeleportThing(players,config_tic.pos_game,false)
[21:49:38.590] doSendMagicEffect(config_tic.pos_game,10)
[21:49:38.591] doCreatureSetNoMove(players,1)
[21:49:38.591] doAddCondition(players,fight)
[21:49:38.592] setPlayerStorageValue(players,config_tic.storage,1)
[21:49:38.592] setPlayerStorageValue(players,turn_id_tocken,i)
[21:49:38.592] end
[21:49:38.593] local uid = doCreateMonster("chicken",{x = tic_pos.frompos.x+1, y
= tic_pos.frompos.y+1, z = tic_pos.frompos.z,stackpos = 0 })

[21:49:38.593] doSetStorage(turn_tocken,math.random(1,2))
[21:49:38.594] doSetStorage(running_token,1)
[21:49:38.594] doChangeSpeed(uid, - getCreatureSpeed(uid) )
[21:49:38.594] doSetStorage(canMove_token,0)
[21:49:38.595] addEvent(doCreatureSay,100,uid,"Round <1> : start",19)
[21:49:38.595] addEvent(doRemoveCreature,2400,uid)
[21:49:38.595] addEvent(doSetStorage,2410,canMove_token,1)
[21:49:38.596] addEvent(turn,2411)


[21:49:38.597] return true
[21:49:38.597] end


[21:49:38.598] :onUse
[21:49:38.598] Description:
[21:49:38.598] attempt to index a nil value
[21:49:38.599] stack traceback:
[21:49:38.599]  [C]: in function 'doTeleportThing'
[21:49:38.600]  [string "LuaInterface::loadBuffer"]:32: in function <[string "Lu
aInterface::loadBuffer"]:4>

[21:49:39.028] [Error - Action Interface]
[21:49:39.028] domodlib('Tic_config')
[21:49:39.029] domodlib('Tic_lib')
[21:49:39.029] local fight = createConditionObject(CONDITION_INFIGHT,-1)
[21:49:39.029] function onUse(cid, item, fromPosition, itemEx, toPosition)
[21:49:39.030] local pl1_game = getTopCreature(config_tic[1].pos_start).uid
[21:49:39.030] local pl2_game = getTopCreature(config_tic[2].pos_start).uid
[21:49:39.030] local players1_enter = getTopCreature(config_tic[1].pos_game).uid

[21:49:39.031] local players2_enter = getTopCreature(config_tic[2].pos_game).uid

[21:49:39.032] local players = {}

[21:49:39.033] if players1_enter < 1 and players2_enter < 1 then
[21:49:39.033] if getStorage(running_token) > 0 then
[21:49:39.033] doSetStorage(winner_token,-1)
[21:49:39.034] doSetStorage(round_token,-1)
[21:49:39.034] doSetStorage(running_token,-1)
[21:49:39.034] doSetStorage(won_token,-1)
[21:49:39.034] end
[21:49:39.035] end

[21:49:39.035] if getStorage(running_token) > 0 then
[21:49:39.035] return doPlayerSendCancel(cid,"The players inside didn't finish t
here game yet.")
[21:49:39.036] end

[21:49:39.036] if pl1_game > 0 and pl2_game > 0 then
[21:49:39.037] table.insert(players, pl1_game)
[21:49:39.037] table.insert(players, pl2_game)
[21:49:39.037] else
[21:49:39.038] return doPlayerSendCancel(cid,"The game needs 2 players to start.
")
[21:49:39.039] end
[21:49:39.039] gatherTokens(tic_pos.frompos,tic_pos.topos, config_tic[1].token_p
os , config_tic[2].token_pos)
[21:49:39.039] for i = 1,#players do
[21:49:39.040] doTeleportThing(players,config_tic.pos_game,false)
[21:49:39.040] doSendMagicEffect(config_tic.pos_game,10)
[21:49:39.040] doCreatureSetNoMove(players,1)
[21:49:39.040] doAddCondition(players,fight)
[21:49:39.041] setPlayerStorageValue(players,config_tic.storage,1)
[21:49:39.041] setPlayerStorageValue(players,turn_id_tocken,i)
[21:49:39.042] end
[21:49:39.042] local uid = doCreateMonster("chicken",{x = tic_pos.frompos.x+1, y
= tic_pos.frompos.y+1, z = tic_pos.frompos.z,stackpos = 0 })

[21:49:39.043] doSetStorage(turn_tocken,math.random(1,2))
[21:49:39.043] doSetStorage(running_token,1)
[21:49:39.043] doChangeSpeed(uid, - getCreatureSpeed(uid) )
[21:49:39.044] doSetStorage(canMove_token,0)
[21:49:39.044] addEvent(doCreatureSay,100,uid,"Round <1> : start",19)
[21:49:39.044] addEvent(doRemoveCreature,2400,uid)
[21:49:39.045] addEvent(doSetStorage,2410,canMove_token,1)
[21:49:39.045] addEvent(turn,2411)


[21:49:39.045] return true
[21:49:39.046] end


[21:49:39.046] :onUse
[21:49:39.046] Description:
[21:49:39.046] attempt to index a nil value
[21:49:39.047] stack traceback:
[21:49:39.047]  [C]: in function 'doTeleportThing'
[21:49:39.047]  [string "LuaInterface::loadBuffer"]:32: in function <[string "Lu
aInterface::loadBuffer"]:4>

0.4 ;/

hi i have the same problem you have did u remember how to fix ?
 
I have the same problem can any1 help ?? @Limos
Code:
[21:49:38.129] [Error - Action Interface]
[21:49:38.130] domodlib('Tic_config')
[21:49:38.130] domodlib('Tic_lib')
[21:49:38.133] local fight = createConditionObject(CONDITION_INFIGHT,-1)
[21:49:38.133] function onUse(cid, item, fromPosition, itemEx, toPosition)
[21:49:38.134] local pl1_game = getTopCreature(config_tic[1].pos_start).uid
[21:49:38.134] local pl2_game = getTopCreature(config_tic[2].pos_start).uid
[21:49:38.134] local players1_enter = getTopCreature(config_tic[1].pos_game).uid

[21:49:38.135] local players2_enter = getTopCreature(config_tic[2].pos_game).uid

[21:49:38.135] local players = {}

[21:49:38.135] if players1_enter < 1 and players2_enter < 1 then
[21:49:38.136] if getStorage(running_token) > 0 then
[21:49:38.136] doSetStorage(winner_token,-1)
[21:49:38.137] doSetStorage(round_token,-1)
[21:49:38.137] doSetStorage(running_token,-1)
[21:49:38.137] doSetStorage(won_token,-1)
[21:49:38.138] end
[21:49:38.139] end

[21:49:38.139] if getStorage(running_token) > 0 then
[21:49:38.140] return doPlayerSendCancel(cid,"The players inside didn't finish t
here game yet.")
[21:49:38.140] end

[21:49:38.141] if pl1_game > 0 and pl2_game > 0 then
[21:49:38.142] table.insert(players, pl1_game)
[21:49:38.142] table.insert(players, pl2_game)
[21:49:38.142] else
[21:49:38.143] return doPlayerSendCancel(cid,"The game needs 2 players to start.
")
[21:49:38.143] end
[21:49:38.143] gatherTokens(tic_pos.frompos,tic_pos.topos, config_tic[1].token_p
os , config_tic[2].token_pos)
[21:49:38.144] for i = 1,#players do
[21:49:38.144] doTeleportThing(players,config_tic.pos_game,false)
[21:49:38.144] doSendMagicEffect(config_tic.pos_game,10)
[21:49:38.144] doCreatureSetNoMove(players,1)
[21:49:38.145] doAddCondition(players,fight)
[21:49:38.145] setPlayerStorageValue(players,config_tic.storage,1)
[21:49:38.145] setPlayerStorageValue(players,turn_id_tocken,i)
[21:49:38.145] end
[21:49:38.146] local uid = doCreateMonster("chicken",{x = tic_pos.frompos.x+1, y
= tic_pos.frompos.y+1, z = tic_pos.frompos.z,stackpos = 0 })

[21:49:38.146] doSetStorage(turn_tocken,math.random(1,2))
[21:49:38.146] doSetStorage(running_token,1)
[21:49:38.147] doChangeSpeed(uid, - getCreatureSpeed(uid) )
[21:49:38.147] doSetStorage(canMove_token,0)
[21:49:38.147] addEvent(doCreatureSay,100,uid,"Round <1> : start",19)
[21:49:38.148] addEvent(doRemoveCreature,2400,uid)
[21:49:38.148] addEvent(doSetStorage,2410,canMove_token,1)
[21:49:38.148] addEvent(turn,2411)


[21:49:38.148] return true
[21:49:38.149] end


[21:49:38.149] :onUse
[21:49:38.150] Description:
[21:49:38.150] attempt to index a nil value
[21:49:38.150] stack traceback:
[21:49:38.151]  [C]: in function 'doTeleportThing'
[21:49:38.151]  [string "LuaInterface::loadBuffer"]:32: in function <[string "Lu
aInterface::loadBuffer"]:4>

[21:49:38.577] [Error - Action Interface]
[21:49:38.578] domodlib('Tic_config')
[21:49:38.578] domodlib('Tic_lib')
[21:49:38.579] local fight = createConditionObject(CONDITION_INFIGHT,-1)
[21:49:38.579] function onUse(cid, item, fromPosition, itemEx, toPosition)
[21:49:38.580] local pl1_game = getTopCreature(config_tic[1].pos_start).uid
[21:49:38.580] local pl2_game = getTopCreature(config_tic[2].pos_start).uid
[21:49:38.580] local players1_enter = getTopCreature(config_tic[1].pos_game).uid

[21:49:38.581] local players2_enter = getTopCreature(config_tic[2].pos_game).uid

[21:49:38.581] local players = {}

[21:49:38.582] if players1_enter < 1 and players2_enter < 1 then
[21:49:38.582] if getStorage(running_token) > 0 then
[21:49:38.582] doSetStorage(winner_token,-1)
[21:49:38.583] doSetStorage(round_token,-1)
[21:49:38.583] doSetStorage(running_token,-1)
[21:49:38.584] doSetStorage(won_token,-1)
[21:49:38.584] end
[21:49:38.584] end

[21:49:38.585] if getStorage(running_token) > 0 then
[21:49:38.585] return doPlayerSendCancel(cid,"The players inside didn't finish t
here game yet.")
[21:49:38.586] end

[21:49:38.586] if pl1_game > 0 and pl2_game > 0 then
[21:49:38.587] table.insert(players, pl1_game)
[21:49:38.587] table.insert(players, pl2_game)
[21:49:38.587] else
[21:49:38.588] return doPlayerSendCancel(cid,"The game needs 2 players to start.
")
[21:49:38.588] end
[21:49:38.589] gatherTokens(tic_pos.frompos,tic_pos.topos, config_tic[1].token_p
os , config_tic[2].token_pos)
[21:49:38.589] for i = 1,#players do
[21:49:38.590] doTeleportThing(players,config_tic.pos_game,false)
[21:49:38.590] doSendMagicEffect(config_tic.pos_game,10)
[21:49:38.591] doCreatureSetNoMove(players,1)
[21:49:38.591] doAddCondition(players,fight)
[21:49:38.592] setPlayerStorageValue(players,config_tic.storage,1)
[21:49:38.592] setPlayerStorageValue(players,turn_id_tocken,i)
[21:49:38.592] end
[21:49:38.593] local uid = doCreateMonster("chicken",{x = tic_pos.frompos.x+1, y
= tic_pos.frompos.y+1, z = tic_pos.frompos.z,stackpos = 0 })

[21:49:38.593] doSetStorage(turn_tocken,math.random(1,2))
[21:49:38.594] doSetStorage(running_token,1)
[21:49:38.594] doChangeSpeed(uid, - getCreatureSpeed(uid) )
[21:49:38.594] doSetStorage(canMove_token,0)
[21:49:38.595] addEvent(doCreatureSay,100,uid,"Round <1> : start",19)
[21:49:38.595] addEvent(doRemoveCreature,2400,uid)
[21:49:38.595] addEvent(doSetStorage,2410,canMove_token,1)
[21:49:38.596] addEvent(turn,2411)


[21:49:38.597] return true
[21:49:38.597] end


[21:49:38.598] :onUse
[21:49:38.598] Description:
[21:49:38.598] attempt to index a nil value
[21:49:38.599] stack traceback:
[21:49:38.599]  [C]: in function 'doTeleportThing'
[21:49:38.600]  [string "LuaInterface::loadBuffer"]:32: in function <[string "Lu
aInterface::loadBuffer"]:4>

[21:49:39.028] [Error - Action Interface]
[21:49:39.028] domodlib('Tic_config')
[21:49:39.029] domodlib('Tic_lib')
[21:49:39.029] local fight = createConditionObject(CONDITION_INFIGHT,-1)
[21:49:39.029] function onUse(cid, item, fromPosition, itemEx, toPosition)
[21:49:39.030] local pl1_game = getTopCreature(config_tic[1].pos_start).uid
[21:49:39.030] local pl2_game = getTopCreature(config_tic[2].pos_start).uid
[21:49:39.030] local players1_enter = getTopCreature(config_tic[1].pos_game).uid

[21:49:39.031] local players2_enter = getTopCreature(config_tic[2].pos_game).uid

[21:49:39.032] local players = {}

[21:49:39.033] if players1_enter < 1 and players2_enter < 1 then
[21:49:39.033] if getStorage(running_token) > 0 then
[21:49:39.033] doSetStorage(winner_token,-1)
[21:49:39.034] doSetStorage(round_token,-1)
[21:49:39.034] doSetStorage(running_token,-1)
[21:49:39.034] doSetStorage(won_token,-1)
[21:49:39.034] end
[21:49:39.035] end

[21:49:39.035] if getStorage(running_token) > 0 then
[21:49:39.035] return doPlayerSendCancel(cid,"The players inside didn't finish t
here game yet.")
[21:49:39.036] end

[21:49:39.036] if pl1_game > 0 and pl2_game > 0 then
[21:49:39.037] table.insert(players, pl1_game)
[21:49:39.037] table.insert(players, pl2_game)
[21:49:39.037] else
[21:49:39.038] return doPlayerSendCancel(cid,"The game needs 2 players to start.
")
[21:49:39.039] end
[21:49:39.039] gatherTokens(tic_pos.frompos,tic_pos.topos, config_tic[1].token_p
os , config_tic[2].token_pos)
[21:49:39.039] for i = 1,#players do
[21:49:39.040] doTeleportThing(players,config_tic.pos_game,false)
[21:49:39.040] doSendMagicEffect(config_tic.pos_game,10)
[21:49:39.040] doCreatureSetNoMove(players,1)
[21:49:39.040] doAddCondition(players,fight)
[21:49:39.041] setPlayerStorageValue(players,config_tic.storage,1)
[21:49:39.041] setPlayerStorageValue(players,turn_id_tocken,i)
[21:49:39.042] end
[21:49:39.042] local uid = doCreateMonster("chicken",{x = tic_pos.frompos.x+1, y
= tic_pos.frompos.y+1, z = tic_pos.frompos.z,stackpos = 0 })

[21:49:39.043] doSetStorage(turn_tocken,math.random(1,2))
[21:49:39.043] doSetStorage(running_token,1)
[21:49:39.043] doChangeSpeed(uid, - getCreatureSpeed(uid) )
[21:49:39.044] doSetStorage(canMove_token,0)
[21:49:39.044] addEvent(doCreatureSay,100,uid,"Round <1> : start",19)
[21:49:39.044] addEvent(doRemoveCreature,2400,uid)
[21:49:39.045] addEvent(doSetStorage,2410,canMove_token,1)
[21:49:39.045] addEvent(turn,2411)


[21:49:39.045] return true
[21:49:39.046] end


[21:49:39.046] :onUse
[21:49:39.046] Description:
[21:49:39.046] attempt to index a nil value
[21:49:39.047] stack traceback:
[21:49:39.047]  [C]: in function 'doTeleportThing'
[21:49:39.047]  [string "LuaInterface::loadBuffer"]:32: in function <[string "Lu
aInterface::loadBuffer"]:4>

0.4 ;/
 
Change this doTeleportThing(array,getTownTemplePosition(getPlayerTown(array))) on line 243 to
Code:
doTeleportThing(array[i],getTownTemplePosition(getPlayerTown(array[i])))

On line 385 there is this.
Code:
for i = 1,#players do
Under that line, change players to
Code:
players[i]
So
Code:
doTeleportThing(players[i],config_tic.pos_game,false)
Do the same thing for the 4 lines with players under that.
 
Line 119 and 145, change local caller = Phases_Tic_Tac to
Code:
local caller = Phases_Tic_Tac[i]
Line 269, change local call = test to
Code:
local call = test[i]
Line 276, change doAddCopiedContainer(its, news) to
Code:
doAddCopiedContainer(its[i], news)

Alot of [ i ] got removed because of the missing script tags, could be I still missed something, but it's hard to see where the problem is exactly without a specific line.
 
Last edited:
Post the script and the error (incase it's changed).
Alot of [ i ] got removed because of the missing script tags, could be I still missed something, but it's hard to see where the problem is exactly without a specific line.

You can also just separate the script and add them in the folders in data instead of in a mod, like this it will give a more clear error on the line where the problem is.
 
i will make this tomorrow and paste error to u thx btw :D
 
reup map, i like your events.
lost everything on my hd.
 
Back
Top