FutureProg functions

purchaseliquidrefill

Itemscomputer function, computer program, standard futureprog

purchaseliquidrefill overload 1

Boolean purchaseliquidrefill(Character buyer, Character seller, Item container, Currency currency, Number liquidId, Number unitVolume, Number unitPrice)
Available in
  • computer function
  • computer program
  • standard futureprog
Buys a full refill through prepared native held-cash Give. Refuses invalid custody, closed/full containers and other liquids before payment; preserves existing matching liquid. Cash and refill commit before observers. Price is prorated and rounded up to a whole base currency unit.
ParameterTypeDescription
buyer Character The paying customer.
seller Character The awake noncombat seller.
container Item A directly held or wielded open liquid container.
currency Currency Native payment currency.
liquidId Number Native liquid to add.
unitVolume Number Volume of a priced unit in native units.
unitPrice Number Price per unit in base currency units.