|
TerrellKl Novice
Joined: 30 Aug 2005 Posts: 49
|
Posted: 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 |
|
|
|
Chael Beginner
Joined: 23 Jun 2003 Posts: 17
|
Posted: 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.
|
|
|
|
OmegaDeus Apprentice
Joined: 14 Sep 2005 Posts: 121
|
Posted: 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 |
|
|
|
TerrellKl Novice
Joined: 30 Aug 2005 Posts: 49
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
|
|