Hi all.
I am trying to write a script with uses a queue system to control the comands that are sent to the mud.
I want to be able to enter a alias, whith a parameter, such that the alias puts the required commands into the queue, another alias then gets the the first command from the queue, and sends it to the mud.
Im guessing to do this, I need to be use Lua tables (as I am programming it in Lua). From reading around the site and other Lua sites, i have worked out how to get the commands to come out in the right order (in theory, cant get it to show though), and such, but I am having problems with two things:
1, putting a string into the table which contains variables
-- Such as "Tell @person go north"
2, getting the script to output the string it contains
-- Sending the above to the mud
Hope this makes sense
Wyd
I am trying to write a script with uses a queue system to control the comands that are sent to the mud.
I want to be able to enter a alias, whith a parameter, such that the alias puts the required commands into the queue, another alias then gets the the first command from the queue, and sends it to the mud.
Im guessing to do this, I need to be use Lua tables (as I am programming it in Lua). From reading around the site and other Lua sites, i have worked out how to get the commands to come out in the right order (in theory, cant get it to show though), and such, but I am having problems with two things:
1, putting a string into the table which contains variables
-- Such as "Tell @person go north"
2, getting the script to output the string it contains
-- Sending the above to the mud
Hope this makes sense
Wyd