Jump to content
  • 0

Weapon-Type Enhance Backup Stone (S-Grade)


Question

Posted

hello, sorry my English,

I want to find code of Weapon-Type Enhance Backup Stone (S-Grade) in my source (l2j)

Dimensional item

Item that raises an S-Grade weapon's enchant rate by 10%. Can only be used on items with 3~9 enchants. Cannot be exchanged or dropped. Can be stored in a private warehouse.

I want to fix it can only be used on items with 10~17 enchants and can be used with blessed enchant. Where code for it? If i know where code, i can fix it!

Thanks for read!

 

6 answers to this question

Recommended Posts

  • 0
Posted

'L2Client Developer' lolwat?

Anyway, get the ID of one of the enchant scrolls. Search your project for where that value is used. Trace the steps where it gets the data from, and booom.

  • 0
Posted

'L2Client Developer' lolwat?

Anyway, get the ID of one of the enchant scrolls. Search your project for where that value is used. Trace the steps where it gets the data from, and booom.

lol,

ID:12366

<item id="12366" type="EtcItem" name="Weapon-Type Enhance Backup Stone (S-Grade)">
	<set name="icon" val="icon.ench_wp_stone_i04" />
	<set name="etcitem_type" val="scrl_inc_enchant_prop_wp" />
	<set name="immediate_effect" val="1" />
	<set name="material" val="paper" />
	<set name="weight" val="120" />
	<set name="is_tradable" val="false" />
	<set name="is_dropable" val="false" />
	<set name="is_sellable" val="false" />
	<set name="is_stackable" val="true" />
	<set name="is_premium" val="true" />
	<set name="handler" val="ItemSkills" />
	<set name="item_skill" val="2519-1" />
</item>

SKILL: 2519

<skill id="2519" levels="1" name="Lucky Clover - S-Grade">
	<set name="target" val="TARGET_NONE" />
	<set name="skillType" val="NOTDONE" />
	<set name="operateType" val="OP_PASSIVE" />
</skill>

Fix where? I say if i can find where it code in source l2j , i can fix.

I want to fix it can only be used on items with 10~17 enchants and can be used with blessed enchant. Where code for it? If i know where code, i can fix it!

  • 0
Posted

dpbBryan, from the moment you know how to copy-paste, you can pretend to the title of "developer" on MxC.

 

AbstractEnchantPacket.java for the answer, if I understood well. Edit getChance() method.

  • 0
Posted

dpbBryan, from the moment you know how to copy-paste, you can pretend to the title of "developer" on MxC.

 

AbstractEnchantPacket.java for the answer, if I understood well. Edit getChance() method.

thanks you.

  • 0
Posted

I try edit it but it not work,

 

com.l2jserver.gameserver.network.clientpackets/AbstractEnchantPacket.java

public final boolean isValid(L2ItemInstance enchantItem, EnchantItem supportItem)

{

//blessed scrolls can't use support items

//if (supportItem != null && (!supportItem.isValid(enchantItem) || isBlessed()))

// return false;

 

return isValid(enchantItem);

}

 

        if (_isBlessed)

{

// blessed scrolls does not use support items

//if (supportItem != null)

//return -1;

 

if (_isWeapon)

and:

 

_supports.put(12366, new EnchantItem(true, L2Item.CRYSTAL_S, 16, 20, null));

 

_supports.put(12371, new EnchantItem(false, L2Item.CRYSTAL_S, 16, 30, null));

 

Help me plz, thanks you read.

  • 0
Posted

I think need some fix in com.l2jserver.gameserver.network.clientpackets/RequestEnchantItem.java

 

// template for support item, if exist

EnchantItem supportTemplate = null;

if (support != null)

{

if (support.getObjectId() != _supportId)

{

activeChar.setActiveEnchantItem(null);

return;

}

supportTemplate = getSupportItem(support);

}

 

// first validation check

if (!scrollTemplate.isValid(item, supportTemplate) || !isEnchantable(item))

{

activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION));

activeChar.setActiveEnchantItem(null);

activeChar.sendPacket(new EnchantResult(2, 0, 0));

return;

}

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...