Tfs version?How do i get the npc for example say "your new balance is X amount cc, platinum coins"
etc. Congratz, your new balance is 10.22cc
local balance = the_possibly_large_number
local cc = 0
local plat = 0
local gold = 0
while
if balance >= 10000 then
cc = cc + 1
balance = balance - 10000
elseif balance >= 100 then
plat = plat + 1
balance = balance - 100
else
gold = balance
balance = 0
end
until (balance == 0)
text = "You currently have " .. cc .. " cc, " .. plat .. " pc, " .. gc .. " gc invested into our bank."
-- Ex: You currently have 35 cc, 13 pc, 89gc invested into our bank.
TFS 1.2 and im tring to make an gambling npc with commands, info, balance, withdraw, l, h (high, low) and also saying "hello player" "good bye player"a simple/noob way
Code:local balance = the_possibly_large_number local cc = 0 local plat = 0 local gold = 0 while if balance >= 10000 then cc = cc + 1 balance = balance - 10000 elseif balance >= 100 then plat = plat + 1 balance = balance - 100 else gold = balance balance = 0 end until (balance == 0) text = "You currently have " .. cc .. " cc, " .. plat .. " pc, " .. gc .. " gc invested into our bank." -- Ex: You currently have 35 cc, 13 pc, 89gc invested into our bank.
Yeah, got one aswell just trying to "rewrite" iti already had a gambling npc ready for you when you asked in pm