classy5 Posted April 26, 2017 Posted April 26, 2017 how to sell evenything on npc for 1z cost? thank you in advance. Quote
0 Promise Posted April 26, 2017 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
0 sikiro Posted April 26, 2017 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
0 classy5 Posted April 26, 2017 Author 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
0 sikiro Posted April 26, 2017 Posted April 26, 2017 you need to also change the selling price under itemdb Quote
0 classy5 Posted May 15, 2017 Author 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
0 Sryx Posted May 16, 2017 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
0 Playtester Posted May 16, 2017 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
0 Ninja Posted May 16, 2017 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
Question
classy5
how to sell evenything on npc for 1z cost?
thank you in advance.
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.