Jump to content
  • 0

Help: Sell Everything for 1z?


Question

8 answers to this question

Recommended Posts

  • 0
Posted (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 by Promise
  • 0
Posted

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

 

  • 0
Posted
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

  • 0
Posted
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?

  • 0
Posted
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.

 

  • 0
Posted

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.

  • 0
Posted
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;

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...