feat: Easier potion tracking/quaffing config.

master
Fierre 3 years ago
parent 1421e7593b
commit 93c126ee3a

@ -55,15 +55,6 @@ CONFIGURING
Termighty tries to be plug and play with sane defaults. However, there are a few
knobs you can turn.
For automatic potion tracking and quaffing aliases, edit conf/options.tin
- healPotion and manaPotion should the full name of your favorite potion
For example: 64oz Monster(tm) ChaoS Moonberry
- healPotionType and manaPotionType should be the item type. For potions, this
is one of "potion" (quaff), "scroll" (recite), or "pill" (eat).
- healPotionKeyword and manaPotionKeyword should be set to one of the keywords
to use in quaffing. For example, 64oz Monster(tm) ChaoS Moonberry is "buzz".
For channel filtering, add or remove the complete GMCP channel name to
privateChannels in conf/options.tin . See the Aardwolf GMCP Channel reference here
for the available names: http://www.aardwolf.com/wiki/index.php/Clients/GMCP#aardmodules_comm
@ -75,6 +66,19 @@ CONFIGURING
For notifications, edit scripts in hooks/
POTION TRACKING AND QUAFFING
- qh quaffs the current healing potion
- qm quaffs the current mana potion
- hpotName sets the name of your healing potion of choice
Example: hpotName (!(Light Relief)!)
- hpotCmd sets the command to use to quaff your healing potion of choice
Example: hpotCmd quaff light
- mpotName sets the name of your mana potion of choice
- mpotCmd sets the command to use to quaff your mana potion of choice
Use 'loadconfig' after changing potion configuration.
MAPPING
Rooms will be automatically mapped as you explore.

@ -31,5 +31,8 @@
#read {modules/prompt.tin};
#read {modules/cron.tin};
#NOP These modules are loaded and saved by tt++
#read {modules/potions.tin};
#NOP Let's play
#session {aardwolf} {aardmud.org} {4000};

@ -21,18 +21,6 @@
#variable {mapAutosave} {mapdata/autosave.map};
#variable {playerMap} {mapdata/player.map};
#NOP Full name of healing and mana potions to track;
#variable {healPotion} {Healing Touch};
#variable {manaPotion} {64oz Monster(tm) ChaoS Moonberry};
#NOP What type of potion is this? Valid options are potion, scroll, or pill ;
#variable {healPotionType} {potion};
#variable {manaPotionType} {potion};
#NOP What keyword should be used in quaffing? (e.g. 'quaff buzz', 'eat popcorn')
#variable {healPotionKeyword} {heal};
#variable {manaPotionKeyword} {buzz};
#NOP Configure your character name and password for autologin, if desired;
#variable {characterName} {};
#variable {characterPass} {};

