Jump to content
  • 0

Is it possible to make shop that sell item as a sell price (Half Price) ?


Alexandrite

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   0
  • Joined:  02/19/14
  • Last Seen:  

Like a Red Potion is 50z

if you write selling npc as     501:-1

NPC would sell it at 50z

but i would like NPC to sell it at 25z

what code should I write? without directly put 25

Or do I need to Source Mod?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.03
  • Content Count:  642
  • Reputation:   82
  • Joined:  04/07/14
  • Last Seen:  

-1 means the value set in the database. If you want to sell it less the original value is to declare it manually.

But there are workaround with this. check the discount skill as an idea.

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:  

perhaps you shall check your item_db info

###########################################################################
# Item Database
###########################################################################
# - Id                      Item ID.
#   Buy                     Buying price. When not specified, becomes double the sell price. (Default: 0)
#   Sell                    Selling price. When not specified, becomes half the buy price. (Default: 0)

 

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