Mush Client Ship Locator

Order Of Chaos Alliance Wiki | RecentChanges | Visiting as a guest. Login for full access.
Original code by Ruthgul, but I thought it sucked, so I fixed it. <3

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



(#troll) 
Merdraco Status: En Route to Sigil from Pirate's Cove at [1194, 938]. [Mon Apr  4 20:33:55 2011]
Hallowhold Ferry Status: En Route to Lowangen from Tellerium at [1695, 696]. [Mon Apr  4 20:34:28 2011]
Riddenmast Ferry Status: En route to Rune at [452, 1210]. [Mon Apr  4 20:32:19 2011]
The airship Inconvenience is flying over 1319, 402. (Oceanus Ingenii) [Thu Mar 31 13:12:58 2011]


Order Of Chaos Alliance Wiki | RecentChanges | Visiting as a guest. Login for full access.
This page is read-only.
Last edited July 23, 2011 3:06 am by Elbereth (diff)
Search: