Alright, my original goal has been accomplished by changing my alias up a bit. I really like it now that I got it working, and it works great.
I was trying to use the file accessing with Lua so that I can read and write to a file for my different variables (to avoid read/write to MushClient variables).
Error:
[string "Script file"]:120: attempt to index global `io' (a nil value)
stack traceback:
[string "Script file"]:120: in function `ReadFile'
[string "Command line"]:1: in main chunk
Code: (I copyed it from another place, forgot where now)
function ReadFile()
do
local f = assert (io.open ("test.txt", "r"))
local t = f:read ("*all") -- read file in
f:close ()
Send (t) -- send to MUD
end
end
I was trying to use the file accessing with Lua so that I can read and write to a file for my different variables (to avoid read/write to MushClient variables).
Error:
[string "Script file"]:120: attempt to index global `io' (a nil value)
stack traceback:
[string "Script file"]:120: in function `ReadFile'
[string "Command line"]:1: in main chunk
Code: (I copyed it from another place, forgot where now)
function ReadFile()
do
local f = assert (io.open ("test.txt", "r"))
local t = f:read ("*all") -- read file in
f:close ()
Send (t) -- send to MUD
end
end