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.
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>