classy5 Posted April 26, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 08/08/14 Last Seen: July 23, 2017 Share Posted April 26, 2017 how to sell evenything on npc for 1z cost? thank you in advance. Quote Link to comment Share on other sites More sharing options...
0 Promise Posted April 26, 2017 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 386 Reputation: 38 Joined: 04/28/13 Last Seen: March 22, 2024 Share Posted April 26, 2017 (edited) As Sikiro said, you must edit it on the npc. Quote The -1 price indicates the items default price in the shop changing this number to 1 overrides the price of the item to 1z If you want to edit the item default price, you must go to the item_db and edit the sell column. For example: // Structure of Database: // ID,AegisName,Name,Type,Buy,Sell,Weight,ATK[:MATK],DEF,Range,Slots,Job,Class,Gender,Loc,wLV,eLV[:maxLevel],Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script } 501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ itemheal rand(45,65),0; },{},{} to 501,Red_Potion,Red Potion,0,1,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ itemheal rand(45,65),0; },{},{} This means that every npc that sells apples on the server, will sell it for 50 -> 1z Edited April 26, 2017 by Promise Quote Link to comment Share on other sites More sharing options...
0 sikiro Posted April 26, 2017 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 171 Reputation: 16 Joined: 01/26/12 Last Seen: January 1, 2024 Share Posted April 26, 2017 are you referring to custom shops or shops available in the emulator already? one way to do this is to open npc/re/merchants/shops.txt and manually adjust prices of all shops to 1z an example would be Change dewata,218,164,4 shop Weapon Dealer 536,1207:-1,1216:-1,1107:-1,1122:-1,1116:-1,1154:-1,1407:-1,1457:-1,1354:-1,1519:-1 To dewata,218,164,4 shop Weapon Dealer 536,1207:1,1216:1,1107:1,1122:1,1116:1,1154:1,1407:1,1457:1,1354:1,1519:1 The -1 price indicates the items default price in the shop changing this number to 1 overrides the price of the item to 1z Quote Link to comment Share on other sites More sharing options...
0 classy5 Posted April 26, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 08/08/14 Last Seen: July 23, 2017 Author Share Posted April 26, 2017 1 hour ago, sikiro said: are you referring to custom shops or shops available in the emulator already? one way to do this is to open npc/re/merchants/shops.txt and manually adjust prices of all shops to 1z an example would be Change dewata,218,164,4 shop Weapon Dealer 536,1207:-1,1216:-1,1107:-1,1122:-1,1116:-1,1154:-1,1407:-1,1457:-1,1354:-1,1519:-1 To dewata,218,164,4 shop Weapon Dealer 536,1207:1,1216:1,1107:1,1122:1,1116:1,1154:1,1407:1,1457:1,1354:1,1519:1 The -1 price indicates the items default price in the shop changing this number to 1 overrides the price of the item to 1z like if i have a knife... and sell it on npc for 1z.. instead of knife cost 40z or something Quote Link to comment Share on other sites More sharing options...
0 sikiro Posted April 26, 2017 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 171 Reputation: 16 Joined: 01/26/12 Last Seen: January 1, 2024 Share Posted April 26, 2017 you need to also change the selling price under itemdb Quote Link to comment Share on other sites More sharing options...
0 classy5 Posted May 15, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 08/08/14 Last Seen: July 23, 2017 Author Share Posted May 15, 2017 On Wednesday, April 26, 2017 at 0:21 PM, Promise said: As Sikiro said, you must edit it on the npc. If you want to edit the item default price, you must go to the item_db and edit the sell column. For example: // Structure of Database: // ID,AegisName,Name,Type,Buy,Sell,Weight,ATK[:MATK],DEF,Range,Slots,Job,Class,Gender,Loc,wLV,eLV[:maxLevel],Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script } 501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ itemheal rand(45,65),0; },{},{} to 501,Red_Potion,Red Potion,0,1,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ itemheal rand(45,65),0; },{},{} This means that every npc that sells apples on the server, will sell it for 50 -> 1z Is there a fastest way to change all? Like using notepad to change the npc''s buy or sell price? Quote Link to comment Share on other sites More sharing options...
0 Sryx Posted May 16, 2017 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 520 Reputation: 64 Joined: 11/19/11 Last Seen: October 19, 2024 Share Posted May 16, 2017 9 hours ago, classy5 said: Is there a fastest way to change all? Like using notepad to change the npc''s buy or sell price? Use this. Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted May 16, 2017 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 896 Reputation: 248 Joined: 01/30/13 Last Seen: Monday at 01:58 PM Share Posted May 16, 2017 Actually buy price should be set to 2z so that the sell price is 1z. If you are using text files, you can easily edit them with a spreadsheet editor (Excel or Open Office). If you are using a database, you can pretty much change all with a simple SQL command. Quote Link to comment Share on other sites More sharing options...
0 Ninja Posted May 16, 2017 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Share Posted May 16, 2017 1 hour ago, Playtester said: Actually buy price should be set to 2z so that the sell price is 1z. If you are using text files, you can easily edit them with a spreadsheet editor (Excel or Open Office). If you are using a database, you can pretty much change all with a simple SQL command. UPDATE item_db set `price_sell` = 1 where 1=1; UPDATE item_db2 set `price_sell` = 1 where 1=1; UPDATE item_db_re set `price_sell` = 1 where 1=1; UPDATE item_db2_re set `price_sell` = 1 where 1=1; Quote Link to comment Share on other sites More sharing options...
Question
classy5
how to sell evenything on npc for 1z cost?
thank you in advance.
Link to comment
Share on other sites
8 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.