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 !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock