Signup Now
Results 1 to 9 of 9
  1. #1
    Free User
    Join Date
    Oct 2015
    Posts
    21
    Reputation
    10
    Rep Power
    0

    Lightbulb Ignore single monsters, target on if 4 monsters !

    Hello guys, im looking for a persist script to turn off target if have -4 monsters in screen, somebody can help me ?

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,414
    Reputation
    119
    Rep Power
    12
    Quote Originally Posted by maneljunior View Post
    Hello guys, im looking for a persist script to turn off target if have -4 monsters in screen, somebody can help me ?
    local monsters = {"monster name", "monster name 2"}
    local TargetingOff = true --check if true or false, off targeting is less than (numberMonstersOff)
    local TargetingOn = true --check if true or false, on targeting after if it is higher than (numberMonstersOn)
    local numberMonstersOff = 4 --check number monsters Off Targeting
    local numberMonstersOn = 5 -- check number monsters On Targeting

    auto(1000)

    if TargetingOff and maround(7,unpack(monsters)) <= numberMonstersOff then
    set('Targeting/Enabled', 'no')
    elseif TargetingOn and maround(7,unpack(monsters)) > numberMonstersOff then
    set('Targeting/Enabled', 'on')
    end


    Single action:

    local monsters = {"monster name", "monster name 2"}
    local numberMonstersOff = 4 --check number monsters Off Targeting

    auto(1000)

    if maround(7,unpack(monsters)) <= numberMonstersOff then
    set('Targeting/Enabled', 'no')
    else
    set('Targeting/Enabled', 'on')
    end


    If less than 4 monsters Off targeting, is greater than 4 On targeting.

  3. #3
    Free User
    Join Date
    Oct 2015
    Posts
    21
    Reputation
    10
    Rep Power
    0
    don't work... just disable target and dont turn on ...

  4. #4
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,414
    Reputation
    119
    Rep Power
    12
    Quote Originally Posted by maneljunior View Post
    don't work... just disable target and dont turn on ...

    First:

    local monsters = {"monster name", "monster name 2"}
    local TargetingOff = true --check if true or false, off targeting is less than (numberMonstersOff)
    local TargetingOn = true --check if true or false, on targeting after if it is higher than (numberMonstersOn)
    local numberMonstersOff = 4 --check number monsters Off Targeting
    local numberMonstersOn = 5 -- check number monsters On Targeting

    auto(1000)

    if TargetingOff and maround(7,unpack(monsters)) <= numberMonstersOff then
    set('Targeting/Enabled', 'no')
    elseif TargetingOn and maround(7,unpack(monsters)) > numberMonstersOn then --fixed
    set('Targeting/Enabled', 'on')
    end



    Second:

    local monsters = {"monster name", "monster name 2"}
    local numberMonstersOff = 4 --check number monsters Off Targeting

    auto(1000)

    if maround(7,unpack(monsters)) <= numberMonstersOff then --less monsters targeting off
    set('Targeting/Enabled', 'no')
    elseif maround(7,unpack(monsters)) > numberMonstersOff then --more monsters that numberMonstersOff
    set('Targeting/Enabled', 'on')
    end

  5. #5
    Free User
    Join Date
    Aug 2014
    Posts
    41
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Cisco View Post
    local monsters = {"monster name", "monster name 2"}
    local TargetingOff = true --check if true or false, off targeting is less than (numberMonstersOff)
    local TargetingOn = true --check if true or false, on targeting after if it is higher than (numberMonstersOn)
    local numberMonstersOff = 4 --check number monsters Off Targeting
    local numberMonstersOn = 5 -- check number monsters On Targeting

    auto(1000)

    if TargetingOff and maround(7,unpack(monsters)) <= numberMonstersOff then
    set('Targeting/Enabled', 'no')
    elseif TargetingOn and maround(7,unpack(monsters)) > numberMonstersOff then
    set('Targeting/Enabled', 'on')
    end


    Single action:

    local monsters = {"monster name", "monster name 2"}
    local numberMonstersOff = 4 --check number monsters Off Targeting

    auto(1000)

    if maround(7,unpack(monsters)) <= numberMonstersOff then
    set('Targeting/Enabled', 'no')
    else
    set('Targeting/Enabled', 'on')
    end


    If less than 4 monsters Off targeting, is greater than 4 On targeting.

    just change this:
    set('Targeting/Enabled', 'on')
    for this:
    set('Targeting/Enabled', 'yes')

  6. #6
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,414
    Reputation
    119
    Rep Power
    12
    Quote Originally Posted by Hinter View Post
    just change this:
    set('Targeting/Enabled', 'on')
    for this:
    set('Targeting/Enabled', 'yes')
    sleep+grippe+forum = nothing works

    I'm sorry for the mistake

  7. #7
    Free User
    Join Date
    Oct 2015
    Posts
    21
    Reputation
    10
    Rep Power
    0
    one problem left, the monsters i'm killing run with red hp ... so it stop atacks, how do i fix it ?

  8. #8
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,414
    Reputation
    119
    Rep Power
    12
    Bot > Targeting



    --Actions

    First:

    local monsters = {"monster name", "monster name 2"}
    local TargetingOff = true --check if true or false, off targeting is less than (numberMonstersOff)
    local TargetingOn = true --check if true or false, on targeting after if it is higher than (numberMonstersOn)
    local numberMonstersOff = 4 --check number monsters Off Targeting
    local numberMonstersOn = 5 -- check number monsters On Targeting
    local PercentageHP = 5 --percentage hp monsters

    auto(1000)

    if TargetingOff and maround(7,unpack(monsters)) <= numberMonstersOff and not $targetingtarget.hppc <= PercentageHP then
    set('Targeting/Enabled', 'no')
    elseif TargetingOn and maround(7,unpack(monsters)) > numberMonstersOn then --fixed
    set('Targeting/Enabled', 'on')
    end


    Second:

    local monsters = {"monster name", "monster name 2"}
    local numberMonstersOff = 4 --check number monsters Off Targeting
    local PercentageHP = 5 --percentage hp monsters

    auto(1000)

    if maround(7,unpack(monsters)) <= numberMonstersOff and not $targetingtarget.hppc <= PercentageHP then --less monsters targeting off
    set('Targeting/Enabled', 'no')
    elseif maround(7,unpack(monsters)) > numberMonstersOff then --more monsters that numberMonstersOff
    set('Targeting/Enabled', 'on')
    end


    From what I see, their intention is to Lure, right?

    If Lure advise you use the action --> https://forums.tibiawindbot.com/show...p?112245-Lurer

  9. #9
    Free User
    Join Date
    Apr 2018
    Posts
    7
    Reputation
    10
    Rep Power
    0
    What do u mean by First: and Second: ??

    Im using the lure script, and my char is always luring, targeting on and off like crazy and continuining luring. What am i doing wrong? Im using both scripts u wrote

 

 

Tags for this Thread

Posting Permissions

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