Jump to content
  • 0

Item Enchantment


FactorX

Question

4 answers to this question

Recommended Posts

  • 0

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>

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

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

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