AFK script

Scripts for wintin.

AFK script

Postby Zeizel » Wed Dec 08, 2004 8:38 pm

I know of at least one person who's asked for this, so here it is!

I'd like to point out very quickly that sometimes I MUD from my laptop. My laptop is quite a bit slower then my desktop, and I've noticed it having trouble just keeping up with WinTin. In an effort to reduce CPU load on my laptop, most of my scripts will install and uninstall triggers (or actions, as WinTin calls them) as needed. By minimizing the number of triggers WinTin is actively searching for, I hope to reduce lag as much as possible.

As for this particular script, simply type 'afk <reason>' to set your status as AFK, and type 'back' to return your status.

What this script does:

When first going AFK, you automatically notify your group that you will be afk, and tell them why. The script will also update your title to inform everyone that you are AFK.

While your status is AFK, any private tells to you will be replied to automatically, informing the person that you are AFK (and why). You will also automatically stretch out your arms every tick (assuming you have your tick counter running).

When returning from AFK, you will automatically inform your group of your new status. You will also change your title back to the title you were using before going afk.


To ensure this script runs as 'advertised,' you must have a variable called $charName which contains the name of your character (as it is displayed by the game). As stated above, you must have your tick counter running to benefit from the automatic stretching.

I hope everyone finds this useful!

[code:3oh7ns5y]#defgroup {AFK}
#alias {afk} {#var $afk %0;{gt AFK AFK AFK!!! Reason: $afk};{#action {%1 tells you '} {reply [AFK] $afk}};#action {#TICK!!} {stretch};#action {^$charName %0 (level: %1)} {#var $oldTitle %0;#unaction {charName}};score;{title [AFK] $afk}} {G|AFK}
#alias {back} {gt BACK BACK BACK!!!;#unaction {%1 tells you};#unvar {afk};#unaction {#TICK!!};title $oldTitle;#unvar {oldTitle}} {G|AFK}
#defgroup {}[/code:3oh7ns5y]
User avatar
Zeizel
 
Posts: 34
Joined: Sat Oct 09, 2004 10:28 pm
Location: Pittsburgh
Status: Offline


Return to WinTin Scripts

Who is online

Users browsing this forum: No registered users and 2 guests

cron