103 lines
1.9 KiB
XML
103 lines
1.9 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
<!DOCTYPE muclient>
|
||
|
|
<!-- Saved on Tuesday, August 20, 2002, 10:53 AM -->
|
||
|
|
<!-- MuClient version 3.26 -->
|
||
|
|
|
||
|
|
<!-- Plugin "SMAUG_automapper_helper" generated by Plugin Wizard -->
|
||
|
|
|
||
|
|
<!--
|
||
|
|
|
||
|
|
To modify for other MUDs you would need to change the trigger, as appropriate, to match how a room name appears (eg. different colours, maybe not necessarily bold).
|
||
|
|
|
||
|
|
-->
|
||
|
|
|
||
|
|
<muclient>
|
||
|
|
<plugin
|
||
|
|
name="SMAUG_automapper_helper"
|
||
|
|
author="Nick Gammon"
|
||
|
|
id="1f35c7a694942758589d3cd8"
|
||
|
|
language="VBscript"
|
||
|
|
purpose="Adds room names to the auto mapper"
|
||
|
|
date_written="2002-08-20 10:49:57"
|
||
|
|
requires="3.26"
|
||
|
|
version="1.0"
|
||
|
|
>
|
||
|
|
<description trim="y">
|
||
|
|
<![CDATA[
|
||
|
|
This plugin (attempts to) detect room names as you walk around in SMAUG, and if found, and the automapper is active, adds them to the automapper as a comment.
|
||
|
|
|
||
|
|
Usage
|
||
|
|
-----
|
||
|
|
|
||
|
|
Just have the plugin installed and it will detect room names.
|
||
|
|
It looks for bold, white-on-black text, that does *not* start with the word "Exits:".
|
||
|
|
|
||
|
|
automapper:help <-- this help screen
|
||
|
|
]]>
|
||
|
|
</description>
|
||
|
|
|
||
|
|
</plugin>
|
||
|
|
|
||
|
|
|
||
|
|
<!-- Triggers -->
|
||
|
|
|
||
|
|
<triggers>
|
||
|
|
<trigger
|
||
|
|
back_colour="8"
|
||
|
|
bold="y"
|
||
|
|
enabled="y"
|
||
|
|
match="^(?!Exits: )(.*)$"
|
||
|
|
match_back_colour="y"
|
||
|
|
match_bold="y"
|
||
|
|
match_inverse="y"
|
||
|
|
match_italic="y"
|
||
|
|
match_text_colour="y"
|
||
|
|
regexp="y"
|
||
|
|
script="OnRoomName"
|
||
|
|
send_to="2"
|
||
|
|
sequence="100"
|
||
|
|
text_colour="15"
|
||
|
|
>
|
||
|
|
</trigger>
|
||
|
|
</triggers>
|
||
|
|
|
||
|
|
<!-- Script -->
|
||
|
|
|
||
|
|
|
||
|
|
<script>
|
||
|
|
<![CDATA[
|
||
|
|
sub OnRoomName (strName, strLine, aryWildcards)
|
||
|
|
'
|
||
|
|
' if automapper active, add room name as comment
|
||
|
|
'
|
||
|
|
if world.getinfo (112) then
|
||
|
|
world.addmappercomment (aryWildcards (1))
|
||
|
|
end if
|
||
|
|
|
||
|
|
end sub
|
||
|
|
|
||
|
|
]]>
|
||
|
|
</script>
|
||
|
|
|
||
|
|
|
||
|
|
<!-- Plugin help -->
|
||
|
|
|
||
|
|
<aliases>
|
||
|
|
<alias
|
||
|
|
script="OnHelp"
|
||
|
|
match="automapper:help"
|
||
|
|
enabled="y"
|
||
|
|
>
|
||
|
|
</alias>
|
||
|
|
</aliases>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
<![CDATA[
|
||
|
|
Sub OnHelp (sName, sLine, wildcards)
|
||
|
|
World.Note World.GetPluginInfo (World.GetPluginID, 3)
|
||
|
|
End Sub
|
||
|
|
]]>
|
||
|
|
</script>
|
||
|
|
|
||
|
|
</muclient>
|