Results 1 to 9 of 9
  1. #1
    Xandahhh's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    UK
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Confused

    AS3 Enemy HP bars

    I don't know a lot about coding, but I know that when this line of code links back to protected function drawHpBar it isn't picking up the _local_ variables (I know that Local Variables only exist within a function)

    How do I go about making this work?

    Code:
            if (((((((((this.props_) && (((this.props_.isEnemy_) || (this.props_.isPlayer_))))) && (!(this.isInvisible())))) && (!(this.isInvulnerable())))) && (!(this.props_.noMiniMap_)))) {
                _local_9 = ((_local_4.getPixel32((_local_4.width / 4), (_local_4.height / 4)) | _local_4.getPixel32((_local_4.width / 2), (_local_4.height / 2))) | _local_4.getPixel32(((_local_4.width * 3) / 4), ((_local_4.height * 3) / 4)));
                _local_10 = (_local_9 >> 24);
                if (_local_10 != 0) {
                    hasShadow_ = true;
                    if (Parameters.data_.HPBar) {
                        this.drawHpBar(_arg_1, _arg_3);
                    }
                }
                else {
                    hasShadow_ = false;
                }

  2. #2
    Devwarlt's Avatar
    Join Date
    Oct 2016
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    8
    My Mood
    Inspired
    It's already working on your AS3 client (I suppose you're using AS3 such as DECA 27.7 for FSoD Version), you just need to export stats from enemies at your server side, so your game client will make HP Bar feature work properly.

    Cheers, Devwarlt

  3. #3
    [b]ong's Avatar
    Join Date
    Jun 2017
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    1
    I'm having a similar problem. The health bar goes down only on enemies such as the shtrs Abandoned Switch. I've checked, and all the same stats for enemies are in the client (max health, defense, etc.). I know the function can work, since it works on Abandoned Switches, however it doesn't work on pretty much any other monster, despite having the same types of stats.

  4. #4
    Xandahhh's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    UK
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Confused
    How do you export Enemy stats?

  5. #5
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed
    Quote Originally Posted by Xandahhh View Post
    How do you export Enemy stats?
    look at player.cs and enemy.cs under ExportStats. Player.cs has what u need in enemy.cs which is an obvious answer.

  6. The Following User Says Thank You to MikeRaarupBirk For This Useful Post:

    NemsisPlay (11-24-2018)

  7. #6
    Xandahhh's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    UK
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Confused
    Cheers Mike, i know exactly what you mean now

  8. #7
    Demon's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Lost
    Posts
    1,095
    Reputation
    86
    Thanks
    316
    My Mood
    Angelic
    Quote Originally Posted by Xandahhh View Post
    Cheers Mike, i know exactly what you mean now
    So.... solved?
    Nice

  9. #8
    Xandahhh's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    UK
    Posts
    42
    Reputation
    10
    Thanks
    3
    My Mood
    Confused
    Solved, ty, idk how to change it to Solved

  10. #9
    Demon's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Lost
    Posts
    1,095
    Reputation
    86
    Thanks
    316
    My Mood
    Angelic
    Quote Originally Posted by Xandahhh View Post
    Solved, ty, idk how to change it to Solved
    @Ahlwong @Raple OP solved it
    Nice

Similar Threads

  1. [Solved] [AS3] Enemy HP Bar
    By EHaehthsthethetheh in forum Realm of the Mad God Private Servers Help
    Replies: 5
    Last Post: 03-14-2017, 11:58 PM
  2. [Solved] [AS3/FSoD] Homescreen Bar
    By EHaehthsthethetheh in forum Realm of the Mad God Private Servers Help
    Replies: 3
    Last Post: 01-08-2017, 06:43 PM
  3. [Solved] AS3 Enemy Magnet
    By FiveCCC in forum Adventure Quest Worlds (AQW) Help
    Replies: 4
    Last Post: 10-17-2014, 12:24 PM
  4. Enemy Healt Bar
    By executorsk in forum Minecraft Mods
    Replies: 12
    Last Post: 04-11-2013, 05:31 PM
  5. Enemy Hp bar
    By M302 in forum Realm of the Mad God Help & Requests
    Replies: 2
    Last Post: 09-08-2012, 12:08 AM