Wanna print massage in chat when function executed. Also wanna make printing with gold/silver/cooper logos in chat.
Lua Code:
if MerchantWindow then
local Cost, NeedRapair = GetRepairAllCost()
local function CalculateCost()
local gold = floor(Cost / 10000)
local silver = mod(floor(Cost / 100), 100)
local cooper = mod(floor(Cost), 100)
return format("%gold, %silver, %bronze", gold, silver, cooper)
end;
if NeedRapair
and GetMoney() > (Cost * 4) then
RepairAllItems()
print("All Items Repaired"..CalculateCost())
end
end
end