• 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 Mock Train system V 1.0

@Strack
My mistake, i set in tag a wrong itemid. 7131
try now.
You set the actionid in train?
500 to north, 502 to south... (0 north 2 south, like dir)
 
I changed this:
Code:
<action itemid="7134" event="script" value="railbymock.lua" />
to:
Code:
<action uniqueid="7134" event="script" value="railbymock.lua" />
'cause with first option dont runs (only with itemid=7134, but have also an error)

and got this error on tfs 0.3.6pl1 :S
Code:
[25/07/2010 00:56:55] [Error - Action Interface] 
[25/07/2010 00:56:55] In a timer event called from: 
[25/07/2010 00:56:55] data/actions/scripts/railbymock.lua:onUse
[25/07/2010 00:56:55] Description: 
[25/07/2010 00:56:55] data/actions/scripts/railbymock.lua:25: attempt to call global 'findRail' (a nil value)
[25/07/2010 00:56:55] stack traceback:
[25/07/2010 00:56:55] 	data/actions/scripts/railbymock.lua:25: in function <data/actions/scripts/railbymock.lua:19>



move function findRail above /\
 
thx vincity, but u should read comments above, i said it runs for me now :p
 
hey mock, how do i make tile 469 and 470 act like a rail? i need them to head west, ive tried a few things but it didnt work, any help?


i added this
Lua:
local RAILS = {7121, 7122, 7123, 7124, 7125, 7126, 7127, 7128, 7129, 7130, 469, 470} --Thxy rails itemid by nord :P
local CART = {[0] = 7132, [2] = 7132, [3] =7131, [1] =7131}
local CONFIG = {
        [7121] = 0,[7122] = 0,[469] = 0,[470] = 0,

but didnt work
 
Last edited:
http://otland.net/f43/relentless-war-ot-8-54-a-94768/#post961631

thanks for the system :)

1g6efk.png

nb3oe1.png

11ik6z9.png
 
this is very nice, keep releasing Kingdom age scripts please ;)
 
@Fark
this is not Kage script ._.'
i have made it before KA
but it still a litte remake from old script (old script contains 300 lines)
 
cant get this work for 0.4?
"You Connot Use This Item"

ERROR

Code:
[4:16:48.875] [Error - LuaInterface::loadFile] data/actions/scripts/railbymock.l
ua:2: '=' expected near 'Train'
[4:16:48.875] [Warning - Event::loadScript] Cannot load script (data/actions/scr
ipts/railbymock.lua)
[4:16:48.875] data/actions/scripts/railbymock.lua:2: '=' expected near 'Train'
[4:16:48.875] [Error - LuaInterface::loadFile] data/actions/scripts/railbymock.l
ua:2: '=' expected near 'Train'
[4:16:48.875] [Warning - Event::loadScript] Cannot load script (data/actions/scr
ipts/railbymock.lua)
[4:16:48.875] data/actions/scripts/railbymock.lua:2: '=' expected near 'Train'
[4:16:48.875] [Error - LuaInterface::loadFile] data/actions/scripts/railbymock.l
ua:2: '=' expected near 'Train'
[4:16:48.875] [Warning - Event::loadScript] Cannot load script (data/actions/scr
ipts/railbymock.lua)
[4:16:48.875] data/actions/scripts/railbymock.lua:2: '=' expected near 'Train'
 
@teddy
its look a syntax error.
did you copy all the script? '-'
 
asd i love the way you spell the directions :p
 
Back
Top