ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Grandewd on August 11, 2013, 03:15:15 PM

Title: Help with casting on mob pls...
Post by: Grandewd on August 11, 2013, 03:15:15 PM
Hi,

I'm trying to get my script to cast mind blast on a beetle. Here's what I have:

Code: [Select]
finditem ZGB G_5
IF #FINDKIND <> -1
set #ltargetid #findid
event macro 15 36
wait 15
event macro 22
halt

What am I doing wrong?
Title: Re: Help with casting on mob pls...
Post by: TrailMyx on August 11, 2013, 04:29:47 PM
You might want to be sure you have set #LTARGETKIND to 1, so:

Code: [Select]
finditem ZGB G_5
IF #FINDCNT > 0
{
  set #ltargetkind 1
  set #ltargetid #findid
  event macro 15 36
  wait 15
  event macro 22
}
halt

You can read more about that here:

http://wiki.easyuo.com/index.php?title=LTargetKind
Title: Re: Help with casting on mob pls...
Post by: Grandewd on August 11, 2013, 05:24:45 PM
You might want to be sure you have set #LTARGETKIND to 1, so:

Code: [Select]
finditem ZGB G_5
IF #FINDCNT > 0
{
  set #ltargetkind 1
  set #ltargetid #findid
  event macro 15 36
  wait 15
  event macro 22
}
halt

You can read more about that here:

http://wiki.easyuo.com/index.php?title=LTargetKind

Hi TM,

I copied/pasted yours, but it still just sits there with a target cursor and doesn't drop it on the beetle...
Title: Re: Help with casting on mob pls...
Post by: TrailMyx on August 11, 2013, 05:34:33 PM
Oh, I see what you are doing.  You need to tell EUO that you are waiting for a target, so switch the code to this:

Code: [Select]
finditem ZGB G_5
IF #FINDCNT > 0
{
  set #ltargetkind 1
  set #ltargetid #findid
  event macro 15 36
  target 5s
  event macro 22
}
halt
Title: Re: Help with casting on mob pls...
Post by: Grandewd on August 11, 2013, 05:48:39 PM
ahhhh... The 5s wait.... gheesh... I keep getting denser and denser the older I get...
Thx TM
 :-[