Mush Client Scan Script

Order Of Chaos Alliance Wiki | RecentChanges | Visiting as a guest. Login for full access.
Script

<triggers>
  <trigger
   enabled="y"
   group="script-scan"
   keep_evaluating="y"
   match="^You don\'t see anything (to the )?(\w+)\.$"
   omit_from_output="y"
   regexp="y"
   sequence="110"
  >
  </trigger>
  <trigger
   enabled="y"
   group="script-scan"
   keep_evaluating="y"
   match="^(.*?) (?P&lt;scantext&gt;(is a brief walk away|is almost out of sight|is close by|is in the distance|is not far off|is rather far off|is right here)) (?:to the )?(.*?)\.$"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="110"
  >
  <send>
local scandistance = {
    ["is right here"] = "(1)",
    ["is close by"] = "(2)",
    ["is not far off"] = "(3)",
    ["is a brief walk away"] = "(4)",
    ["is rather far off"] = "(5)",
    ["is in the distance"] = "(6)",
    ["is almost out of sight"] = "(7)"
}
  
--[[
local TriggerStyleRuns = GetStyleInfo (GetInfo(201))
for stylenum, stylecontent in ipairs(TriggerStyleRuns) do
	ColourTell(RGBColourToName (stylecontent.textcolour), RGBColourToName (stylecontent.backcolour), stylecontent.text)
end
ColourNote("lightgrey", "", " " .. scandistance["%&lt;scantext&gt;"])
]]

if string.find("%1", "Player") then
    ColourNote("darkturquoise", "", "%1" .. " - " .. "%4" .. " " .. scandistance["%&lt;scantext&gt;"])
else
    ColourNote("lightgrey", "", "%1" .. " - " .. "%4" .. " " .. scandistance["%&lt;scantext&gt;"])
end
</send>
  </trigger>
</triggers>


Usage

Each time you type scan, the script will rewrite the lines to show you how many exact rooms away an NPC / Player is. Players are coloured in turquoise for easier spotting. It also suppresses empty scan results to reduce spam but that also means you won't see anything at all if nothing is visible on scanning.

Sample output:
The kitten - south (1)
Raksann - south (2)
Sanger [Player] - south (2)
A very sexy woman - south (2)
The Towne Crier - south (2)
Caladius, the Archon Hunter - south (3)
An alley cat - south (3)
Brutl [Player] - south (3)
A silver stallion - south (3)
Kurik [Player] - south (3)
A young pegasus - south (3)
Magiick [Player] - south (5)
A gray war elephant - south (5)
The vassal of Lord Agrippa - south (5)


To uninstall

1. Game, Immediate (or Ctrl+I)

2. Copy the next line, then paste it into the Immediate window:

DeleteTriggerGroup ("script-scan")

3. Click [Run]


Order Of Chaos Alliance Wiki | RecentChanges | Visiting as a guest. Login for full access.
This page is read-only.
Last edited June 11, 2011 10:52 am by Enelya (diff)
Search: