Jump to content
  • 0

All item sell on NPC 1 zeny


fragment

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  04/25/19
  • Last Seen:  

Hello,

Possible if all item sell to NPC only 1z ?? need source modification ? is there other option beside edit item db?

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   168
  • Joined:  04/05/13
  • Last Seen:  

\rathena\src\map\itemdb.cpp

Around Lines 150

Change value_sell = 1 (There are other 2-3 lines that contain sell value, please change that too.)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

6 hours ago, fragment said:

Hello,

Possible if all item sell to NPC only 1z ?? need source modification ? is there other option beside edit item db?

 

 

if you are using item_db.yml

its so easy to set all items sell to 1z.

Edited by BeWan
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you can also override the whole part here 

https://github.com/rathena/rathena/blob/df65d5ddfc5d10e1834875cc7a1c1f543e404c74/src/map/itemdb.cpp#L192-L218

with

item->value_sell = 1;
item->value_buy = 2;

buy price shouldn't be lower than sell price.

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...