Results 1 to 2 of 2

Thread: Complex ignore monsters action~

  1. #1
    Normal User
    Join Date
    Mar 2012
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Complex ignore monsters action~

    Earlier I tried to figure out how the function "getcreatures" properly works but couldn't find it out.
    This is what I've managed to do so far.

    PHP Code:
    local mobs getcreatures("rat""spider")

    if (
    mobs.hppc <= 99)
    or 
    maround(7"rat","spider") >= 3
    or istrapped()
    then setsettings("Settings\\Targeting\\Enabled","yes")
    else 
    setsettings("Settings\\Targeting\\Enabled","no")
    end 
    I want it to run across the spawns if less than 3 monsters, trying to seek for more, else if more than 3 monsters then start attacking them but DON'T stop attacking if for example there's 2 monsters left to be killed in deep red.


    Thats it, hope I explained myself properly
    Sayow.

  2. #2
    Normal User nemiks's Avatar
    Join Date
    Aug 2012
    Posts
    225
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    17
    Rep Power
    5
    Try it

    PHP Code:
    local MonsterToTargeting = {"Dragon""Dragon Lord"}
    local MonsterToStartAttack 3

    if maround(10unpack(MonsterToTargeting)) >= MonsterToStartAttack then
    setsettings
    ("Settings\\Targeting\\Monsters\\Dragon\\ListSettings\\Setting0\\HpRange""0 to 100 %")
    setsettings("Settings\\Targeting\\Monsters\\Dragon Lord\\ListSettings\\Setting0\\HpRange""0 to 100 %")
    elseif  
    maround(10unpack(MonsterToTargeting)) < MonsterToStartAttack then
    setsettings
    ("Settings\\Targeting\\Monsters\\Dragon\\ListSettings\\Setting0\\HpRange""0 to 65 %")
    setsettings("Settings\\Targeting\\Monsters\\Dragon Lord\\ListSettings\\Setting0\\HpRange""0 to 65 %")
    end 
    if im help, rep me +

Posting Permissions

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