XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 3 of 3

Thread: Slime Trainer

  1. #1

    Join Date
    Feb 2016
    Posts
    6
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Slime Trainer

    So Im a new xenobot user and I have found a very usefull script for hunting slimes, but I was wondering is there any way to Add in alternate creatures? I keep getting interrupted from Skeletons and Rots.... Can someone point me in the right direction. Here is the script. (I am not taking any credit)
    Attached Images Attached Images
    Last edited by mynigga; 02-25-2016 at 12:43 AM.

  2. #2

    Join Date
    Feb 2016
    Posts
    6
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Code:
    -- ╔═╗┬  ┬┌┬┐┌─┐  ╔╦╗┬─┐┌─┐┬┌┐┌┌─┐┬─┐
    -- ╚═╗│  ││││├┤    ║ ├┬┘├─┤││││├┤ ├┬┘
    -- ╚═╝┴─┘┴┴ ┴└─┘   ╩ ┴└─┴ ┴┴┘└┘└─┘┴└─
    -- ╔╗ ┬ ┬  ╔═╗┌─┐┬ ┬┬  ┬ ┬┌─┐┬─┐┌─┐  
    -- ╠╩╗└┬┘  ╠╣ │ ││ ││  │││├┤ ├┬┘├─┘  
    -- ╚═╝ ┴   ╚  └─┘└─┘┴─┘└┴┘└─┘┴└─┴  
      
    -- Attacks Mother Slime till under a certain HP, then continues to attack summoned ones
    -- Set MotherHP to the health percent you want to stop attacking the Mother Slime
      
    MotherHP = 50
      
    Module.New("Slime Trainer", function(Module)
        if Self.TargetID() == 0 then
            local Slimes = Self.GetTargets(1)
            for i = 1, #Slimes do
                if Slimes[i]:Name() == 'Slime' then
                    if (Slimes[i]:isMother() and Slimes[i]:HealthPercent() > MotherHP) or not Slimes[i]:isMother() then
                        Slimes[i]:Attack()
                        break
                    end
                end
            end
        end
        local Slime = Creature.New(Self.TargetID())
        if Slime:isMother() and Slime:HealthPercent() <= MotherHP then
            Self.StopAttack()
        end
        Module:Delay(2000)
    end)
    Last edited by mynigga; 02-25-2016 at 12:42 AM.

  3. #3
    King Furpan Furpan's Avatar
    Join Date
    Jul 2012
    Location
    Thais
    Posts
    984
    Mentioned
    267 Post(s)
    Tagged
    3 Thread(s)
    @mynigga

    Hi, wrote this real quick for you, let me know if it works out for you. It will kill any trash mobs and ignore the mother slime, updating after the current target is not available anymore (dead).

    lua code:
    local trash = {
    ['Rat'] = true,
    ['Cave Rat'] = true
    }

    Module.New('Slimer', function(mod)
    if Self.TargetID() == 0 then
    local creatures = Self.GetTargets(1)
    for i = 1, #creatures do
    local c = creatures[i]
    local name = c:Name()
    if trash[name] then
    c:Attack()
    break
    elseif name == 'Slime' then
    if not c:isMother() then
    c:Attack()
    break
    end
    end
    end
    end
    mod:Delay(5000)
    end)

Posting Permissions

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