[Question] How to detect the HP left ingame? menu

User Tag List

Results 1 to 3 of 3
  1. #1
    ziknos's Avatar Corporal
    Reputation
    1
    Join Date
    Jun 2010
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] How to detect the HP left ingame?

    Hello, im doing a bot whit autoit but i want to put a chicken to go back and drink a potion when my hp its low, im triying to use pixelgetcolor but since the HP circle its a gif, i can check one pixel... can someone give me one tip on how to detect it?

    Thanks!

    [Question] How to detect the HP left ingame?
  2. #2
    Sonders's Avatar Private
    Reputation
    2
    Join Date
    Feb 2011
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pixelgetcolor is not the best choice in my opinion. try pixelsearch. The following code is just an example, should work this way.
    x1, y1 is the start (upper left) of your area to test, if there is a red-color and x2, y2 the end of this area (lower right). I don't know the colorcode for this (servers are down) but with the tool "autoit window info" you can get it (and the needed coords) very easy. At the end of the line I added a ", 10" that means the colorcode and 10 shades of color from this has to be found. If not, func potion will be executed - and the code will return to test your coords.

    While 1
    PixelSearch(x1, y1, x2, y2, "redcolorcode", 10)
    If @error Then _potion()
    WEnd

    Func potion()
    Send("q")
    Sleep(25000)
    EndFunc
    Last edited by Sonders; 05-31-2012 at 08:53 PM.

  3. #3
    ziknos's Avatar Corporal
    Reputation
    1
    Join Date
    Jun 2010
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks you it worked really good whit pixelsearch option!

    NICE!

Similar Threads

  1. [QUESTION]how to get the model swap working?
    By Slayer94 in forum World of Warcraft General
    Replies: 0
    Last Post: 05-30-2008, 09:28 AM
  2. Replies: 5
    Last Post: 03-13-2008, 03:29 PM
  3. [Question] How to find the corect BakedNPCTexture
    By SoulReaverRaziel in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 11-30-2007, 03:15 AM
  4. [Question] how to change the wow trial to connect to my server?
    By ridders in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-05-2007, 03:40 PM
  5. [Question] How to make the solo files for model change?
    By TheAussieTroll in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-09-2007, 01:14 PM
All times are GMT -5. The time now is 01:51 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search