Aardwolf Mapper Ninja Plugin :) (By Lunk)

Posted by Lua_Newbie on Wed 22 Jul 2015 10:27 PM — 3 posts, 20,052 views.

#0
post 1/2 :

I have written a Plugin called Mapper Ninja as a follow on to my mapper tutorial, enjoy :)
the rest of the code is below the 1st post, copy and paste all the code in both posts into 1 file and save as .xml extension as explained at the end of post 2.


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Wednesday, July 22, 2015, 8:59 PM -->
<!-- MuClient version 4.98 -->
<!-- Plugin "Mapper_Ninja" -->
<!--
Mapper Ninja  - Created 22/07/2015 by Lunk
-->

<muclient>
<plugin
   name="Mapper_Ninja"
   author="Lunk"
   id="150081ad403da0b885afb90c"
   language="Lua"
   purpose="quick mapper use"
   save_state="y"
   date_written="2015-07-22 20:42:19"
   requires="4.98"
   version="1.3"
   >
<description trim="y">
<![CDATA[
Lunk's : 
             _____/~~~~~~~~~~~~~~~~~~~~_____
        ___ /=--- + *  Mapper Ninja  * + ---= ___
==========================================================

*** MAPPER  MOVEMENT : DATABASE ENTRY ***

mno  --->  enters north through a unlocked door into mapper database
mea  --->  enters east through a unlocked door into mapper database
mso  --->  enters south through a unlocked door into mapper database
mwe  --->  enters west through a unlocked door into mapper database
mup  --->  enters up through a unlocked door into mapper database
mdo  --->  enters down through a unlocked door into mapper database

mnol  --->  enters north through a locked door into mapper database
meal  --->  enters east through a locked door into mapper database
msol  --->  enters south through a locked door into mapper database
mwel  --->  enters west through a locked door into mapper database
mupl  --->  enters up through a locked door into mapper database
mdol  --->  enters down through a locked door into mapper database

mwait * --->  ONLY use this before attempting to enter a cexit into the database with multiple commands (seperated by ; or ;; if ; is already your command stacking character 
maze *  --->  enters movement direction (where * is a direction; n, e, s, w, u, d) and destination room into mapper database (good for navigating mazes)

*** MAPPER MOVEMENT : USING DATABASE ***

mgo *  --->  moves player to room i.d *

*** MAPPER SEARCHING ***

mfi *  --->  searches mapper database for room * in current area
mdb *  --->  searches mapper database for room * (whole database)

*** MAPPER PORTALS ***

mpor1 *    --->  takes you to the destination of portal *
mpor2 *    --->  enters portal * into mapper database
mporbag *  --->  sets * as portals bag
mporbag    --->  displays portals bag
mhold *    --->  sets hold item * for mapper portal database entry/general use
mhold      --->  displays hold item
mporlist   --->  lists all portal mapper database entrys
mpordel #* --->  deletes portal entry * where * is the portal index (#)
mlporbag   --->  looks (examines) your portals bag to show which portals you have 
  
*NOTE 1* : the # is necessary to indicate which portal to delete (the index of the database entry) so for example i wanted to delete portal at index 42 I would use : mpordel #42
*NOTE 2* : check the portals list after removeing each portal for multiple removals (when 1 is deleted all the ones after go down a digit) 

*** MISC ***

mroom   --->  displays cexits for current room
mclear  --->  removes custom exit database entrys for the current room
mxs     --->  sets target room (the room you are in) for current area 
]]>
</description>

</plugin>

<include name="constants.lua"/>

<aliases>
  <alias
   match="meal"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open e;;e;;close w;;lock w</send>
  </alias>
  <alias
   match="msol"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open s;;s;;close n;;lock n</send>
  </alias>
  <alias
   match="mwel"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open w;;w;;close e;;lock e</send>
  </alias>
  <alias
   match="mupl"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open u;;u;;close d;;lock d</send>
  </alias>
  <alias
   match="maze *"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit %1</send>
  </alias>
  <alias
   match="mdol"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open d;;d;;close u;;lock u</send>
  </alias>
  <alias
   match="mroom"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper thisroom</send>
  </alias>
  <alias
   match="mfi *"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper area %1</send>
  </alias>
  <alias
   match="mdb *"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper find %1</send>
  </alias>
  <alias
   match="mgo *"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper goto %1</send>
  </alias>
  <alias
   match="mpor2 *"
   enabled="y"
   expand_variables="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper portal get %1 @portals_bag;;hold %1;;enter;;hold @hold_item;;put %1 @portals_bag</send>
  </alias>
  <alias
   match="mpor1 *"
   enabled="y"
   expand_variables="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>get %1 @portals_bag
hold %1
enter
hold @hold_item
put %1 @portals_bag</send>
  </alias>
  <alias
   match="mno"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open n;;n;;close s</send>
  </alias>
Amended on Fri 24 Jul 2015 01:17 AM by Lua_Newbie
#1
post 2/2 :

   <alias
   match="mclear"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper delete cexits</send>
  </alias>
  <alias
   match="mpurge *"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper purgezone %1</send>
  </alias>
  <alias
   match="mea"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open e;;e;;close w</send>
  </alias>

  <alias
   match="mso"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open s;;s;;close n</send>
  </alias>
  <alias
   match="mwe"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open w;;w;;close e</send>
  </alias>
  <alias
   match="mup"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open u;;u;;close d</send>
  </alias>
  <alias
   match="mdo"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open d;;d;;close u</send>
  </alias>
  <alias
   match="mnol"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit open n;;n;;close s;;lock s</send>
  </alias>
  <alias
   match="mwait *"
   enabled="y"
   group="map"
   send_to="10"
   sequence="100"
  >
  <send>mapper cexit_wait %1</send>
  </alias>
  
  <alias
   match="mporbag"
   enabled="y"
   expand_variables="y"
   send_to="12"
   sequence="100"
  >
  <send>GetVariable ("portals_bag") 
Note ("Portals Bag  : ", "@portals_bag")</send>
  </alias>

  <alias
   match="mporbag *"
   enabled="y"
   expand_variables="y"
   send_to="12"
   sequence="100"
  >
  <send>GetVariable ("portals_bag") SetVariable ("portals_bag", "%1")
Note ("Portals Bag Set To : ", "%1")</send>
  </alias>
    <alias
   match="mhold"
   enabled="y"
   expand_variables="y"
   send_to="12"
   sequence="100"
  >
  <send>GetVariable ("hold_item") 
Note ("Hold Item  : ", "@hold_item")</send>
  </alias>

  <alias
   match="mhold *"
   enabled="y"
   expand_variables="y"
   send_to="12"
   sequence="100"
  >
  <send>GetVariable ("hold_item") SetVariable ("hold_item", "%1")
Note ("Hold Item Set To : ", "%1")</send>
  </alias>
      <alias
   match="mporlist"
   enabled="y"
   expand_variables="y"
   send_to="10"
   sequence="100"
  >
  <send>mapper portals</send>
  </alias>
   <alias
   match="mpordel *"
   enabled="y"
   expand_variables="y"
   send_to="10"
   sequence="100"
  >
  <send>mapper delete portal %1</send>
  </alias>
  </aliases>

<aliases>
  <alias
   script="OnHelp"
   match="mninja help"
   enabled="y"
  >
  </alias>
   <alias
   match="mxs"
   enabled="y"
   expand_variables="n"
   send_to="10"
   sequence="100"
  >
  <send>xset mark</send>
  </alias>
  <alias
   match="mlporbag"
   enabled="y"
   expand_variables="y"
   sequence="100"
  >
  <send>examine @portals_bag</send>
  </alias>

</aliases>

<script>
<![CDATA[
function OnHelp ()
  world.Note (world.GetPluginInfo (world.GetPluginID (), 3))
end

]]>
</script> 

</muclient>


Instructions :

Make sure Mushclient application is closed (not running)

copy and paste all the code above into notepad or a text editor (you DO know what one of those is right?) and save it in the MUSHclient directory on your hard disc in worlds --> plugins as Mapper_Ninja.xml

you MUST save it with the .xml as the file extension

run MUSHclient.exe and connect to Aardwolf

hold down CTRL + SHIFT and press p on the keyboard to open plugins interface

click add (bottom left) and locate the Mapper Ninja plugin, click open.

set your portals bag and hold item.

All Done :)


To display help try this : mninja help

for anyone who is wondering the best use for the mapper - it's to combine it with the hunt trick (whilst in aardwolf try "help hunt trick") which can be made even faster with the fasthunt wish (yes it is expensive but worth it if you cp a lot), another thing that is definitely worth checking out is winkle winkle's search and destroy triple pack found here :

http://code.google.com/p/aardwolf-scriptalicious

It uses the mapper to xrt (x runto) in the quickest path possible using portals and anything else in the mapper database that you have programmed as shown in my mapper tutorial. The updated Mapper_Extender plugin (to work with MUSHclient v - 4.98 can be found here :) -

http://github.com/nokfah/MUSHScripts

Be sure you know what IS and what ISN'T allowed (maybe check "help botting" ?) I will NOT be held responsible for anyone caught botting due to further modification of the s&d triple pack/addition of triggers.

Happy qp'ing :)
Amended on Fri 24 Jul 2015 04:39 AM by Lua_Newbie
#2
I have created a real home for this plugin found here :

http://github.com/Aardwolf-Lunk/Mapper-Ninja