Difference between revisions of "Rift mapper mudlet"

From Mortal Realms Mud
Jump to: navigation, search
(Created page with "== Information == The script is a work-in-progress, but can be used with a couple of small changes. * Mob fights are bravely handled by trying to flee 3x and then casting rip...")
 
Line 5: Line 5:
  
 
Other important things:
 
Other important things:
* Turn Vt102 OFF and Colors ON - Colors are needed to identify room names. Without them, the script won't work.
+
* The script appends new rifts to the output file, so you can stop and restart riftmapping whenever you want (as long as the output file isn't moved).
* Have the [[Psionicist's_Guild]] ring - the script is designed for [[Necromancer|necs]] who have it.
+
* Turn Vt102 OFF and Colors ON - Colors are needed to identify room names. Without them, the script won't work. No idea if this works in vt102. I'm guessing not.
* The script is currently set to cast feast when you're hungry. This is changeable, but requires some edits.
+
* Your prompt needs to be setup this way: prompt $hhp $mm $vmv $gg
 +
* Add this alias: alias regen rest & regenerate
 +
* The [[Psionicist's_Guild]] ring makes things a LOT faster, but isn't necessary here with a small change.
 +
* The script is currently set to cast feast when you're hungry. This is changeable as well.
 +
* The output file is saved in your Mudlet directory.
 
=== Manual ===
 
=== Manual ===
First thing to do is edit the script file and setup some variables (top of the script/file):
+
First, open the script file in the link below and copy everything into notepad.
 +
Save it as Riftmapper.trigger wherever you have easy access to it.
 +
In Mudlet, load the character that you'd like to install the riftmapper on and click the Packages (exp.) button.
 +
Click install new package on the bottom of the pop-up and open Riftmapper.trigger
 +
 
 +
After this has been installed, you need to change a few of things in the button/script/triggers themselves:
 
<pre>
 
<pre>
#var number 100
+
-----------------
#var name dir
+
Buttons
#var file rifts_dir.txt
+
#var back tell $name i don't know where to go :)
+
#var wholine [95 Nec Dro]-<All> Dir shmir...              http://mr.gloomy.eu %0
+
</pre>
+
* '''number''' - defines the starting rift you want to start at current session;
+
* '''name''' - [[Necromancer|necs]] name (used by the WHO command);
+
* '''file''' - file name where the rifts are saved
+
* '''back''' - can be ignored, this variable is used to handle some error situation;
+
* '''wholine''' - full line which can be seen when you type 'who your_nec_name' with a % instead of area name - used to parse the area name;
+
So after you first edit the script file you should:
+
# login with your [[Necromancer|nec]];
+
# load the script: '''#load script_name.txt'''
+
# go to the room where you can make a rip;
+
# type: '''start'''
+
This fill start the script ('''start''' is script alias);
+
  
 +
Riftmapper:
 +
 +
Change "Startrift = 197" to whatever number you'd like to start mapping at.
 +
-----------------
 +
 +
Triggers
 +
 +
Check Mana:
 +
 +
If you didn't multiclass to Cleric, you'll need to comment out the feast spell and add the food type you have in your inv.
 +
(Comments in Mudlet are signified by "--". Remove them from the eat and drink lines, change turkey to your food type, and comment out the feast line.)
 +
 +
Example using turkey from Kytar:
 +
 +
    --send("c feast")
 +
    send("eat turkey")
 +
    send("drink water")
 +
 +
 +
Get Area Name:
 +
 +
You'll need to change the trigger itself to accommodate your character name/title for now.
 +
 +
\[(\d+) (\w+) (\w+)]-\<(\w+)> Stebano the Rogue(\s+)(.+)
 +
 +
Change "Stebano the Rogue" to whatever your name/title show up as when you do the who command on yourself.
 +
 +
Example (Gloomy):
 +
 +
\[(\d+) (\w+) (\w+)]-\<(\w+)> Gloomy the chaotic soul.  http://mr.gloomy.eu(\s+)(.+)
 +
 +
You DO need at least one space between the last character of your title and the area name for the script to work.
 +
 +
 +
OoM:
 +
 +
If you DON'T have a psi guild ring, you'll need to change
 +
 +
send("regen & regen")
 +
 +
to
 +
 +
send("sleep")
 +
 +
-----------------
 +
 +
Scripts
 +
 +
RiftMapper:
 +
 +
Change Stebano_Rifts.txt in the below line to whatever you want your rift file to be named.
 +
 +
rifts_file = io.open("Stebano_Rifts.txt", "a")
 +
 +
Example:
 +
 +
rifts_file = io.open("adultnoveltytoyshoppinglist.txt", "a")
 +
 +
</pre>
  
Next time you dont need to edit the script. Just login, load the script, set rift number variable (#var number <next_rift_number>), type: '''start'''
+
* After the above steps have been completed, go to any room you can cast a rip in, make sure your button is set to the rift # you want to start at, and simply click the Rift Mapper button. The script will take it from there.
  
To stop the script type: '''#kill'''
 
  
This will clear the tintin variables/actions/alises and all will stop;
+
Please address any questions to Atari either in-game or through this site. Have fun!
  
To see the end of current rift file (to find out the last rift mapped) type: '''#system tail rift_file.txt'''
+
(Template shamelessly stolen from Gloomy)
  
All questions and help please leave on the [[Talk:Rift_mapper_tintin|discussion page]]. Good luck!
 
 
== Versions ==
 
== Versions ==
 
* [[mudlet_rift_mapper_1_0|Rift Mapper 1.0]]
 
* [[mudlet_rift_mapper_1_0|Rift Mapper 1.0]]
 
== Changelog ==
 
== Changelog ==
* 1.0 - initial script by gloomy;
+
* 1.0 - initial script by Atari;
 +
== Future Features ==
 +
* Eventually you won't need to change your name/title in the script. The script will change your title to your riftmapping status "XXXXXX is currently mapping rift # 193" and then switch it back to your original when turning the mapper off.
 
[[Category:Scripts]]
 
[[Category:Scripts]]

Revision as of 05:57, 23 October 2022

Information

The script is a work-in-progress, but can be used with a couple of small changes.

  • Mob fights are bravely handled by trying to flee 3x and then casting rip to resume the rifting cycle. If you don't flee within three tries, it'll keep trying until you either flee, kill the mob and cast a rip after failed flee attempts, or die.

Other important things:

  • The script appends new rifts to the output file, so you can stop and restart riftmapping whenever you want (as long as the output file isn't moved).
  • Turn Vt102 OFF and Colors ON - Colors are needed to identify room names. Without them, the script won't work. No idea if this works in vt102. I'm guessing not.
  • Your prompt needs to be setup this way: prompt $hhp $mm $vmv $gg
  • Add this alias: alias regen rest & regenerate
  • The Psionicist's_Guild ring makes things a LOT faster, but isn't necessary here with a small change.
  • The script is currently set to cast feast when you're hungry. This is changeable as well.
  • The output file is saved in your Mudlet directory.

Manual

First, open the script file in the link below and copy everything into notepad. Save it as Riftmapper.trigger wherever you have easy access to it. In Mudlet, load the character that you'd like to install the riftmapper on and click the Packages (exp.) button. Click install new package on the bottom of the pop-up and open Riftmapper.trigger

After this has been installed, you need to change a few of things in the button/script/triggers themselves:

-----------------
Buttons

Riftmapper:

Change "Startrift = 197" to whatever number you'd like to start mapping at.
-----------------

Triggers

Check Mana:

If you didn't multiclass to Cleric, you'll need to comment out the feast spell and add the food type you have in your inv.
(Comments in Mudlet are signified by "--". Remove them from the eat and drink lines, change turkey to your food type, and comment out the feast line.)

Example using turkey from Kytar:

    --send("c feast")
    send("eat turkey")
    send("drink water")


Get Area Name:

You'll need to change the trigger itself to accommodate your character name/title for now.

\[(\d+) (\w+) (\w+)]-\<(\w+)> Stebano the Rogue(\s+)(.+)

Change "Stebano the Rogue" to whatever your name/title show up as when you do the who command on yourself. 

Example (Gloomy):

\[(\d+) (\w+) (\w+)]-\<(\w+)> Gloomy the chaotic soul.   http://mr.gloomy.eu(\s+)(.+)

You DO need at least one space between the last character of your title and the area name for the script to work.


OoM:

If you DON'T have a psi guild ring, you'll need to change

send("regen & regen")

to

send("sleep")

-----------------

Scripts

RiftMapper:

Change Stebano_Rifts.txt in the below line to whatever you want your rift file to be named.

rifts_file = io.open("Stebano_Rifts.txt", "a")

Example:

rifts_file = io.open("adultnoveltytoyshoppinglist.txt", "a")

  • After the above steps have been completed, go to any room you can cast a rip in, make sure your button is set to the rift # you want to start at, and simply click the Rift Mapper button. The script will take it from there.


Please address any questions to Atari either in-game or through this site. Have fun!

(Template shamelessly stolen from Gloomy)

Versions

Changelog

  • 1.0 - initial script by Atari;

Future Features

  • Eventually you won't need to change your name/title in the script. The script will change your title to your riftmapping status "XXXXXX is currently mapping rift # 193" and then switch it back to your original when turning the mapper off.