- Quest timer info - Enemy information - HP/MP/MV/TNL/Align info Also improve private channel filtering.master
parent
a26fe6ac68
commit
8488df460e
@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />
|
||||
<link rel="stylesheet" href="../../robodoc.css" type="text/css" />
|
||||
<title>./modules/gmcp/char.tin</title>
|
||||
<!-- Source: ./modules/gmcp/char.tin -->
|
||||
<!-- Generated with ROBODoc Version 4.99.43 (Jul 6 2020) -->
|
||||
</head>
|
||||
<body>
|
||||
<div id="logo">
|
||||
<a name="robo_top_of_doc"></a>
|
||||
</div> <!-- logo -->
|
||||
<div id="navigation">
|
||||
<a class="menuitem" href="../../toc_index.html#top">Table of Contents</a>
|
||||
<a class="menuitem" href="../../robo_sourcefiles.html#top">Sourcefiles</a>
|
||||
<a class="menuitem" href="../../masterindex.html#top">Index</a>
|
||||
<a class="menuitem" href="../../robo_generics.html#top">Generics</a>
|
||||
<a class="menuitem" href="../../robo_functions.html#top">Functions</a>
|
||||
</div> <!-- navigation -->
|
||||
<div id="content">
|
||||
<hr />
|
||||
<a name="modules2egcmp2echar2fEvent20IAC20SB20GMCP20char2ebase"></a>
|
||||
<a name="robo2"></a><h2>modules.gcmp.char/Event IAC SB GMCP char.base [ Functions ]</h2>
|
||||
|
||||
<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="../../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
|
||||
<p class="item_name">NAME</p>
|
||||
<pre> Event IAC SB GMCP char.base -- Process character base update
|
||||
</pre>
|
||||
<p class="item_name">SYNOPSIS</p>
|
||||
<pre> Parse the update and update the character variable
|
||||
</pre>
|
||||
|
||||
<hr />
|
||||
<a name="modules2egcmp2echar2fEvent20IAC20SB20GMCP20char2emaxstats"></a>
|
||||
<a name="robo3"></a><h2>modules.gcmp.char/Event IAC SB GMCP char.maxstats [ Functions ]</h2>
|
||||
|
||||
<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="../../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
|
||||
<p class="item_name">NAME</p>
|
||||
<pre> Event IAC SB GMCP char.maxstats -- Process character maxstats update
|
||||
</pre>
|
||||
<p class="item_name">SYNOPSIS</p>
|
||||
<pre> Parse the update and update the character variable
|
||||
</pre>
|
||||
|
||||
<hr />
|
||||
<a name="modules2egcmp2echar2fEvent20IAC20SB20GMCP20char2estatus"></a>
|
||||
<a name="robo4"></a><h2>modules.gcmp.char/Event IAC SB GMCP char.status [ Functions ]</h2>
|
||||
|
||||
<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="../../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
|
||||
<p class="item_name">NAME</p>
|
||||
<pre> Event IAC SB GMCP char.status -- Process character status update
|
||||
</pre>
|
||||
<p class="item_name">SYNOPSIS</p>
|
||||
<pre> Parse the update and update the character variable
|
||||
</pre>
|
||||
|
||||
<hr />
|
||||
<a name="modules2egcmp2echar2fEvent20IAC20SB20GMCP20char2evitals"></a>
|
||||
<a name="robo5"></a><h2>modules.gcmp.char/Event IAC SB GMCP char.vitals [ Functions ]</h2>
|
||||
|
||||
<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="../../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
|
||||
<p class="item_name">NAME</p>
|
||||
<pre> Event IAC SB GMCP char.vitals -- Process character vitals update
|
||||
</pre>
|
||||
<p class="item_name">SYNOPSIS</p>
|
||||
<pre> Parse the update and update the character variable
|
||||
</pre>
|
||||
|
||||
</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 Tue Jul 07 2020 10:14:25
|
||||
</p>
|
||||
</div> <!-- footer -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />
|
||||
<link rel="stylesheet" href="../robodoc.css" type="text/css" />
|
||||
<title>./modules/prompt.tin</title>
|
||||
<!-- Source: ./modules/prompt.tin -->
|
||||
<!-- Generated with ROBODoc Version 4.99.43 (Jul 6 2020) -->
|
||||
</head>
|
||||
<body>
|
||||
<div id="logo">
|
||||
<a name="robo_top_of_doc"></a>
|
||||
</div> <!-- logo -->
|
||||
<div id="navigation">
|
||||
<a class="menuitem" href="../toc_index.html#top">Table of Contents</a>
|
||||
<a class="menuitem" href="../robo_sourcefiles.html#top">Sourcefiles</a>
|
||||
<a class="menuitem" href="../masterindex.html#top">Index</a>
|
||||
<a class="menuitem" href="../robo_generics.html#top">Generics</a>
|
||||
<a class="menuitem" href="../robo_functions.html#top">Functions</a>
|
||||
</div> <!-- navigation -->
|
||||
<div id="content">
|
||||
<hr />
|
||||
<a name="modules2eprompt2fTicker20updateEnemy"></a>
|
||||
<a name="robo11"></a><h2>modules.prompt/Ticker updateEnemy [ Functions ]</h2>
|
||||
|
||||
<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
|
||||
<p class="item_name">NAME</p>
|
||||
<pre> Ticker updateEnemy
|
||||
</pre>
|
||||
<p class="item_name">SYNOPSIS</p>
|
||||
<pre> Update the enemy line on the prompt with enemy stats.
|
||||
</pre>
|
||||
|
||||
<hr />
|
||||
<a name="modules2eprompt2fTicker20updateInfo"></a>
|
||||
<a name="robo12"></a><h2>modules.prompt/Ticker updateInfo [ Functions ]</h2>
|
||||
|
||||
<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
|
||||
<p class="item_name">NAME</p>
|
||||
<pre> Ticker updateInfo
|
||||
</pre>
|
||||
<p class="item_name">SYNOPSIS</p>
|
||||
<pre> Update the info line on the prompt for Quest information.
|
||||
</pre>
|
||||
|
||||
<hr />
|
||||
<a name="modules2eprompt2fTicker20updateStats"></a>
|
||||
<a name="robo13"></a><h2>modules.prompt/Ticker updateStats [ Functions ]</h2>
|
||||
|
||||
<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
|
||||
<p class="item_name">NAME</p>
|
||||
<pre> Ticker updateStats
|
||||
</pre>
|
||||
<p class="item_name">SYNOPSIS</p>
|
||||
<pre> Update the character stats line of the prompt (HP/MP/MV/TNL)
|
||||
</pre>
|
||||
|
||||
</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 Tue Jul 07 2020 10:14:25
|
||||
</p>
|
||||
</div> <!-- footer -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,59 @@
|
||||
#NOP ****f* modules.gcmp.char/Event IAC SB GMCP char.base
|
||||
#NOP NAME
|
||||
#NOP Event IAC SB GMCP char.base -- Process character base update
|
||||
#NOP SYNOPSIS
|
||||
#NOP Parse the update and update the character variable
|
||||
#NOP -
|
||||
|
||||
#event {IAC SB GMCP char.base IAC SE} {
|
||||
#NOP Format: char.base { "name": Lasher, "class": Warrior, "subclass": Soldier,;
|
||||
#NOP "race": Elf, "clan": wolf, "pretitle": "Testing ", "perlevel": 1000,;
|
||||
#NOP "tier": 1, "remorts": 7 };
|
||||
|
||||
#NOP Pull out the GMCP message;
|
||||
#variable {character[base]} {%0};
|
||||
}
|
||||
|
||||
#NOP ****f* modules.gcmp.char/Event IAC SB GMCP char.vitals
|
||||
#NOP NAME
|
||||
#NOP Event IAC SB GMCP char.vitals -- Process character vitals update
|
||||
#NOP SYNOPSIS
|
||||
#NOP Parse the update and update the character variable
|
||||
#NOP -
|
||||
#event {IAC SB GMCP char.vitals IAC SE} {
|
||||
#NOP Format: char.vitals { "hp": 100000, "mana": 90000, "moves": 41599 };
|
||||
|
||||
#NOP Pull out the GMCP message;
|
||||
#variable {character[vitals]} {%0};
|
||||
}
|
||||
|
||||
#NOP ****f* modules.gcmp.char/Event IAC SB GMCP char.status
|
||||
#NOP NAME
|
||||
#NOP Event IAC SB GMCP char.status -- Process character status update
|
||||
#NOP SYNOPSIS
|
||||
#NOP Parse the update and update the character variable
|
||||
#NOP -
|
||||
#event {IAC SB GMCP char.status IAC SE} {
|
||||
#NOP Format: char.status { "level": 210, "tnl": 1000, "hunger": 70, "thirst": 70,;
|
||||
#NOP "align": 1867, "state": 3, "pos": "Standing" , "enemy": "an owl",;
|
||||
#NOP "enemypct": 93 };
|
||||
|
||||
#NOP Pull out the GMCP message;
|
||||
#variable {character[status]} {%0};
|
||||
}
|
||||
|
||||
#NOP ****f* modules.gcmp.char/Event IAC SB GMCP char.maxstats
|
||||
#NOP NAME
|
||||
#NOP Event IAC SB GMCP char.maxstats -- Process character maxstats update
|
||||
#NOP SYNOPSIS
|
||||
#NOP Parse the update and update the character variable
|
||||
#NOP -
|
||||
#event {IAC SB GMCP char.maxstats IAC SE} {
|
||||
#NOP Format: char.maxstats { "maxhp": 50099, "maxmana": 50029, "maxmoves": 41629,;
|
||||
#NOP "maxstr": 51, "maxint": 134, "maxwis": 50, "maxdex": 183, "maxcon": 99,;
|
||||
#NOP "maxluck": 200 }
|
||||
|
||||
#NOP Pull out the GMCP message;
|
||||
#variable {character[maxstats]} {%0};
|
||||
}
|
||||
|
@ -0,0 +1,72 @@
|
||||
#NOP Create prompt area;
|
||||
#split {0} {3};
|
||||
|
||||
#NOP Configure where info bars are positioned
|
||||
#variable {infoLinePos} {-4};
|
||||
#variable {statsLinePos} {-3};
|
||||
#variable {enemyLinePos} {-2};
|
||||
#variable {promptUpdateInterval} {2};
|
||||
|
||||
#NOP ****f* modules.prompt/Ticker updateStats
|
||||
#NOP NAME
|
||||
#NOP Ticker updateStats
|
||||
#NOP SYNOPSIS
|
||||
#NOP Update the character stats line of the prompt (HP/MP/MV/TNL)
|
||||
#NOP -
|
||||
|
||||
#ticker {updateStats} {
|
||||
#local {formatString} {<099><118>HP:<018> %d/%d<098> | <148>MP:<048> %d/%d<098> |
|
||||
<128>MV:<028> %d/%d<098> | <168>TNL:<068> %+3s<098> | <138>Align:<038> %d};
|
||||
#format {statsLine} {$formatString} {$character[vitals][hp]}
|
||||
{$character[maxstats][maxhp]} {$character[vitals][mana]}
|
||||
{$character[maxstats][maxmana]} {$character[vitals][moves]}
|
||||
{$character[maxstats][maxmoves]} {$character[status][tnl]}
|
||||
{$character[status][align]};
|
||||
#showme {$statsLine} {$statsLinePos};
|
||||
} {$promptUpdateInterval};
|
||||
|
||||
#NOP ****f* modules.prompt/Ticker updateInfo
|
||||
#NOP NAME
|
||||
#NOP Ticker updateInfo
|
||||
#NOP SYNOPSIS
|
||||
#NOP Update the info line on the prompt for Quest information.
|
||||
#NOP -
|
||||
|
||||
#ticker {updateInfo} {
|
||||
#if {"$quest[wait]" != ""} {
|
||||
#format {questLine} {<099><188><g12>QUEST:<088> %s mins} {$quest[wait]<099>};
|
||||
};
|
||||
#if {"$quest[status]" == "ready"} {
|
||||
#format {questLine} {<099><168>QUEST: Ready<099>}
|
||||
};
|
||||
#if {"$quest[targ]" != ""} {
|
||||
#local {remaining} {$quest[timer]};
|
||||
#if {$remaining < 15} {
|
||||
#format {questLine} {<099><118>QUEST: %d mins<099>} {$remaining};
|
||||
}
|
||||
{
|
||||
#format {questLine} {<099><128>QUEST:<028> %d mins} {$remaining};
|
||||
}
|
||||
};
|
||||
#format {infoLine} {%s} {$questLine};
|
||||
#showme {$infoLine} {$infoLinePos};
|
||||
} {$promptUpdateInterval};
|
||||
|
||||
|
||||
#NOP ****f* modules.prompt/Ticker updateEnemy
|
||||
#NOP NAME
|
||||
#NOP Ticker updateEnemy
|
||||
#NOP SYNOPSIS
|
||||
#NOP Update the enemy line on the prompt with enemy stats.
|
||||
#NOP -
|
||||
|
||||
#ticker {updateEnemy} {
|
||||
#variable {enemyLine} {<099><g08>Not in combat.};
|
||||
#if {"$character[status][enemy]" != ""} {
|
||||
#local {formatString} {<099><118>FIGHTING:<018> %s (%d%%)<099>};
|
||||
#format {enemyLine} {$formatString} {$character[status][enemy]}
|
||||
{$character[status][enemypct]};
|
||||
};
|
||||
#showme {$enemyLine} {$enemyLinePos};
|
||||
|
||||
} {$promptUpdateInterval};
|
Loading…
Reference in new issue