Jump to content
  • 0

Item Enchantment


Question

4 answers to this question

Recommended Posts

  • 0
Posted

maybe you need that:

<?xml version='1.0' encoding='utf-8'?>
<list maintainEnchantment="true">
    <item id="1">
        <ingredient id="57" count="200000000"/>
        <production id="8191" count="1" enchant="26"/>
    </item>
    </list>

  • 0
Posted (edited)

You only need to use npc.setEnchant(int) on npc spawn. If you want it updated instantly (let's say the NPC was already spawned and you edit the enchant value), you have to broadcast NpcInfo packet every time you edit the color (in order players see it, otherwise they can teleport back to the zone and it will correctly show).

If you want it for every instance of a particular NPC, you can add/edit "enchant" tag on its template directly, which will automatically setEnchant() on NPC instance creation. Then you don't have to care about anything else, since it's hardwritten.

Edited by Tryskell

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