Author Topic: Help with casting on mob pls...  (Read 2252 times)

0 Members and 1 Guest are viewing this topic.

Offline GrandewdTopic starter

  • Full Member
  • ***
  • Posts: 239
  • Activity:
    0%
  • Reputation Power: 3
  • Grandewd has no influence.
  • Respect: +24
  • Referrals: 0
    • View Profile
Help with casting on mob pls...
« on: August 11, 2013, 03:15:15 PM »
0
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?

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Help with casting on mob pls...
« Reply #1 on: August 11, 2013, 04:29:47 PM »
0
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
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline GrandewdTopic starter

  • Full Member
  • ***
  • Posts: 239
  • Activity:
    0%
  • Reputation Power: 3
  • Grandewd has no influence.
  • Respect: +24
  • Referrals: 0
    • View Profile
Re: Help with casting on mob pls...
« Reply #2 on: August 11, 2013, 05:24:45 PM »
0
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...

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Help with casting on mob pls...
« Reply #3 on: August 11, 2013, 05:34:33 PM »
0
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
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline GrandewdTopic starter

  • Full Member
  • ***
  • Posts: 239
  • Activity:
    0%
  • Reputation Power: 3
  • Grandewd has no influence.
  • Respect: +24
  • Referrals: 0
    • View Profile
Re: Help with casting on mob pls...
« Reply #4 on: August 11, 2013, 05:48:39 PM »
0
ahhhh... The 5s wait.... gheesh... I keep getting denser and denser the older I get...
Thx TM
 :-[

Tags: