XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 4 of 4

Thread: Targeting on if more than 2 monsters

  1. #1

    Join Date
    Apr 2020
    Posts
    3
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Targeting on if more than 2 monsters

    Hello.

    I need script to set "targeting on" if character see 2 or more monsters.

    If he see less than 2 monsters then targeting is off and character stop attack single monster.

    Thank you for help.
    Last edited by szymonki; 04-08-2020 at 08:16 AM.

  2. #2

    Join Date
    Apr 2020
    Posts
    3
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Bump.

    Still need this script!

  3. #3

    Join Date
    Jun 2020
    Posts
    4
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Msg me on Discord Storm#3657

  4. #4

    Join Date
    Aug 2020
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @szymonki and @garenja,

    can you share with your script?
    lua code:
    local MonsterList = {"Dragon"}
    local MonsterCount = 2
    local MonsterRange = 8

    Module.New("TargetingOnOFF", function(module)
    local mob = Self.GetTargets(MonsterRange)
    local mobCount = 0
    for i = 1, #mob do
    if table.contains(MonsterList, mob[i]:Name()) then
    mobCount = mobCount + 1
    end
    end
    if (mobCount >= MonsterCount) then
    Targeting.StopIgnoring() else
    Targeting.StartIgnoring()
    end
    module:Delay(2000, 3000)
    end)


    I use now this one but it's doesn't work perfect because when I have one mob on yellow HP, bot ignore him and run away.
    Any ideas? Thanks in advance.

Posting Permissions

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