No categories assigned

LUA:GetCoinMessage

LUA Functions: GetCoinMessage()

Returns a string in the "x Platinum x Gold x Silver x Copper" format for the given amount of coins.


Syntax

var = GetCoinMessage(param1)


Parameters

Required - param1 (int32)
param1 is the total amount of coins


Usage

function hailed(NPC, Spawn)
    Say(NPC, "I have " .. GetCoinMessage(150) .. "!")
end

When hailed the NPC would say "I have 1 Gold 50 Copper!".