ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: manwinc on January 27, 2012, 06:34:07 PM

Title: A Better Method Than Key ESC
Post by: manwinc on January 27, 2012, 06:34:07 PM
So, While trying to improve a script, I came across something I learned a very long time ago, but obviously Forgot.

Anytime Your Perform a Key() Command in EUO, there is a wait timer included in the Command, something around 250 ms on my computer.

In My Script, I Will cancel a target Cursor by Doing Key ESC.

My new Method is to just

set #ltargetid N/A
Event macro 22 0

Which only takes about 20 ms. HUGE DIFFERENCE. It does give me a Target cannot be seen message though, which I guess might cause crashing. I'll post more as I play.
Title: Re: A Better Method Than Key ESC
Post by: Cerveza on January 28, 2012, 12:28:04 AM
Nice, to cancel a spell guys would cast something else, like Create Food, or something like Earthquake when you don't have that spell.
Title: Re: A Better Method Than Key ESC
Post by: manwinc on January 28, 2012, 07:33:40 AM
Oooo... Thats a good one too, I bet you could just cast a spell that doesn't even exist.
Title: Re: A Better Method Than Key ESC
Post by: jawetzel on March 31, 2012, 03:14:18 PM
set #targcurs 0
Title: Re: A Better Method Than Key ESC
Post by: manwinc on March 31, 2012, 07:59:35 PM
Oooo... Even better, although I seem to remember the use of setting #targcurs through euo being a big flag......