Jump to content
  • 0

Champion Aura


Question

Recommended Posts

  • 0
Posted
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 

  • 0
Posted

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. 

  • 0
Posted

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.

  • 0
Posted

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

  • 0
Posted (edited)

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
  • 0
Posted

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

  • 0
Posted
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.

  • 0
Posted
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. 

Guest
This topic is now closed to further replies.



  • Posts

    • Without discouraging your enthusiasm, and having looked at what you went through... I think you asked Cursor to migrate l2j to .net.... on the other hand clearly you don't have experience in programming or in a high concurrency project... since in this kind of issues ORMs don't work... think that if it would work well in l2j we would use Spring Data with hibernate and that kind of things. it's not like that, unfortunately the best way to talk to the database in an efficient way is optimizing queries and interaction with the database. Don't get discouraged just keep researching!  
    • 저는 시스템을 한국어로 번역하고 인터페이스를 다운로드하여 적용했습니다. /target /attack 명령이 작동하지 않습니다. actionname.commandname을 변경했는데, 어디에서 변경해야 할까요? 전문가 여러분, 말씀해 주세요. 이걸 해결할 수 없어서 다음 단계로 넘어갈 수가 없어요 ㅠㅠ 명령어 이름이 문제인 것 같아요. 한국어로 번역하면 단축키가 안 먹히고, 영어로 번역하면 /attack 같은 명령어가 안 먹히네요. ㅠㅠ
    • thanks for the reply,   This is the Cadmus project  And i need  to adapt this community board to This is L2jOrion project  
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...