Jump to content
  • 0

Hello !! , How i can enable Attribute system for B/A Grades


Question

15 answers to this question

Recommended Posts

  • 0
Posted
11 minutes ago, Pamela32 said:

Yo , tittle 

I searching this for 6 HOURS :@

 

MY EYESSS !!!!!!!!

 

 

L2jsunrise hi5

 

 

 

Hello sweetness in RequestExEnchantItemAttribute.java

 

if (!item.getItem().isElementalEnabled() || item.getItem().getItemType() == L2WeaponType.FISHINGROD || item.isShadowItem() || item.isCommonItem() || item.isPvp() || item.isHeroItem() || item.isTimeLimitedItem() || item.getItemId() >= 7816 && item.getItemId() <= 7831 || item.getItem().getItemType() == L2WeaponType.NONE || item.getItem().getItemGradeSPlus() != L2Item.CRYSTAL_S || item.getItem().getBodyPart() == L2Item.SLOT_BACK || item.getItem().getBodyPart() == L2Item.SLOT_R_BRACELET || item.getItem().getBodyPart() == L2Item.SLOT_UNDERWEAR || item.getItem().getBodyPart() == L2Item.SLOT_BELT || item.getItem().getBodyPart() == L2Item.SLOT_NECK || (item.getItem().getBodyPart() & L2Item.SLOT_R_EAR) != 0 || (item.getItem().getBodyPart() & L2Item.SLOT_R_FINGER) != 0 || item.getItem().getElementals() != null || item.getItemType() == L2ArmorType.SHIELD || item.getItemType() == L2ArmorType.SIGIL)
{
	player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.ELEMENTAL_ENHANCE_REQUIREMENT_NOT_SUFFICIENT));
	player.setActiveEnchantAttrItem(null);
	return;
}

There is this code which the only check you should adjust/remove is the .isElementalEnabled()

 

Now if you don't want to remove this check completely you can go at L2Item.java, find the 

 

_elementEnable = set.getInteger("element_enabled", 1) == 1 ? true : false;

make sure it's element_enabled (the tag) and then go to your item and add in the xml the this tag which will allow enchant attribute.

  • 0
Posted (edited)

I m using l2jsunrise and propably is different way the coding there...

 


 

Already enabled into item xml

 <set name="element_enabled" val="true" />

 

and nothing happend

 


 

propably exist a check for item ID i guess.. :/ but i search it but nothing  , i found this only

 

 

L2item.java

 

public final CrystalType getItemGradeSPlus()
    {
        switch (getItemGrade())
        {
            case S80:
            case S84:
                return CrystalType.S;
            default:
                return getItemGrade();
        }
    }

 


 

 

I found these ID`s but these are for  non-enabled items

 

_common = ((_itemId >= 11605) && (_itemId <= 12361));
        _heroItem = ((_itemId >= 6611) && (_itemId <= 6621)) || ((_itemId >= 9388) && (_itemId <= 9390)) || (_itemId == 6842);
        _pvpItem = ((_itemId >= 10667) && (_itemId <= 10835)) || -- bla bla bla

 

 

 

 

 

 

 

 

Οταν , λες element enabled the tag , κανε μου ενα traslate μια.


Edited by Pamela32
  • 0
Posted
1 hour ago, Evie Frye said:

 


_elementEnable = set.getInteger("element_enabled", 1) == 1 ? true : false;

 

Is this a retail code or you just created it?

 

You know what i will mention right?

 

  • 0
Posted
46 minutes ago, melron said:

Is this a retail code or you just created it?

 

You know what i will mention right?

 

retail 

  • 0
Posted (edited)
25 minutes ago, Pamela32 said:

retail 

Sweetness whats wrong with you? I though you were super duper pro , no like Melron who is noob as fuck.

Just search among item's xml for a tag like <value attributeEnabled="true" /> or idk how is in sunrise and copy paste it in all items you want to use

or simply go in the ClientPacket i've sended you and remove the check... It's not different than L2J cause sunrise is L2J they just added custom shit like nexus e.t.c

Edited by Evie Frye
  • 0
Posted

it's element enabled and I enabled it and when I use a stone that item don't appear into list ... (nah I m sucky  nasty mohito bad on java ) 

  • 0
Posted (edited)
52 minutes ago, Pamela32 said:

it's element enabled and I enabled it and when I use a stone that item don't appear into list ... (nah I m sucky  nasty mohito bad on java ) 

 

As i see after 10 minute of search the packet which refer to the window that opens upon click on STONE is this one:

activeChar.sendPacket(new ExChooseInventoryAttributeItem(item));

 

Edited by Evie Frye
  • 0
Posted
25 minutes ago, Evie Frye said:

 

As i see after 10 minute of search the packet which refer to the window that opens upon click on STONE is this one:


activeChar.sendPacket(new ExChooseInventoryAttributeItem(item));

 

ExChooseInventoryAttributeItem refer to the stone informations and not about what items must be shown. 

 

check at the stone's handler for any check. The first place to look up mustn't be a packet since is calling handler.... After all the checks should be collecting the items that pass the conditions and then probably run a specific packet that appearing items based on the above collection

  • Like 1
  • 0
Posted (edited)
3 hours ago, Evie Frye said:

Sweetness whats wrong with you? I though you were super duper pro , no like Melron who is noob as fuck.

Just search among item's xml for a tag like <value attributeEnabled="true" /> or idk how is in sunrise and copy paste it in all items you want to use

or simply go in the ClientPacket i've sended you and remove the check... It's not different than L2J cause sunrise is L2J they just added custom shit like nexus e.t.c

 

i cant remove check bcs many items can get element so this gonna destroy it all ...

 

i m searching

Edited by Pamela32
  • 0
Posted
7 minutes ago, Pamela32 said:

 

i cant remove check bcs many items can get element so this gonna destroy it all ...

 

i m searching

 

Pay me 1 euro and ill do it for you.

  • 0
Posted
3 hours ago, melron said:

ExChooseInventoryAttributeItem refer to the stone informations and not about what items must be shown. 

 

check at the stone's handler for any check. The first place to look up mustn't be a packet since is calling handler.... After all the checks should be collecting the items that pass the conditions and then probably run a specific packet that appearing items based on the above collection

 

 

cant find it ... maybe is on client ? wtf is this .. it should be just a f@cking check :/

  • 0
Posted

 

I WILL DIE FOR THIS SGGDGDGDGDGDGGDGDGDGDGD

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

Guest
This topic is now closed to further replies.
×
×
  • Create New...