AFK Trigger

Scripts and support for your favorite MUD client.
Jenera
Sojourner
Posts: 533
Joined: Sun Jan 28, 2001 6:01 am
Location: Warsaw, Indiana
Contact:

AFK Trigger

Postby Jenera » Thu Oct 27, 2005 8:54 pm

Ok, my old afk trigger fubar'd with the new zmud and I need a new one.
My old one captured tells in another window and responded with an answering machine. I want to improve upon this.

Can someone tell me how to make my afk trigger be turned off and on with an alias, like afkon/afkoff
Let it capture tells and ACC in the same window and have the tells tell me what time I received them
Allow me to respond to tells only with a message

I'd really appreciate it
Memorable Quotes from TorilMUD Gathering 2006

Sotana sez, 'I'll take it dirty.'
Teflor sez, 'Bobo, show me on the doll where the barbarian touched you.'
Duna sez, 'Is there anything else that needs to go in my backend?'
Pril sez, 'I'm too pretty to go to jail.'
Boboloppe sez, 'The only reason I joined Imphras was because of Sotana's ass.'
Pril
Sojourner
Posts: 1834
Joined: Sat May 11, 2002 5:01 am

Postby Pril » Thu Oct 27, 2005 9:07 pm

Not sure on the time stamp but this will do everything else:

#class {afk}
#alias {afkon} {#T+ afk}
#alias {afkoff} {#T- afk}
#trigger {%1 tells you} {#capture afk;tell %1 Sorry I'm AFK right now I'll be back later}
#Trigger {%1 ASSOC} {#captrue afk}
#class 0
Hsoj
Sojourner
Posts: 296
Joined: Fri Aug 19, 2005 4:59 pm
Location: Not close enough to stalk... Latitude 45°30'30" Longitude -121°50'30"
Contact:

Postby Hsoj » Thu Oct 27, 2005 9:09 pm

oOo mine has your time stamp thingy and doesn't have typos, do i win the prize?!

#trig {(%d) tells you} {#cap talk;#win talk %time(h a/p:m:s);tell %1 Sorry but I'm AFK!} afk
#trig {ASSOC:} {#cap talk} afk
#al afkon {#t+ afk}
#al afkoff {#t- afk}

any explanation needed?
-==~ Tafah Auvry'ar'lyl | Fatah Fire Bath ~==-
Pril
Sojourner
Posts: 1834
Joined: Sat May 11, 2002 5:01 am

Postby Pril » Thu Oct 27, 2005 9:48 pm

Hsoj wrote:oOo mine has your time stamp thingy and doesn't have typos, do i win the prize?!



Bah i'm at work leave me alone :P
Hsoj
Sojourner
Posts: 296
Joined: Fri Aug 19, 2005 4:59 pm
Location: Not close enough to stalk... Latitude 45°30'30" Longitude -121°50'30"
Contact:

Postby Hsoj » Thu Oct 27, 2005 9:50 pm

Ditto pril, i had to visit zuggsoft.com to get the parameters for it though
-==~ Tafah Auvry'ar'lyl | Fatah Fire Bath ~==-
Jenera
Sojourner
Posts: 533
Joined: Sun Jan 28, 2001 6:01 am
Location: Warsaw, Indiana
Contact:

Postby Jenera » Thu Oct 27, 2005 9:55 pm

how do I put them into a class?
Memorable Quotes from TorilMUD Gathering 2006



Sotana sez, 'I'll take it dirty.'

Teflor sez, 'Bobo, show me on the doll where the barbarian touched you.'

Duna sez, 'Is there anything else that needs to go in my backend?'

Pril sez, 'I'm too pretty to go to jail.'

Boboloppe sez, 'The only reason I joined Imphras was because of Sotana's ass.'
Pril
Sojourner
Posts: 1834
Joined: Sat May 11, 2002 5:01 am

Postby Pril » Thu Oct 27, 2005 10:01 pm

I WIN!

#class {afk}
#trig {(%d) tells you} {#cap talk;#win talk %time(h a/p:m:s);tell %1 Sorry but I'm AFK!}
#trig {ASSOC:} {#cap talk}
#al afkon {#t+ afk}
#al afkoff {#t- afk}
#class 0
Jenera
Sojourner
Posts: 533
Joined: Sun Jan 28, 2001 6:01 am
Location: Warsaw, Indiana
Contact:

Postby Jenera » Thu Oct 27, 2005 10:03 pm

Thank you very much, to both of you. :)
I've already promised Pril plenty of crab rangoon and chocolate chip cookies.
Come to the gathering next summer and I'll cook stuff for you too, Hsoj :)
Memorable Quotes from TorilMUD Gathering 2006



Sotana sez, 'I'll take it dirty.'

Teflor sez, 'Bobo, show me on the doll where the barbarian touched you.'

Duna sez, 'Is there anything else that needs to go in my backend?'

Pril sez, 'I'm too pretty to go to jail.'

Boboloppe sez, 'The only reason I joined Imphras was because of Sotana's ass.'
Hsoj
Sojourner
Posts: 296
Joined: Fri Aug 19, 2005 4:59 pm
Location: Not close enough to stalk... Latitude 45°30'30" Longitude -121°50'30"
Contact:

Postby Hsoj » Thu Oct 27, 2005 10:12 pm

mine were in a class

#trig {input} {output} class
-==~ Tafah Auvry'ar'lyl | Fatah Fire Bath ~==-
Jenera
Sojourner
Posts: 533
Joined: Sun Jan 28, 2001 6:01 am
Location: Warsaw, Indiana
Contact:

Postby Jenera » Thu Oct 27, 2005 10:20 pm

I had to fix a couple of things, for some reason it wouldn't work fully, but now it does :)
Memorable Quotes from TorilMUD Gathering 2006



Sotana sez, 'I'll take it dirty.'

Teflor sez, 'Bobo, show me on the doll where the barbarian touched you.'

Duna sez, 'Is there anything else that needs to go in my backend?'

Pril sez, 'I'm too pretty to go to jail.'

Boboloppe sez, 'The only reason I joined Imphras was because of Sotana's ass.'
Hsoj
Sojourner
Posts: 296
Joined: Fri Aug 19, 2005 4:59 pm
Location: Not close enough to stalk... Latitude 45°30'30" Longitude -121°50'30"
Contact:

Postby Hsoj » Thu Oct 27, 2005 10:31 pm

the #window part? never used that before hehe...

not a bad idea putting a timestamp on tells though, i had started to use the command to find the average actual memtime vs stated memtime
-==~ Tafah Auvry'ar'lyl | Fatah Fire Bath ~==-
sotana
Sojourner
Posts: 229
Joined: Wed Mar 31, 2004 8:11 am

Postby sotana » Thu Oct 27, 2005 10:46 pm

If you're like me and hate the tell spam in your main window for stuff that you're capturing in another window anyway, just throw #GAG into the value of the trigger. That will gag it in your main window but not your capture window. Heck I even have a sound trig that plays when I get a tell so I don't miss it if I happen to be in another window. Just ask anyone who has ever skyp'ed with me how much fun it is to set off my sound trigs *mutter*
Jenera
Sojourner
Posts: 533
Joined: Sun Jan 28, 2001 6:01 am
Location: Warsaw, Indiana
Contact:

Postby Jenera » Thu Oct 27, 2005 11:14 pm

Augh, Zmud is driving me nuts!

#CLASS {AFK}
#TRIGGER {^(%w) tells you '*'} {
#cap Tells
#win Tells ~<color white>%time~</color>
tell %1 You have reached the Goldenheart residence. I am not here right to answer your tell, but leave a message and I will get back to you as soon as possible. Your tell has been logged at %time.
}
#TRIGGER {ASSOC:} {#cap ACC}
#CLASS 0

That's what I use.
Strangely, it works for my elementalist's settings when I import it. But it won't work for my invoker or druid, keeps saying there are syntax errors. I don't understand it, can someone explain this to me?
Memorable Quotes from TorilMUD Gathering 2006



Sotana sez, 'I'll take it dirty.'

Teflor sez, 'Bobo, show me on the doll where the barbarian touched you.'

Duna sez, 'Is there anything else that needs to go in my backend?'

Pril sez, 'I'm too pretty to go to jail.'

Boboloppe sez, 'The only reason I joined Imphras was because of Sotana's ass.'
Yasden
Sojourner
Posts: 1597
Joined: Sat Feb 03, 2001 6:01 am
Location: Lake Stevens, WA, USA

Postby Yasden » Thu Oct 27, 2005 11:16 pm

If it works fine, ignore the syntax errors....zMUD sometimes spouts idiocies like that despite the fact the script works perfectly fine.
Support Your Addiction! Vote for TorilMUD Today!

Top Mud Sites: http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=shev

Why Nerox is jealous of me:

Nerox tells you 'man this thing is kicking my ass and i have blisters!'
Nerox tells you 'ok attempting it again put tape on my fingers for easier sliding'
Jenera
Sojourner
Posts: 533
Joined: Sun Jan 28, 2001 6:01 am
Location: Warsaw, Indiana
Contact:

Postby Jenera » Thu Oct 27, 2005 11:29 pm

Works fine for my druid's settings and my elementalist's settings, but not for my invoker's settings. I just tested it and a whole bunch of jibber jabber comes up when the set is executed, which doesn't happen to my other two. I'm confused.
Memorable Quotes from TorilMUD Gathering 2006



