Signup Now
Results 1 to 2 of 2
  1. #1
    Free User
    Join Date
    Jan 2016
    Posts
    3
    Reputation
    10
    Rep Power
    0

    Question [REQUEST] Attack monster only if X sqm away

    I need to know if is there a script or targeting setting to make my paladin only attack monsters within 3 sqm from him, and stop attacking them if the monster leave the 3 sqm distance area.
    Thank you.

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by marceloatf View Post
    I need to know if is there a script or targeting setting to make my paladin only attack monsters within 3 sqm from him, and stop attacking them if the monster leave the 3 sqm distance area.
    Thank you.
    I thought that way ...

    --Attack 3 sqm
    auto(1000)
    if maround(3, 'monster 1', 'monster 2') >= 1 then
    setsetting('Targeting/Creatures/Category a/Setting1/MustAttackMe', 'no')
    else
    setsetting('Targeting/Creatures/Category a/Setting1/MustAttackMe', 'yes')
    end


    ---In this persistent all the animals you write that are in a radius of 3 sqm it will attack, otherwise only attack if the animals attack you ("Must attack me").

    If you want it to attack only 3 sqm radius you have to put only trapped ....

    --Attack 3 sqm
    auto(1000)
    if maround(3, 'monster 1', 'monster 2') >= 1 then
    setsetting('Targeting/Creatures/Category a/Setting1/OnlyIfTrapped', 'no')
    else
    setsetting('Targeting/Creatures/Category a/Setting1/OnlyIfTrapped', 'yes')
    end


    example of targeting...



    I'm not sure that will be fine. It was better than I thought at the time.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •