ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: unbelromano on May 03, 2022, 09:36:06 AM

Title: When attack monster - how to avoid attacking specific creatures
Post by: unbelromano on May 03, 2022, 09:36:06 AM
Hi all :)

i found a nice script:
Quote
repeat
gosub attack
repeat
  namespace copy TM_loot_in_progress from global TM_loot
until !TM_loot_in_progress <> #TRUE
until #false

sub attack
if #targCurs = 1 || #lLiftedKind = 1
  return
event macro 52 1
wait 10
event macro 53
wait 20
return

the problem is that  attack even energy vortex, reaper... there is a way to avoid attacking specific creatures?
tell me "yes"  :angel:

thx

Post Merge: May 04, 2022, 06:40:19 AM
someone can help me pls?
Title: Re: When attack monster - how to avoid attacking specific creatures
Post by: The Ghost on May 04, 2022, 05:40:24 PM
you can try to add a find rep so it ignor it.  You can remove the ID of that monster so it wont attack it.
Title: Re: When attack monster - how to avoid attacking specific creatures
Post by: unbelromano on May 06, 2022, 05:01:13 AM
you can try to add a find rep so it ignor it.  You can remove the ID of that monster so it wont attack it.

what you mean with "find rep"?
a find cicle? its slow... and i have to ignore the 1000000 creature on ground
the problem in the code above is that even if put the #LOBJECTTYPE = "energy vortex and reaper" it wont ignore it,
maybe becase its a monsters and not a object?

can you help me with a simple example?
thx  :-* 8)