Sotana sez, 'I'll take it dirty.'

Teflor sez, 'Bobo, show me on the doll where the barbarian touched you.'

Duna sez, 'Is there anything else that needs to go in my backend?'

Pril sez, 'I'm too pretty to go to jail.'

Boboloppe sez, 'The only reason I joined Imphras was because of Sotana's ass.'
Jenera
Sojourner
Posts: 533
Joined: Sun Jan 28, 2001 6:01 am
Location: Warsaw, Indiana
Contact:

Postby Jenera » Thu Oct 27, 2005 11:37 pm

Figured it out, I feel rather stupid
Seems I had the special characters disabled
Memorable Quotes from TorilMUD Gathering 2006



Sotana sez, 'I'll take it dirty.'

Teflor sez, 'Bobo, show me on the doll where the barbarian touched you.'

Duna sez, 'Is there anything else that needs to go in my backend?'

Pril sez, 'I'm too pretty to go to jail.'

Boboloppe sez, 'The only reason I joined Imphras was because of Sotana's ass.'
Sarell
Sojourner
Posts: 1681
Joined: Mon Jan 29, 2001 6:01 am
Location: brisbane, australia

Postby Sarell » Mon Oct 31, 2005 6:34 am

This one completely blows away any that have been posted.

#alias afk {u;rent;0}
Arishae group-says 'mah sunray brings all the boys to the yard'
Shadow Scream
Ionari
Sojourner
Posts: 101
Joined: Sat Mar 17, 2001 6:01 am
Location: Portland OR

Postby Ionari » Sat Dec 10, 2005 10:43 am

Sarell wrote:This one completely blows away any that have been posted.

#alias afk {u;rent;0}


LMAO!
Io

Olit tells you '2000hrs on each of your 5 corpses'
Dugmaren responds to your petition with 'It'd be less spammy if you just deleted again.'
Lilithelle says 'to divine most peoples fates you need to read palms or tea leaves, but in ionari's you just read the corpses'
Alurissi tells you 'no, you're not safe, you're a suicide machine'
Gizep
Sojourner
Posts: 150
Joined: Thu Mar 10, 2005 4:34 pm
Location: Menzoberranzan
Contact:

Postby Gizep » Sat Dec 10, 2005 7:02 pm

#ALIAS transform {#if (!@bot) {#VAR bot %comcreate( "bot.WSC")}
#COM @bot.transform(%-1)
#var botmsg %comget( @bot, LastOutput)}

#CLASS {bot}
#TRIGGER {^{&Dude} tells you '(*)'} {transform %2;tell @dude botmsg}
#CLASS 0

Gotta have perl with eliza and follow teh instructions here:

http://forums.zuggsoft.com/phpbb/viewto ... ight=eliza
As long as we live in this world we are bound to encounter problems. If, at such times, we lose hope and become discouraged, we diminish our ability to face difficulties. If, on the other hand, we remember that it is not just ourselves but everyone who has to undergo suffering, this more realistic perspective will increase our determination and capacity to overcome troubles.
-- The Dali Lama
Alilsil
Sojourner
Posts: 29
Joined: Thu Jul 04, 2002 5:01 am
Location: Oslo

Postby Alilsil » Tue Dec 13, 2005 12:27 am

alilsil afk triggs:p

Code: Select all

#CLASS {afk} {disable}
#ALIAS setafkmsg {#prompt afkmsg {afk msg:};#if (%yesno( "Do you want to put in return time?")) {#prompt afkfor afktime;backafk = 1} {backafk = 0};afkfors = 0;#math afkfors (@afkfor * 60)}
#ALIAS timestat {#math been1 (@beenafk/60);#math afkfer (@afkfors/60);#say You been afk for: @beenafk_hr hr @been1 min;#say Your comeback is estimated in: @afkfer min}
#VAR afkteller {}
#VAR afklist {0} {0}
#VAR afkmsg {Im afk, but i have logged your tell:)} {Im afk, but i have logged your tell:)}
#TRIGGER {^(%w) tells you*} {#math been1 (@beenafk/60);#math afkfer (@afkfors/60);#if (@afkteller != %1) {tell %1 @afkmsg %if( @backafk = 1, afk for @afkfer min)|I have been afk fer @beenafk_hr hr and @been1 min, My time: %time( hh:mm a/p"m")};@afkteller = %1;#VAR afklist %additem( %proper( %1), @afklist);tog afk}
#TRIGGER {TICK IN 5 SECONDS.} {sc;#ad tscount 1;#if { @beenafk = 3510} {@beenafk = 0;#ad beenafk_hr 1} {#ad beenafk 90};#ad afkfors -90}
#CLASS 0

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 15 guests