Skip to content

GetPlayerMoney

The player’s purse in Groschen, as far as the server stands behind it.

While the server guards money (the default) the purse is the server’s: a player starts each visit with nothing but what the mode gives with GivePlayerMoney and keeps it through a death, and this is that purse - under [audit] mode = "enforce" never more than the item check can explain, so a purse edited in memory reads as the money the player really has, here and at every shop; a mode that saves the purse saves no conjured money. A GivePlayerMoney counts at once, before the player’s game has moved the coins. Under observe the purse is what the player’s game holds. Half Groschen show as 12.5.

GetPlayerMoney(pid)
Parameter Type
pid number the player

number - Groschen

SendClientMessage(pid, COLOR_SERVER, string.format("You carry %.1f Groschen.", GetPlayerMoney(pid)))

GivePlayerMoney · GetPlayerInventory · OnPlayerBuy · the Items and inventory group of the index