• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

[Advanced] Training System with anti-bot protection !

Status
Not open for further replies.
nvm fixed my old problem, but...

[18/11/2009 23:20:22] Lua Script Error: [Action Interface]
[18/11/2009 23:20:22] in a timer event called from:
[18/11/2009 23:20:22] data/actions/scripts/training.lua:eek:nUse

[18/11/2009 23:20:22] luaGetPlayerStorageValue(). Player not found

[18/11/2009 23:20:22] Lua Script Error: [Action Interface]
[18/11/2009 23:20:22] in a timer event called from:
[18/11/2009 23:20:22] data/actions/scripts/training.lua:eek:nUse

[18/11/2009 23:20:22] luaGetPlayerStorageValue(). Player not found

[18/11/2009 23:20:22] Lua Script Error: [Action Interface]
[18/11/2009 23:20:22] in a timer event called from:
[18/11/2009 23:20:22] data/actions/scripts/training.lua:eek:nUse

[18/11/2009 23:20:22] data/lib/function.lua:316: attempt to compare number with boolean
[18/11/2009 23:20:22] stack traceback:
[18/11/2009 23:20:22] data/lib/function.lua:316: in function 'isPlayerTraining'
[18/11/2009 23:20:22] data/lib/function.lua:328: in function 'doPlayerEndTraining'
[18/11/2009 23:20:22] data/lib/function.lua:352: in function <data/lib/function.lua:350>



TFS 0.3.5 (Crying Damson)
 
Last edited:
I doubt Slawkens will fix this anytime soon,
surely he is busy helping devolop the new forgotten server.
 
ah, but... u can fix it?? it looks kinda easy to fix hehe :p
 
Nvm, works great. Just some minor changes got to be done :p
 
Last edited:
In TFS 0.3.6 pl1 It's working but it have funny bug.
If you for example go into train room, leave it, go into train room, leave it and go into train room again (yeah, 3 times) it will send 3 messages with codes to write:
Code:
 21:32 (TrainMod): If you want still train you need to write !train 4562. You have 20 seconds to write it.
21:32 (TrainMod): If you want still train you need to write !train 5924. You have 20 seconds to write it.
21:32 (TrainMod): If you want still train you need to write !train 1099. You have 20 seconds to write it.

So it's not cleaning the storagevalue when you're leaving or w/e
 
When I click on the door wishing to enter the room Train jumps me this error in the console
Code:
[11/02/2010 09:55:46] [Error - Action Interface] 
[11/02/2010 09:55:46] data/actions/scripts/training.lua:onUse
[11/02/2010 09:55:46] Description: 
[11/02/2010 09:55:46] data/actions/scripts/training.lua:19: attempt to call global 'getNextPosFromDir' (a nil value)

Any1 can help me ?:)
 
sm1 fuing close this thread, script is outdated and wont work for newest engines.
 
global.lua is also config.lua?? :S it doesnt work on my srv :/
 
Closing this thread now. Maybe I'll reopen it in near future when new version will be done, since this is outdated & with few bugs.
 
Status
Not open for further replies.
Back
Top