Jump to content

Question

Posted

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);
                }
                

6 answers to this question

Recommended Posts

  • 0
Posted

For example

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

 

? And : works like an if else. 

  • 0
Posted
On 06/07/2018 at 01:05, SweeTs said:

Por exemplo


 

? E: funciona como um if else. 

yes, i need help for add abnormalseffect in my npcs custom

  • 0
Posted
15 hours ago, SweeTs said:

Não, sim, eu aqui, eu te dei código pronto, lol.

Good evening, my doubt is where I should add the line you gave me, in which of the two options?

npc.png

  • 0
Posted

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

Guest
This topic is now closed to further replies.


×
×
  • Create New...