ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Fabolous1 on February 23, 2020, 10:44:47 AM

Title: Easiest way to implement Anti AFK
Post by: Fabolous1 on February 23, 2020, 10:44:47 AM
Hey,

I was wondering what the easiest/most efficient way of implement anti-AFK in a script is?

I have some simple scripts that just train parrying on sheep and wanted to make it so it doesn't idle out after agroing them.

Thanks
Title: Re: Easiest way to implement Anti AFK
Post by: The Ghost on February 23, 2020, 10:51:06 AM
If you want to be fancy, EN's have an Anti Idle Subs.  Not sure where I found them in the pass

But I use this in my main loop
Quote
if #sCnt > %timer + 300
  {
     event Macro 19 0 ;   Salute
    set %timer #sCnt
  }
Title: Re: Easiest way to implement Anti AFK
Post by: Fabolous1 on February 23, 2020, 10:58:24 AM
Great, ty!
Title: Re: Easiest way to implement Anti AFK
Post by: Endless Night on February 26, 2020, 01:39:31 PM
If you want to be fancy, EN's have an Anti Idle Subs.  Not sure where I found them in the pass


http://www.scriptuo.com/index.php?topic=2454.msg51906#msg51906