Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Stopping the AFK Slump?

Cyrus Odets
Registered User
Join date: 5 Oct 2005
Posts: 51
10-16-2005 14:30
Hello all,

Being pretty new to scripting, this question I have is far beyond my ability, but I was hoping that maybe someone here could tell me if the following is possible.

Currently, I play the game full-screen. If I ALT-TAB to desktop, my avatar in game stops whatever he was doing and 'slumps over' in the slumped over AFK animation.

I'd like my avatar to be able to keep on doing what he was doing and NOT do that AFK slump over thing everytime I tab to desktop.

For example, if my avatar is doing a dance animation, or activating a dance animation with another avatar via a dance pose-ball....I'd like to be able to ALT-TAB to my desktop and look something up on the web or in Windows....without having my avatar stop everything and slump over.

Is this something I can handle in a script?

Thanks!
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
10-17-2005 02:47
I think the animation played when you're AFK is called "away". You'd just need an animation overrider to cancel it out when it is detected ;)
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Cyrus Odets
Registered User
Join date: 5 Oct 2005
Posts: 51
10-17-2005 08:06
Oh that would be great! Thankyou!

I'm willing to give that a shot. By chance...can you tell me where I can get an animation override to cancel that out...or perpaps where I can get instructions/tips/samples on building one myself?

Thanks!
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
10-17-2005 08:14
Simplest way might be to simply stop the "away" animation continually :o

Goes in an attachment:
CODE

default
{
state_entry() { llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); }

run_time_permissions(integer p)
{
if (p) llSetTimerEvent(0.1);
}

timer() { llStopAnimation("away"); }
}
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Psyra Extraordinaire
Corra Nacunda Chieftain
Join date: 24 Jul 2004
Posts: 1,533
10-17-2005 08:41
Ooooh! Oooh! Oooooh! JesradJesradJesradJesradJesradJesradJesradJesradJesradJesradJesradJesradJesradJesrad!!

^_^

Will this script work for stopping typing anims? And what would we replace "away" with, if we can do so? :D
_____________________
E-Mail Psyra at psyralbakor_at_yahoo_dot_com, Visit my Webpage at www.psyra.ca :)

Visit me in-world at the Avaria sims, in Grendel's Children! ^^
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
10-17-2005 09:13
Replace it with "type", hopefully this will work ^_^
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Cyrus Odets
Registered User
Join date: 5 Oct 2005
Posts: 51
10-17-2005 10:30
Thankyou Jesrad!!!!!!!!!!!!!!!!!!

and special thanks for the code snippet....for a newbie like me....that is infinitely helpful :) I think I'll borrow Psyra's idea and stop that blasted typing animation as well as the 'away' animation.

Thankyou SOOOO much!
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
10-17-2005 13:18
Tested, it works ^_^

[Edit]
It might need a on_rez(integer p) { llResetScript(); } line added to it for when you TP, though. Or maybe not :)
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Psyra Extraordinaire
Corra Nacunda Chieftain
Join date: 24 Jul 2004
Posts: 1,533
10-20-2005 11:44
Yep, stopped the typing anim too.
You should wiki this. :>
_____________________
E-Mail Psyra at psyralbakor_at_yahoo_dot_com, Visit my Webpage at www.psyra.ca :)

Visit me in-world at the Avaria sims, in Grendel's Children! ^^
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-20-2005 11:49
It's not the best solution but it works the best considering LL hasn't given us a better way.

A better solution would be for LL to give an animated event.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
10-20-2005 15:22
Or simply a way to remap animations :)
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.