Jump to content
  • 0

Hero Aura When Equip Armor Set


Question

Posted (edited)

I want to make a code for when you equip a set, appear the hero aura.

I see a post about that but now im search it and cant be found

 

The code consist in edit the CharInfo.java and UserInfo.java

writeC(_activeChar.isHero() || (_activeChar.isGM() && Config.GM_HERO_AURA) ? 1 : 0); // Hero Aura

I dont remember how to make the code exactly but i remember need add it, but need to put the id of each item set (i dont know how to make the code for that)

 

+ L2ItemInstance chestItem = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
L2ItemInstance legsItem = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
L2ItemInstance headItem = inv.getPaperdollItem(Inventory.PAPERDOLL_HEAD);
L2ItemInstance glovesItem = inv.getPaperdollItem(Inventory.PAPERDOLL_GLOVES);
+ L2ItemInstance feetItem = inv.getPaperdollItem(Inventory.PAPERDOLL_FEET);

 

My question is, how i can reform the code to put the CHEST,LEGS,HEAD,GLOVES and FEET ID.

 

How i can make to put 2 or more sets?

 

Thx

Edited by Hyo

Recommended Posts

  • 0
Posted

Well, if all of your development time is just copy / paste, I can't help you a lot. Forget about the code, indeed it's useless in your case.

  • 0
Posted (edited)

Not exactly , I showed you an example of how it worked had thought the code I'm looking for ..

 

But you instead of helping , showed another code which is useless for my help ... because it is for other chronicle and not exactly what I was asking .

 

If a lot of java and not well ask for help , I never do reluctantly .. And not for a project (just a hobby) not rush to find what I want .

 

Refute my post with your interlude code did not help me at all, thank you very much Tessa  :happyforever:

hqdefault.jpg

Edited by Ayami-

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...