Author Topic: How to sell specific items?  (Read 203 times)

Ghoul-bb

  • Nameless
  • *
  • Posts: 24
  • Karma: 0
How to sell specific items?
« on: Nov 09, 2018; 11:41 PM »
I'm facing with the problem of selling special items, like healloween stuff, item receipes....
How to enable "sell" option for them? I Was looking in items table, but found nothing..

Kikina the templar

  • Named
  • **
  • Posts: 274
  • Karma: 7
Re: How to sell specific items?
« Reply #1 on: Nov 10, 2018; 12:09 AM »
Do you mean selling an item or offering an item in a merchant's offer ?

First thing is simple, just enter any price at the item.
You can look into revival data, where all event things can be sold.
Table "items", parameters"buyPriceMult","buyPriceAdd" and "sellPriceMult","sellPriceAdd"

Second thing is very difficult, you must edit treasure table with merchant offer...
« Last Edit: Nov 10, 2018; 12:11 AM by Kikina the templar »

Malachor

  • Developer
  • Great Eye / First
  • ****
  • Posts: 2034
  • Karma: 25
Re: How to sell specific items?
« Reply #2 on: Nov 10, 2018; 12:52 AM »
After modifying the buy/sell prices, try setting spawnAtMerchant in bitmask01 to true, and then in props1, add: SetStat669('unlimited_in_merchant_inventory', 1);
That's what the grenade blueprint has set. I can find only one reference to it in Treasure and it's grouped with a couple of other items, which aren't sold by the merchant.

Kikina the templar

  • Named
  • **
  • Posts: 274
  • Karma: 7
Re: How to sell specific items?
« Reply #3 on: Nov 10, 2018; 01:21 AM »
This is an interesting thing.
I never thought that the setting of 'unlimited_in_merchant_inventory' bitmask could cause the merchant to sell thing up automatically. Only setting "spawn at merchant" is certainly not enough, merchant selling items via pre-set UnitTypes.
Treasure for common merchant is "bodger", if i remember correctly.

Ghoul-bb

  • Nameless
  • *
  • Posts: 24
  • Karma: 0
Re: How to sell specific items?
« Reply #4 on: Nov 11, 2018; 12:14 AM »
Do you mean selling an item or offering an item in a merchant's offer ?

First thing is simple, just enter any price at the item.
You can look into revival data, where all event things can be sold.
Table "items", parameters"buyPriceMult","buyPriceAdd" and "sellPriceMult","sellPriceAdd"

Second thing is very difficult, you must edit treasure table with merchant offer...

I'm about the first case, of course. Because there are a lot of special event items, which cannot be sold and i have to destroy them periodically, to avoid inventory overloading with this scrap.

Ghoul-bb

  • Nameless
  • *
  • Posts: 24
  • Karma: 0
Re: How to sell specific items?
« Reply #5 on: Nov 11, 2018; 11:43 PM »
It was very simple.
sellPriceAdd column. If number here is more, than 0, it is available to sell the item. No more changes is nessesary.