Jump to content
  • 0

Changing Enchant scroll


Question

Posted

i wanna chage enchant:

sample: i wanna enchant wepon/ armor with 1 scroll +5 and not like normaly +1 can someone help if u not understand what i mean reply please bad german english :D

1 answer to this question

Recommended Posts

  • 0
Posted

Open :

 

\java\net\sf\l2j\gameserver\clientpackets\RequestEnchantItem.java

 

 

 

and find these lines :

 

            	else
            	{
            		sm = new SystemMessage(SystemMessageId.S1_S2_SUCCESSFULLY_ENCHANTED);
            		sm.addNumber(item.getEnchantLevel());
            		sm.addItemName(item.getItemId());
            		activeChar.sendPacket(sm);
            	}
            	item.setEnchantLevel(item.getEnchantLevel()+1);
            	item.updateDatabase();
            }
        }

 

and change this :

 

item.setEnchantLevel(item.getEnchantLevel()+1);

 

for your chose ... sample +5 - it working , save and compile and have fun !

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