Results 1 to 3 of 3

Thread: Action for lure monsters

  1. #1
    iBot User
    Join Date
    Apr 2014
    Posts
    30
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    27 Post(s)
    Reputation
    11
    Rep Power
    3

    Lightbulb Action for lure monsters

    Hi, i want a action that makes my character attack the monster only after have 3, 4 or 5 on screen.
    For example, when it see one monster on screen it attacks, so it wastes a lot of time, because it kill just one or two monsters per time.
    I want it to ignore and go, and kill after have more monsters in screen.
    It's possible?
    It's for a knight.
    Also i want it to ignore weak monsters and only consider the strong ones.
    If someone can help me i will be thankfull.
    Thanks.

  2. #2
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    @Rasen Shuriken

    Lua Code:
    local MonstersToConsider = {'Dragon', 'Dragon Lord', 'Rat', 'Orshabaal', 'Daemon'}
    local AmountToTarget = 4
     
    for i=1,#MonstersToConsider do
    if maround(6, unpack(MonstersToConsider)) >= AmountToTarget then
        setsettings('Settings\\Targeting\\Monsters\\'.. MonstersToConsider[i] ..'\\OnlyIfTrapped','no')
    else
        setsettings('Settings\\Targeting\\Monsters\\'.. MonstersToConsider[i] ..'\\OnlyIfTrapped','yes')
    end
    end

  3. #3
    iBot User
    Join Date
    Apr 2014
    Posts
    30
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    27 Post(s)
    Reputation
    11
    Rep Power
    3
    Quote Originally Posted by Drakke View Post
    @Rasen Shuriken

    Lua Code:
    local MonstersToConsider = {'Dragon', 'Dragon Lord', 'Rat', 'Orshabaal', 'Daemon'}
    local AmountToTarget = 4
     
    for i=1,#MonstersToConsider do
    if maround(6, unpack(MonstersToConsider)) >= AmountToTarget then
        setsettings('Settings\\Targeting\\Monsters\\'.. MonstersToConsider[i] ..'\\OnlyIfTrapped','no')
    else
        setsettings('Settings\\Targeting\\Monsters\\'.. MonstersToConsider[i] ..'\\OnlyIfTrapped','yes')
    end
    end
    Thanks!
    I will test it later

Posting Permissions

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