Jump to content
  • 0

NPC WHITH AURA


nortim

Question

Good evening, Mr. I have a doubt, I added the mod Npc Whith Aura in my project, however only have two possibilities of effects in npc, I wanted to add abnormalseffects in npcs, how would the lines stay?

 

Line Mod Retail:

 

            writeC(_npc.isFlying() ? 2 : 0);
            if(Config.LIST_NPC_WITH_AURA.contains(_npc.getNpcId()))
                {
                writeC(0x20);// auras for npcs | red circle
                }
                else
                {
                writeC(0x20);
                }
                

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

For example

writeD(_npc.isInvisible() ? _npc.getAbnormalEffect() | AbnormalEffect.STEALTH.getMask() : _npc.getAbnormalEffect());

 

? And : works like an if else. 

Link to comment
Share on other sites

  • 0

There should be only one abnormal effect, so guess which is the correct way. If you can't, test both ways and see. Eh. 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...