Jump to content

Question

Posted (edited)

In this settings..how i can set up enchant system from 1000 to 2000?

 QuestState st = player.getQuestState(getName());

        int currentEnchant = 0;
        int newEnchantLevel = 2500;

        if (st.getQuestItemsCount(itemRequired) >= itemRequiredCount)
        {
            try
            {
                L2ItemInstance item = getItemToEnchant(player, armorType);

                if (item != null)
                {
                    currentEnchant = item.getEnchantLevel();

                    if ( currentEnchant < 2500 )
                    {
                        newEnchantLevel = setEnchant(player, item, currentEnchant+100, armorType);

                        if ( newEnchantLevel > 0 )
                        {

 

Edited by FactorX

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

no...i want to enchant with first npc +1000

and with a same but 2nd npc from +1000 to +2000

 this is first npc enchanthttp://rzxqo1W.png

and i want to make a same npc but with enchant from 1000 to 2 k (and i don;t know to edit java file for 2nd npc)

 

Edited by FactorX
  • 0
Posted

Why you need 2nd instance based on the other? just add two buttons with the only difference the enchant check and the price lol

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