Results 1 to 2 of 2

Thread: Determining low HP

  1. #1
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Determining low HP

    Trying to figure out when scripts eat is a mess. I tried looking for HP bar reading scripts, but thats hard with multiple bars around... I ended up coming up with an idea.

    Is it possible to find out if the HP number at the top right of the minimap is yellow with one color? I'm unsure if its a static or dynamic color, has anyone tried this before?
    Also, would it be possible to check the HP background? Since it goes from red to black when your HP drops, maybe there would be a way to make a health detector?

    Or has this already been invented and I'm missing something (I checked Fighting.Scar ), such as a script that converts HP # into an integer for reading?

    Thanks

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    SCAR Code:
    function GetMMLevels(LevelType: string; var ColorSign: string): Integer;
    for health you would use hp and then put in a string
    SCAR Code:
    var
      Color: string;
      Number: Integer;
    begin
      Number:= GetMMLevels('hp', Color);
    end;
    Color would then be Green, Yellow, Orange or Red

    ~shut

Thread Information

Users Browsing this Thread

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

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
  •