FutureProg functions
purchasenpc
purchasenpc overload 1
Character purchasenpc(Character buyer, Character seller, Number templateId, Currency currency, Number amount)
Available in
- computer function
- computer program
- standard futureprog
Purchases a native NPC from held cash. On success, returns the delivered NPC beside the buyer; otherwise returns null.
| Parameter | Type | Description |
|---|---|---|
buyer |
Character |
The purchasing character. |
seller |
Character |
The seller receiving exact cash. |
templateId |
Number |
The current NPC template id. |
currency |
Currency |
The payment currency. |
amount |
Number |
The positive exact base-unit price. |