benilla-re systems structs docs

Script::GetBillingPlan

function · glue · primitive

Address
0x46dc40 · 173 bytes, up to 0x46dcec
Signature
int __fastcall (lua_State *L)
Meaning
Returns the plan code from bits 0x16 of the session's +0x1afc, then its bits 5 and 3
Confidence
verified, proof one
Name from
the community database (idb)
Finding
glue/script#billing

Finding: Billing in glue: the script functions

The three billing functions return numbers from the world session.

functionreturns
GetBillingTimeRemaining 0x46dbf0+0x1af4, unsigned; 0 when bit 1 of +0x1afc is set
GetBillingPlan 0x46dc40with f the byte +0x1afc: 1, 2, 3 or 4 for f & 0x16 equal to 2, 4, 0 or 0x10, else 0; then (f >> 5) & 1; then (f >> 3) & 1
GetBillingTimeRested 0x46dcf0+0x1af8, unsigned

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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