Signup Now
Results 1 to 8 of 8
  1. #1
    Free User
    Join Date
    Jan 2014
    Posts
    15
    Reputation
    10
    Rep Power
    0

    Turn off special area's if target hppc < 20

    Hello, have you any idea how to turn off special area if my target hppc < 20? When wyrms run away special area my rp dont follow them, and i loose loot

  2. #2
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    try this

    init start
    local hppc = 20
    init end

    auto(100)
    if $attacked.hppc < hppc and $attacked.id ~= 0 then
    setsetting('Cavebot/SpecialAreas/NewSpecialArea/Policy', 'None')
    else
    setsetting('Cavebot/SpecialAreas/NewSpecialArea/Policy', 'Targeting')
    end
    Last edited by Imba; 02-12-2014 at 06:13 PM.

  3. #3
    Moderator BUgWT's Avatar
    Join Date
    Dec 2013
    Location
    www.bugwt.com
    Posts
    546
    Reputation
    72
    Rep Power
    22
    use $attacked instead of $target


    LATEST SCRIPTS SKYPE
    Got a Question? Add me on Skype!
    bugwt.support

    This image is hosted on a possibly dangerous website (http://mystatus.skype.com/smallclassic/bugwt.support). Please consider reuploading it on Imgur.com.


  4. #4
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    You are right, changed.

  5. #5
    Free User
    Join Date
    Jan 2014
    Posts
    15
    Reputation
    10
    Rep Power
    0
    thanks

  6. #6
    Free User neusilvera's Avatar
    Join Date
    Jan 2014
    Location
    Chile
    Posts
    27
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Imba View Post
    try this

    init start
    local hppc = 20
    init end

    auto(100)
    if $attacked.hppc < hppc and $attacked.id ~= 0 then
    setsetting('Cavebot/SpecialAreas/NewSpecialArea/Policy', 'None')
    else
    setsetting('Cavebot/SpecialAreas/NewSpecialArea/Policy', 'Targeting')
    end
    what do this?

  7. #7
    Moderator BUgWT's Avatar
    Join Date
    Dec 2013
    Location
    www.bugwt.com
    Posts
    546
    Reputation
    72
    Rep Power
    22
    Quote Originally Posted by neusilvera View Post
    what do this?
    When you are attacking a monster and it has less than x hppc, it will open the special area. Else, it will close the special area


    LATEST SCRIPTS SKYPE
    Got a Question? Add me on Skype!
    bugwt.support

    This image is hosted on a possibly dangerous website (http://mystatus.skype.com/smallclassic/bugwt.support). Please consider reuploading it on Imgur.com.


  8. #8
    Free User neusilvera's Avatar
    Join Date
    Jan 2014
    Location
    Chile
    Posts
    27
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by BUgWT View Post
    When you are attacking a monster and it has less than x hppc, it will open the special area. Else, it will close the special area
    ty guys this work great

 

 

Posting Permissions

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