Results 1 to 3 of 3

Thread: If creature on screen then do xxx

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

    If creature on screen then do xxx

    as title says, need this action, when any monster on screen then do something, just need the when monster on screen code.
    Thanks

  2. #2
    iBot User lele's Avatar
    Join Date
    Feb 2012
    Location
    Erechim - RS
    Posts
    426
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    20
    Rep Power
    5
    PHP Code:
    if maround(8then do something end 
    Remenber, 8 is the number of sqm distance to monster.

  3. #3
    Normal User
    Join Date
    Apr 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thanks bro, but I solve it already with other way, check it out:

    local creatures = {"Lizard Legionnaire", "Lizard High Guard", "Lizard Dragon Priest", "Draken Warmaster"}
    local minimum = 1

    if (maround(5, unpack(creatures)) >= minimum)
    then
    setsettings("Settings\\Cavebot\\Pathfinding\\Walki ngMethod","Arrow Keys")
    else
    setsettings("Settings\\Cavebot\\Pathfinding\\Walki ngMethod","Map Clicks")
    end

    works perfectly

Posting Permissions

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