InFocus Posted August 26, 2018 Posted August 26, 2018 Who can tell me how i can make a npc where players can upgrade weapon/armor/jewels?
0 'Baggos' Posted August 27, 2018 Posted August 27, 2018 2 hours ago, InFocus said: anyway, i can make dnasty armor 2 types with same textures? i mean lv 1 and lv 2 with same textures but with different status. ofc i must create a secound item in xml's Just change the ID of the armor lvl 2. Dyn set ID 1,2,3,4,5, go to your xml/items, c/p those armor parts and then change the ID and stats. Also, you will need to put the new ID on client. itemname, armorgrp. About shop, as sweet told you, you will need to put npc type Merchant. Mutilsell example: <?xml version='1.0' encoding='utf-8'?> <!-- D-Grade Weapons --> <list> <!-- Dynasty Helm lvl 1 --> <item id="1"> <ingredient id="1" count="1"/> <production id="2" count="1"/> </item> <!-- Dynasty BreastPlate lvl 1 --> <item id="2"> <ingredient id="1" count="1"/> <production id="2" count="1"/> </item> <!-- Dynasty Legs lvl 1 --> <item id="3"> <ingredient id="1" count="1"/> <production id="2" count="1"/> </item> <!-- Dynasty Gloves lvl 1 --> <item id="4"> <ingredient id="1" count="1"/> <production id="2" count="1"/> </item> <!-- Dynasty Boots lvl 1 --> <item id="5"> <ingredient id="1" count="1"/> <production id="2" count="1"/> </item> </list> Npc example: <npc id="20704" idTemplate="30865" name="Shop" title="Global Store"> <set name="usingServerSideName" val="true"/> <set name="usingServerSideTitle" val="true"/> <set name="level" val="80"/> <set name="radius" val="8"/> <set name="height" val="26"/> <set name="rHand" val="0"/> <set name="lHand" val="0"/> <set name="type" val="Merchant"/> <set name="exp" val="0"/> <set name="sp" val="0"/> <set name="hp" val="2444.46819"/> <set name="mp" val="1345.8"/> <set name="hpRegen" val="7.5"/> <set name="mpRegen" val="2.7"/> <set name="pAtk" val="688.86373"/> <set name="pDef" val="295.91597"/> <set name="mAtk" val="470.40463"/> <set name="mDef" val="216.53847"/> <set name="crit" val="4"/> <set name="atkSpd" val="253"/> <set name="str" val="40"/> <set name="int" val="21"/> <set name="dex" val="30"/> <set name="wit" val="20"/> <set name="con" val="43"/> <set name="men" val="20"/> <set name="corpseTime" val="7"/> <set name="walkSpd" val="50"/> <set name="runSpd" val="120"/> <set name="dropHerbGroup" val="0"/> <ai type="DEFAULT" ssCount="0" ssRate="0" spsCount="0" spsRate="0" aggro="0" canMove="true" seedable="false"/> <skills> <skill id="4045" level="1"/> <skill id="4416" level="17"/> </skills> </npc> html/merchant/20704 <html> <title> SHOP UPGRADER </title> <center> <img src="networklogo1.networklogo1" height=90 width=294></td> </center> <center> <img src="L2UI.SquareGray" width=300 height=1> <br> <img src="L2UI.SquareGray" width=300 height=1> <table width=300 height=32 bgcolor=000000> <tr> <td fixwidth=5> </td> <td fixwidth=32 height=42> <img src="icon.accessory_necklace_of_valakas_i00" width=34 height=33> </td> <td fixwidth=250> <font color=F57E21><a action="bypass -h npc_%objectId%_multisell 501">Upgrade Dynasty</font></a><br1> <font color=F2F5A9>You need Upgrade? Here you are.</font> </td> </tr> </table> <img src="L2UI.SquareGray" width=300 height=1> </center> </body> </html> 1
0 'Baggos' Posted August 26, 2018 Posted August 26, 2018 Upgrade to what? From Arcana to Dynasty or something? You can create a new npc, edit the multisell and that's it.. Check how blacksmith works with SA and make your own..
0 Reborn12 Posted August 26, 2018 Posted August 26, 2018 40 minutes ago, InFocus said: ok _exc_multisell if im not wrong
0 InFocus Posted August 26, 2018 Author Posted August 26, 2018 [26/08 14:46:30] MultisellData: player L2PcInstance:Admin[268481273] attempted to open multisell 10005 from npc L2TrainerInstance:Upgrader(3030011)[268484471] which is not allowed! This error i get in gameserver
0 Solomun Posted August 26, 2018 Posted August 26, 2018 Change npc fom l2trainerinstance to l2merchant.
0 SweeTs Posted August 26, 2018 Posted August 26, 2018 You can't freely use another npc instance bypass. If you want to use that bypass from that npc instance, you must add the code to the instance.
0 Katara512 Posted August 26, 2018 Posted August 26, 2018 (edited) very simple, example : you have item(tier1) with id: 25002 and item(tier2) with id : 25003 you will make one multisell that will give as product the 25003 and as ingridient will require the 25002 Edited August 26, 2018 by Sidereal Day
0 InFocus Posted August 26, 2018 Author Posted August 26, 2018 (edited) nop, i don't want this Sideral. I want to Upgrade, no buy another armor, just upgrade. i know what u say, but i don't want to buy a armor with another armor Edited August 26, 2018 by InFocus
0 'Baggos' Posted August 27, 2018 Posted August 27, 2018 12 hours ago, InFocus said: nop, i don't want this Sideral. I want to Upgrade, no buy another armor, just upgrade. i know what u say, but i don't want to buy a armor with another armor Apella lvl 1 to Apella lvl 2. Same thing as Sideral told you.. You will give Apella lvl 1(ID 1) for Apella lvl 2(ID 2).
0 SweeTs Posted August 27, 2018 Posted August 27, 2018 Then how the heck you want to upgrade it.. That's the only way, take armor id 1 (with other ingredients) - > give armor id 2. No matter if it's multisell or hard-coded stuff.
0 melron Posted August 27, 2018 Posted August 27, 2018 There isn't any retail upgrade shop. Learn to explain what you need. 2 options. A) merchant B) check blacksmith how SA/sealed/ unsealed working Move on
0 InFocus Posted August 27, 2018 Author Posted August 27, 2018 Melron, i check Puskin, and i do same thing in new npc, but no work, i get eror what i post up. And that erorr i get in GS
Question
InFocus
Who can tell me how i can make a npc where players can upgrade weapon/armor/jewels?
21 answers to this question
Recommended Posts