Skip to main content
Deno 2 is finally here 🎉️
Learn more
interface IRagfairConfig.IRagfairConfig
implements IBaseConfig
Re-export
import { type IRagfairConfig } from "https://deno.land/x/sptaki@1.2.0/models/spt/mod.ts";
const { IRagfairConfig } = IRagfairConfig;

Properties

kind: "aki-ragfair"
runIntervalSeconds: number

How many seconds should pass before expired offers and procesed + player offers checked if sold

runIntervalValues: IRunIntervalValues

Default values used to hydrate runIntervalSeconds with

sell: Sell

Player listing settings

traders: Record<string, boolean>

Trader ids + should their assorts be listed on flea

dynamic: Dynamic

Properties

kind: "aki-ragfair"
runIntervalSeconds: number

How many seconds should pass before expired offers and procesed + player offers checked if sold

runIntervalValues: IRunIntervalValues

Default values used to hydrate runIntervalSeconds with

sell: Sell

Player listing settings

traders: Record<string, boolean>

Trader ids + should their assorts be listed on flea

dynamic: Dynamic

Properties

fees: boolean

Should a fee be deducted from player when liting an item for sale

chance: Chance

Settings to control chances of offer being sold

time: MinMax

Settings to control how long it takes for a player offer to sell

expireSeconds: number

Seconds from clicking remove to remove offer from market

Properties

base: number

Base chance percent to sell an item

sellMultiplier: number

Value to multiply the sell chance by

maxSellChancePercent: number

Max possible sell chance % for a player listed offer

minSellChancePercent: number

Min possible sell chance % for a player listed offer

Properties

purchasesAreFoundInRaid: boolean
useTraderPriceForOffersIfHigher: boolean

Use the highest trader price for an offer if its greater than the price in templates/prices.json

Barter offer specific settings

offerAdjustment: OfferAdjustment

Dynamic offer price below handbook adjustment values

expiredOfferThreshold: number

How many offers should expire before an offer regeneration occurs

offerItemCount: MinMax

How many offers should be listed

priceRanges: IPriceRanges

How much should the price of an offer vary by (percent 0.8 = 80%, 1.2 = 120%)

showDefaultPresetsOnly: boolean

Should default presets to listed only or should non-standard presets found in globals.json be listed too

endTimeSeconds: MinMax
condition: Condition

Settings to control the durability range of item items listed on flea

stackablePercent: MinMax

Size stackable items should be listed for in percent of max stack size

nonStackableCount: MinMax

Items that cannot be stacked can have multiples sold in one offer, what range of values can be listed

rating: MinMax

Range of rating offers for items being listed

Armor specific flea settings

itemPriceMultiplier: Record<string, number>

A multipler to apply to individual tpls price just prior to item quality adjustment

currencies: Record<string, number>

Percentages to sell offers in each currency

showAsSingleStack: string[]

Item tpls that should be forced to sell as a single item

removeSeasonalItemsWhenNotInEvent: boolean

Should christmas/halloween items be removed from flea when not within the seasonal bounds

blacklist: Blacklist

Flea blacklist settings

unreasonableModPrices: Record<string, IUnreasonableModPrices>

Dict of price limits keyed by item type

Properties

default: MinMax
preset: MinMax
pack: MinMax

Properties

chancePercent: number

Percentage change an offer is listed as a barter

itemCountMin: number

Min number of required items for a barter requirement

itemCountMax: number

Max number of required items for a barter requirement

priceRangeVariancePercent: number

How much can the total price of requested items vary from the item offered

minRoubleCostToBecomeBarter: number

Min rouble price for an offer to be considered for turning into a barter

itemTypeBlacklist: string[]

Item Tpls to never be turned into a barter

Properties

chancePercent: number

Percentage change an offer is listed as a pack

itemCountMin: number

Min number of required items for a pack

itemCountMax: number

Max number of required items for a pack

itemTypeWhitelist: string[]

item types to allow being a pack

Properties

adjustPriceWhenBelowHandbookPrice: boolean

Shuld offer price be adjusted when below handbook price

maxPriceDifferenceBelowHandbookPercent: number

How big a percentage difference does price need to vary from handbook to be considered for adjustment

handbookPriceMultipier: number

How much to multiply the handbook price to get the new price

priceThreshholdRub: number

What is the minimum rouble price to consider adjusting price of item

Properties

conditionChance: number

Percentage change durability is altered

current: MinMax
max: MinMax

Properties

damagedAmmoPacks: boolean

Damaged ammo packs

custom: string[]

Custom blacklist for item Tpls

enableBsgList: boolean

BSG blacklist a large number of items from flea, true = use blacklist

enableQuestList: boolean

Should quest items be blacklisted from flea

traderItems: boolean

Should trader items that are blacklisted by bsg be listed on flea

Maximum level an armor plate can be found in a flea-listed armor item

enableCustomItemCategoryList: boolean

Should specific categories be blacklisted from the flea, true = use blacklist

customItemCategoryList: string[]

Custom category blacklist for parent Ids

Properties

maxProtectionLevel: number

Max level of plates an armor can have without being removed

ignoreSlots: string[]

Item slots to NOT remove from items on flea

Properties

enabled: boolean

Enable a system that adjusts very high ragfair prices to be below a max multiple of items the handbook values

handbookPriceOverMultiplier: number

Multipler to start adjusting item values from, e.g. a value of 10 means any value over 10x the handbook price gets adjusted

newPriceHandbookMultiplier: number

The new multiplier for items found using above property, e.g. a value of 4 means set items price to 4x handbook price

Properties

removeRemovablePlateChance: number

% chance / 100 that armor plates will be removed from an offer before listing

plateSlotIdToRemovePool: string[]

What slots are to be removed when removeRemovablePlateChance is true