Jump to content
  • 0

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


Question

Posted

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?

2 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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)

 

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