Talk:Tintin++ Auto Leveling Gear Swapper
i've got in-game aliases already on all my alts (lvlon & lvloff), so i changed it to do that. also modified the prompt line to: #action {^%1tnl$} {
but i can't seem to get it to work.. also, about putting "aon" after the #read line, is it just "aon" or something else with that?
here's what i've got:
#variable autolvl 0; #variable treshold 250; #variable shouldbeon 0; #variable gearon 0; #alias {aon}{#showme Starting auto-lvl/gear tracker;#var autolvl 1;#var gearon 0;equipment;}; #alias {aoff}{#showme Disabling auto-lvl/gear tracker;#var autolvl 0;}; #nop Determining status - is the gearon or off and what's the state of the tnl; #action {^<worn about body> %1 the mantle of the master archivist$}{ #if {"$autolvl" == "1"}{#showme Leveling gear located;#var gearon 1;}; }; #nop Tracking TNL / initiating swaps; #action {^%1tnl$} { #if {"$autolvl" == "1"}{ #var currenttnl %1; #if {$currenttnl < $treshold} {#var shouldbeon 1;}; #else {#var shouldbeon 0;}; #if {("$shouldbeon" == "1") && ("$gearon" == "0")}{ #showme Treshold reached! Wearing lvl gear.; lvlon; #var gearon 1; }; }; }; #action {^Your powers increase!!!$}{ #if {"$autolvl" == "1"}{ #nop Need to wear standard gear.; lvloff; #var shouldbeon 0; #var gearon 0; }; };
thanks for any advice!
update: the remove part works, but not the wearing --3nki 09:35, 23 December 2011 (CST)
another update: i changed the line where it selects to change into lvl gear to this:
#action {%s+%1tnl%s+} {
since my prompt looks like this:
< 1573/1940hp 2725/2725m 1977/1977Mv 619tnl 100%>
but still no luck--3nki 10:00, 23 December 2011 (CST)
- Perhaps it doesn't match properly?
- Do the following:
#action {%s+%1tnl%s+} {#showme %1;};
- to see if it matches. if not:
#action {%1 %2tnl} {#showme %2;};
- where %1 s the dump variable and %2 your actual tnl to be transferred to variable via:
#var currenttnl %2;
- command.
- If all fails use '#debug action' and '#debug alias' commands.
- As for autoloading, i have it set like this:
File is called flutterwing.char, and that's what I load with tt++ flutterwing.char command:
#var player FlutterWing #var password mypassword #read common/keepalive.tin #read common/affects.tin #read common/aliases.tin #read common/killtrigger.tin #read common/runcounter.tin #read common/autorescue.tin #read common/autofletch.tin #read flutterwing/autolvl.tin #read flutterwing/aliases.tin #session Flutterwing avatar.outland.org 3000 $player $password #split idleron #action {[BUDDY INFO]: FlutterWing has logged in.}{aon;};
The idleron command will start the anti-idler script, and once everything has loaded i send the aon command.
-- WinterRose 12:33, 23 December 2011 (CST)
ok, this is what got it working:
#action {^%1Mv %2tnl} {
and had to change the line a couple down for var current to %2. many thanks!--3nki 13:46, 23 December 2011 (CST)