Originally Posted by
box
I'm pretty certain it's not possible with Lua, since Lua can only access inside the /script directory.
That's not true. If you pass pass a non-nil 3rd argument to io.open(), the Toribash folder will be the root.
Ex:
local in = io.open("replay/0headkick.rpl", "w", 1)
And there's the read_replay("replay.rpl") function, that opens a replay file. Read only though.
e: ----------------------------------------------------------------------
Is double posting still forbidden?
Anyways, here's the first version of the betting script. Couldn't test it though since no one wanted to join my server.
Extract the .zip file into your data/script folder so that it looks like this:
script/
|- modules/
|- Timer.lua
|- betting.lua
Last edited by psycore; Mar 29, 2014 at 01:48 PM.