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

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