Script
<aliases> <alias name="ships" match="ships" enabled="y" group="script-ships" send_to="12" sequence="100"> <send>http = require "socket.http" page, retcode, header = http.request("http://iota.materiamagica.com/online/sysinfo.txt") if (retcode == 200) then wstart = string.find(page, "Merdraco", 0, true) wend = string.find(page, "#END", 0, true) where = string.sub(page, wstart, wend - 1) Note(where) else Note("Sorry, couldn't read sysinfo page") end</send> </alias> </aliases>
Usage
Type 'ships' and it'll display the late updated location of all the ships from sysinfo.txt.
Sample Output
|