API PrintPurchaseTransaction

From Vendetta Lua
Revision as of 22:03, 25 January 2009 by Chefkoch (talk | contribs) (split)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>