Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
TerrellKl
Novice


Joined: 30 Aug 2005
Posts: 49

PostPosted: Thu Oct 13, 2005 11:55 pm   

Automatically Afk
 
After 30 minutes of no commands enter i want it to send Afk to the mud, when i type in a command i want it to send Afk back to the mud. Is there any way to do this?

I tried searching but too many threads were found couldn't search them all.

Thanks
Reply with quote
Chael
Beginner


Joined: 23 Jun 2003
Posts: 17

PostPosted: Fri Oct 14, 2005 3:10 am   
 
look up oninput timer sub and wildcards in your help files. all the info you need should be there make 2 trigers one for going afk that turns the 2nd on its self off and one for comming out of afk that turns the first on one and it's self off. There is likely a better way to do this than I am thinking of and I would give you more detail but I have to go.
Reply with quote
OmegaDeus
Apprentice


Joined: 14 Sep 2005
Posts: 121

PostPosted: Fri Oct 14, 2005 6:29 am   
 
I'm thinking an alarm and a command input trigger would do the trick.

Code:
#CLASS {idle}
#VAR afk {0} {}
#VAR alarm {}
#ALARM "idle" {idle} {#if (@afk = 0) {
    afk
    afk = 1
    } {#noop}} "" {param=1800000|nocr|notrig}
#ONINPUT {(*)} {
  #if (@afk = 1) {
    afk
    afk=0
    } {#noop}
  #var alarm %alarm( "idle", 1800000)
  } "" {notrig}
#CLASS 0


According to the %alarm in the zMUD help files, that second will reset the alarm to 30 mins every time you type something. At least that's if I'm reading it right.

[Edit]At the moment this is the best I can do, I believe I've worked out all the issues with it, please let me know if this doesn't work.
_________________


Look at me I've got zSKILLS
Reply with quote
TerrellKl
Novice


Joined: 30 Aug 2005
Posts: 49

PostPosted: Sat Oct 15, 2005 3:03 pm   
 
Problems..

that whole Oninput crap, will not help me a lick
Cuz I am a very popular bot on my mud, i have triggers to automatically spellup people when they ask, this fires the Oninput crap. Thus it will not help me at all.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Oct 15, 2005 4:44 pm   
 
Why not just build your own monitor? Using an alias and a variable, you can track whether you are afk pretty easily. A popular bot like yourself should know already how to do this.
_________________
EDIT: I didn't like my old signature
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Oct 15, 2005 7:33 pm   
 
Turn off the Trigger on Trigger option for those botting triggers. Then the #ONINPUT will not be fired by them.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net