scripter Readme

scripter is a LASERJESUS 1.06 plugin for the game NexusTK. scripter provides an LUA interface that can be used to perform tasks in NexusTK, using LASERJESUS for access to the unencrypted packet stream. Possible uses for scripter include: Bots, macros, and automation of common tasks.

You can send commands to scripter at any time by typing the command into the LASERJESUS console, or by whispering to "scripter" in game. If you whisper an LUA command to "scripter," this plugin will echo the results of that command back to you. Overall, the process will look like a whisper conversation on your screen. In reality, the scripter conversation does not exist except on the client -- so if there happens to be a player on Nexus named "scripter," he will not receive your commands. Here's an example of a typical exchange:

scripter> trace("Hello, world!");
scripter" Hello, world!
scripter> loadScript("scripts/autoheal.lua");
scripter" Loaded script "scripts/autoheal.lua"!
	

In that exchange, you can see two basic commands: trace, which just prints stuff, and loadScript, which (unobviously :D) loads scripts. The latter function will probably be more useful to you if you're not a developer.

Installation

Usage

To run an LUA script in scripter, just type ;loadScript("scripts/myscript.lua"); into the LASERJESUS console. Alternatively, you can execute a script from in-game by whispering the loadScript command to "scripter." It is important that you remember the quotes surrounding "scripts/myscript.lua".

If you're interested in writing LUA scripts, or using more commands from in-game, you should read the manual. The manual is pretty verbose in my opinion, so you might just want to skip to Function Reference if you want to learn how to cast soothe a hundred times (just for the record, that would be for i=1,100 do spell.cast("soothe"); end).

autoheal.lua

scripts/autoheal.lua is the example script provided. It will automatically soothe you when you are damaged, and it will automatically use a herb pipe when your mana goes down. You can configure the script within the file -- just open it up in notepad and look at the comments (comments are denoted by --). Run the script by doing loadScript("scripts/autoheal.lua");

Credits

Coded by misterPhyrePhox. Uses LUA 5.1 and TinyXML.

Changelog