@ -36,7 +36,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./bootstrap.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./bootstrap.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -36,7 +36,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./conf/options.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./conf/options.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -109,7 +109,7 @@
<h2><a href="#A">A</a> - <a href="#B">B</a> - <a href="#C">C</a> - <a href="#D">D</a> - <a href="#E">E</a> - <a href="#F">F</a> - <a href="#G">G</a> - <a href="#H">H</a> - <a href="#I">I</a> - <a href="#J">J</a> - <a href="#K">K</a> - <a href="#L">L</a> - <a href="#M">M</a> - <a href="#N">N</a> - <a href="#O">O</a> - <a href="#P">P</a> - <a href="#Q">Q</a> - <a href="#R">R</a> - <a href="#S">S</a> - <a href="#T">T</a> - <a href="#U">U</a> - <a href="#V">V</a> - <a href="#W">W</a> - <a href="#X">X</a> - <a href="#Y">Y</a> - <a href="#Z">Z</a> - <a href="#0">0</a> - <a href="#1">1</a> - <a href="#2">2</a> - <a href="#3">3</a> - <a href="#4">4</a> - <a href="#5">5</a> - <a href="#6">6</a> - <a href="#7">7</a> - <a href="#8">8</a> - <a href="#9">9</a></h2>
</div> <!-- content -->
<div id="footer">
<p>Generated from ./ with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./ with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -272,7 +272,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/action.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/action.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -46,7 +46,7 @@
<pre> Alias qh - quaff healing
</pre>
<p class="item_name">SYNOPSIS</p>
<pre> Quaff the configured healing potion of the configured type.
<pre> Send the configured heal potion consume command.
</pre>
<p class="item_name">SEE ALSO</p>
<pre> conf/<a href="../conf/options_tin.html#robo_top_of_doc">options.tin</a>
@ -61,7 +61,7 @@
<pre> Alias qm - quaff mana
</pre>
<p class="item_name">SYNOPSIS</p>
<pre> Quaff the configured mana potion of the configured type.
<pre> Send the configured mana potion consume command.
</pre>
<p class="item_name">SEE ALSO</p>
<pre> conf/<a href="../conf/options_tin.html#robo_top_of_doc">options.tin</a>
@ -69,7 +69,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/alias.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/alias.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -92,7 +92,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/cron.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/cron.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -72,7 +72,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/gmcp/char.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/gmcp/char.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -48,7 +48,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/gmcp/messaging.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/gmcp/messaging.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -64,7 +64,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/gmcp/negotiate.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/gmcp/negotiate.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -36,7 +36,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/gmcp/room.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/gmcp/room.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -36,7 +36,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/gmcp/util.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/gmcp/util.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -115,7 +115,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/inventory.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/inventory.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -164,7 +164,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/map.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/map.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -120,7 +120,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/notifications.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/notifications.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -72,7 +72,7 @@
</div> <!-- content -->
<div id="footer">
<p>Generated from ./modules/prompt.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./modules/prompt.tin with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -93,7 +93,7 @@
<h2><a href="#A">A</a> - <a href="#B">B</a> - <a href="#C">C</a> - <a href="#D">D</a> - <a href="#E">E</a> - <a href="#F">F</a> - <a href="#G">G</a> - <a href="#H">H</a> - <a href="#I">I</a> - <a href="#J">J</a> - <a href="#K">K</a> - <a href="#L">L</a> - <a href="#M">M</a> - <a href="#N">N</a> - <a href="#O">O</a> - <a href="#P">P</a> - <a href="#Q">Q</a> - <a href="#R">R</a> - <a href="#S">S</a> - <a href="#T">T</a> - <a href="#U">U</a> - <a href="#V">V</a> - <a href="#W">W</a> - <a href="#X">X</a> - <a href="#Y">Y</a> - <a href="#Z">Z</a> - <a href="#0">0</a> - <a href="#1">1</a> - <a href="#2">2</a> - <a href="#3">3</a> - <a href="#4">4</a> - <a href="#5">5</a> - <a href="#6">6</a> - <a href="#7">7</a> - <a href="#8">8</a> - <a href="#9">9</a></h2>
</div> <!-- content -->
<div id="footer">
<p>Generated from ./ with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./ with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -31,7 +31,7 @@
<h2><a href="#A">A</a> - <a href="#B">B</a> - <a href="#C">C</a> - <a href="#D">D</a> - <a href="#E">E</a> - <a href="#F">F</a> - <a href="#G">G</a> - <a href="#H">H</a> - <a href="#I">I</a> - <a href="#J">J</a> - <a href="#K">K</a> - <a href="#L">L</a> - <a href="#M">M</a> - <a href="#N">N</a> - <a href="#O">O</a> - <a href="#P">P</a> - <a href="#Q">Q</a> - <a href="#R">R</a> - <a href="#S">S</a> - <a href="#T">T</a> - <a href="#U">U</a> - <a href="#V">V</a> - <a href="#W">W</a> - <a href="#X">X</a> - <a href="#Y">Y</a> - <a href="#Z">Z</a> - <a href="#0">0</a> - <a href="#1">1</a> - <a href="#2">2</a> - <a href="#3">3</a> - <a href="#4">4</a> - <a href="#5">5</a> - <a href="#6">6</a> - <a href="#7">7</a> - <a href="#8">8</a> - <a href="#9">9</a></h2>
</div> <!-- content -->
<div id="footer">
<p>Generated from ./ with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./ with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -106,7 +106,7 @@ util.tin</tt></a></li>
</ul>
</div> <!-- content -->
<div id="footer">
<p>Generated from ./ with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./ with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -95,7 +95,7 @@
</ul>
</div> <!-- content -->
<div id="footer">
<p>Generated from ./ with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Oct 24 2020 10:04:08
<p>Generated from ./ with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sat Jan 30 2021 00:20:33
</p>
</div> <!-- footer -->
</body>

@ -1,31 +1,27 @@
#variable {quaff[potion]} {quaff};
#variable {quaff[pill]} {eat};
#variable {quaff[scroll]} {recite};
#NOP ****f* modules.alias/Alias qh
#NOP NAME
#NOP Alias qh - quaff healing
#NOP SYNOPSIS
#NOP Quaff the configured healing potion of the configured type.
#NOP Send the configured heal potion consume command.
#NOP SEE ALSO
#NOP conf/options.tin
#NOP -
#alias {qh} {
#send {$quaff[$healPotionType] $healPotionKeyword};
#send {$healPotionCommand};
};
#NOP ****f* modules.alias/Alias qm
#NOP NAME
#NOP Alias qm - quaff mana
#NOP SYNOPSIS
#NOP Quaff the configured mana potion of the configured type.
#NOP Send the configured mana potion consume command.
#NOP SEE ALSO
#NOP conf/options.tin
#NOP -
#alias {qm} {
#send {$quaff[$manaPotionType] $manaPotionKeyword};
#send {$manaPotionCommand};
};
#NOP ****f* modules.alias/Alias loadconfig

@ -0,0 +1,36 @@
#CLASS {potions} OPEN
#ALIAS {hpotCmd %1}
{
#variable {healPotionCommand} {%1};
#class {potions} {save};
#class {potions} {write} {modules/potions.tin}
}
#ALIAS {hpotName %1}
{
#variable {healPotion} {%1};
#class {potions} {save};
#class {potions} {write} {modules/potions.tin}
}
#ALIAS {mpotCmd %1}
{
#variable {manaPotionCommand} {%1};
#class {potions} {save};
#class {potions} {write} {modules/potions.tin}
}
#ALIAS {mpotName %1}
{
#variable {manaPotion} {%1};
#class {potions} {save};
#class {potions} {write} {modules/potions.tin}
}
#VARIABLE {healPotion} {(!(Light Relief)!)}
#VARIABLE {healPotionCommand} {quaff light}
#VARIABLE {manaPotion} {(!(Lotus Rush)!)}
#VARIABLE {manaPotionCommand} {quaff lotus}
#CLASS {potions} CLOSE
Loading…
Cancel
Save