Jump to content
  • 0

Help: Sell Everything for 1z?


classy5

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  08/08/14
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   38
  • Joined:  04/28/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  08/08/14
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

you need to also change the selling price under itemdb

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  08/08/14
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

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.

 

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  814
  • Reputation:   235
  • Joined:  01/30/13
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

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;

 

Link to comment
Share on other sites

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.

×
×
  • Create New...