import { RagfairController } from "https://deno.land/x/sptaki@1.2.0/controllers/RagfairController.d.ts";
Handle RagfairCallback events
Constructors
Properties
Methods
Add index to all offers passed in (0-indexed)
Get the handbook price in roubles for the items being listed
Charge player a listing fee for using flea, pulls charge from data previously sent by client
Create a basic trader request object with price and currency type
Using item ids from flea offer request, find corresponding items from player inventory and return as array
Get offers for the client based on type of search being performed
Get categories for the type of search being performed, linked/required/all
Is the flea search being performed a 'linked' search type
Is the flea search being performed a 'required' search type
Is the item to be listed on the flea valid
Update a trader flea offer with buy restrictions stored in the traders assort
Adjust ragfair offer stack count to match same value as traders assort stack count
List item(s) on flea for sale
Extend a ragfair offers listing time
Called when creating an offer on flea, fills values in top right corner
Handle client/ragfair/offer/findbyid
Occurs when searching for #x
on flea
Handles client/ragfair/find Returns flea offers that match required search parameters
User requested removal of the offer, actually reduces the time to 71 seconds, allowing for the possibility of extending the auction before it's end time
Check all profiles and sell player offers / send player money for listing if it sold