ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started 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:
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?
-
You might want to be sure you have set #LTARGETKIND to 1, so:
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
-
You might want to be sure you have set #LTARGETKIND to 1, so:
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...
-
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:
finditem ZGB G_5
IF #FINDCNT > 0
{
set #ltargetkind 1
set #ltargetid #findid
event macro 15 36
target 5s
event macro 22
}
halt
-
ahhhh... The 5s wait.... gheesh... I keep getting denser and denser the older I get...
Thx TM
:-[