benilla-re systems structs docs

Script::CalculateAuctionDeposit

function · ui · primitive

Address
0x4ce1c0 · 289 bytes, up to 0x4ce2e0
Signature
int __fastcall (lua_State *L)
Meaning
Returns the deposit for the sell slot item and a run time of 120, 480 or 1440, else 0
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/auctionlists#deposit

Finding: Deposit in ui: auction lists, sorting and deposits

GetAuctionHouseDepositRate() returns the house's deposit percentage (column 2 of its AuctionHouse.dbc row), or 0. CalculateAuctionDeposit(runTime) needs a number (Usage: CalculateAuctionDeposit(runTime)), and returns floor(rate * sellPrice * count / 100) * (runTime / 120) when a house, the sell slot item and its record are known and runTime is 120, 480 or 1440; the division is exact and happens before the multiply. Anything unknown gives 0. The consignment column of the row is never read.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 8

Calls and jumps by a bare address, from tables/calls.tsv.