Jump to content
  • 0

Champion Aura


InFocus

Question

Recommended Posts

  • 0
46 minutes ago, InFocus said:

Maybe i must set NPC and no npcs.getProperty?

Eh, Sherlock. Why don't you look one line above? It's clearly NPC, not npcs.

Why didn't you try to put NPC there and see if error is gone?

One more error, don't you see your pack parse info another way? Look one line above, its NPC.getInt 

Link to comment
Share on other sites

  • 0

If you previously could see it, then you broke the npc info with that writeC, like wrong place / you added new line which is too much.

And please for God's sake. If picture is 100x100 dimension, upload it like that, don't keep size full HD.. Just cut it lol. 

Link to comment
Share on other sites

  • 0

Remove the if line, it will be ok even with 0 inside the config.

Just to let you know, if the config is an int(eger), the if statement would look like:

if (Config,CHAMPION_AURA_TYPE > 0)

 

No idea what you mess up - if it was previously working.

Link to comment
Share on other sites

  • 0

this config say CHAMPION_AURA_TYPE is for use your team color so no need this just if you need enable disable aura you need only this Config.L2jMOD_CHAMPION_ENABLE_AURA + my line code

Link to comment
Share on other sites

  • 0

Ok, i remove If and i let just 

http://zOAMDH7.jpg

and my npc look like this.

http://xoDehOY.jpg

Now. how i can make with aura just mobs (Champions?)

I think My champion system don't work correct. When i compile i get that config, but i am not sure if the champ system is wrking.

+ another think, in NPC.Property i put 

 

 

# Enable aura from champion mobs
# 0 - no aura / 1 - blue aura / 2 - red aura
# Default = 0
ChampionAuraType = 1

 

if it's ok?

Edited by InFocus
Link to comment
Share on other sites

  • 0
2 minutes ago, InFocus said:

I solved, about that aura how i can do? i did 


writeC(_npc.isChampion() ? Config.CHAMPION_AURA_TYPE : 0);

Now, tell me if it's ok even with writeD(0x00); 

 

I don't understand anything from what you say. I asked if you added champion your self and if you have set _champion boolean by default as true cause all npc seem to have aura even tho you have set only champions to have aura.

Link to comment
Share on other sites

  • 0
4 minutes ago, InFocus said:

CHAMPION_AURA_TYPE = NPC.getInt("ChampionAuraType", 0);

Champions is implemented in pack

 

_npc.isChampion() ? 1 : 0

is like saying

if (_npc.isChampion())
{
  writeC(1);
}
else
{ 
 writeC(0);
}

So since all mob seem with blue aura which i guess is 1 its like all are considered champions. 

The 0x00 you mention has nothing to do. 0x00 is equal to 0. it has no difference. Check your isChampion() method

and the variable it carries and check if by default has set to true.

 

A default boolean has value false always. Yours might be _isChampion = true and make all monsters champions at least from the code's pov as i see. 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



×
×
  • 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