Jump to content
  • 0

NPC WHITH AURA


nortim
 Share

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.
 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock