Author Topic: When attack monster - how to avoid attacking specific creatures  (Read 2184 times)

0 Members and 1 Guest are viewing this topic.

Offline unbelromanoTopic starter

  • Newbie
  • *
  • Posts: 8
  • Activity:
    0%
  • Reputation Power: 1
  • unbelromano has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
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?
« Last Edit: May 04, 2022, 06:40:19 AM by unbelromano »

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: When attack monster - how to avoid attacking specific creatures
« Reply #1 on: May 04, 2022, 05:40:24 PM »
0
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.

Offline unbelromanoTopic starter

  • Newbie
  • *
  • Posts: 8
  • Activity:
    0%
  • Reputation Power: 1
  • unbelromano has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: When attack monster - how to avoid attacking specific creatures
« Reply #2 on: May 06, 2022, 05:01:13 AM »
0
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)

Tags: