API PrintPurchaseTransaction
From Vendetta Lua
Jump to navigationJump to search
PrintPurchaseTransaction
Definition:
PrintPurchaseTransaction(string name, int quantity, totalvalue, totalcost) -> nil
Description:
Print a sale summery message to the chat log
Arguments:
name sold item
quantity number items sold
totalvalue value of items
totalcost price of items
Example:
<source lang="lua">
-- prints "100x of Stuff sold for a total amount of 1000c (profit of 1c)" to the chat log
PrintPurchaseTransaction("Stuff", 100, 1000, 999)
</source>