Results 1 to 2 of 2

Thread: (Request)Low HP Alert Script

  1. #1
    Join Date
    Feb 2017
    Location
    California
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Question (Request)Low HP Alert Script

    Hi peoples', I don't have knowledge of how to script. I need an hp alert that goes "beep" with a sound whenever I reach "X" amount of hp (Ex.20)

    Just an alert so there's no way I can get banned.


    Whoever is able to help me with is I will pay them whatever they feel is fair.
    Last edited by JoJoFool; 02-06-2017 at 10:01 AM.

  2. #2
    Join Date
    Dec 2011
    Posts
    193
    Mentioned
    5 Post(s)
    Quoted
    51 Post(s)

    Default

    Simba Code:
    program HealthWarning;
    {$i AeroLib/AeroLib.Simba}

    const
      WarnWhenHealth = 20; //Warning sound when at or below this value

    begin
      InitAL;

      repeat

        if getCurrentHealth <= WarnWhenHealth then
        begin
          PlaySound('C:\Simba\CalmWarning.wav');

          while getCurrentHealth <= WarnWhenHealth do
            Wait(100);
        end;

        Wait(100);

      until(false);

    end.

    You'll need Aerolib for that to work. Search the forum for it's thread and download the required files.

    Download the below attachment, extract it in C:\Simba. If you have installed simba elsewhere, then update the path in the above code to match your install path.
    Attached Files Attached Files

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
  •