Results 1 to 7 of 7

Thread: Any function to find if your character is stunned??

  1. #1
    Join Date
    Mar 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Any function to find if your character is stunned??

    hi guys, im currently working on a masterfarmer bot
    just wondering if theres some kind of funtion to check if you are stunned
    also, how do i get the bot to click somewhere on the minimap
    any help i would love cheers,

  2. #2
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    I dunno if it's exactly possible. Stunned being the little yellow birds? You could do a check for that itself? Just for the colours.

  3. #3
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Yeah, look for the yellow in a box around your player's head. And to click on the mimimap you can look for colors in a box around the minimap and then move the mouse to those coordinates and click.

  4. #4
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    Do a color count for yellow in the area above the character's head, where the birds appear.
    Flight's thieving guild had a nice stun function for the live game, you might want to check that out.
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  5. #5
    Join Date
    Mar 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    okay thanks, but how do i do a box with the colours?

  6. #6
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by Mysickname View Post
    okay thanks, but how do i do a box with the colours?
    Simba Code:
    if (CountColorTolerance(YellowBirdColor, xs, ys, xe, ye, Tolerance) > 20) then
    WriteLn('Birds! We are stunned!')

    Find YellowBirdColor by using the color picker tool and clicking the yellow birds.

    Find xs and ys by using the color picker tool and clicking the top left corner of the box around your player's head.

    Find xe and ye by using the color picker tool and clicking the bottom right corner of the box around your player's head.

    Find Tolerance using guess and check. (Try 5 or 10, higher number means it will find more similar colors)

    20 is the number of pixels that will have to be yellow for it to think it's stunned. You can find it out by counting the colors in the box, but you should go with a number that is less than the number that are yellow just to be safe.

  7. #7
    Join Date
    Mar 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    ok cheers

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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