FactorX Posted November 1, 2017 Posted November 1, 2017 Can help me somebody with enchant items to Npc? i am using l2jaCis Quote
0 darkpower Posted November 1, 2017 Posted November 1, 2017 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> Quote
0 FactorX Posted November 1, 2017 Author Posted November 1, 2017 (edited) Look.. http:// LoveLess it's me. and i want to enchant npc bow. (it is guard) Edited November 1, 2017 by FactorX Quote
0 Tryskell Posted November 1, 2017 Posted November 1, 2017 (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 November 1, 2017 by Tryskell Quote
0 FactorX Posted November 1, 2017 Author Posted November 1, 2017 (edited) Thank you...you complicated my life :)) Edited November 1, 2017 by FactorX Quote
Question
FactorX
Can help me somebody with enchant items to Npc? i am using l2jaCis
4 answers to this question
Recommended Posts
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.