ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: craigtothed on February 05, 2010, 04:15:05 PM

Title: looking for corpse timeout
Post by: craigtothed on February 05, 2010, 04:15:05 PM
Im adding a timeout for walking to a corpse in case it gets hung up on something but it seems to be sticking in the while loop. Any Ideas?

Code: [Select]
set %timeout #scnt + 5
    while #conttype <> yfm || %timeout <= #scnt
        event pathfind #findx #findy #findz
     

Thanks a bunch!
Title: Re: looking for corpse timeout
Post by: Scrripty on February 05, 2010, 04:22:33 PM
While timeout is >= #scnt....?  :)  And I've never used the event pathfind, so I don't know how it works...what if you're greater than the pathfind distance away?
Title: Re: looking for corpse timeout
Post by: craigtothed on February 05, 2010, 04:52:35 PM
thanks! I'm not very logical  ;D  *dope slap* The event pathfind seems to work very well as long as I dont tell it to go too far and nothings in the way.
Title: Re: looking for corpse timeout
Post by: NObama on April 11, 2010, 12:00:37 PM
thanks! I'm not very logical  ;D  *dope slap* The event pathfind seems to work very well as long as I dont tell it to go too far and nothings in the way.

Amen.  This is why I love Endless Night and his rail subs.