Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drawString(mon, str, x, y)
- mon.setCursorPos(x, y)
- mon.write(str)
- end
- function drawStringWithColor(mon, str, x, y, col)
- mon.setCursorPos(x, y)
- mon.setTextColor(col)
- mon.write(str)
- end
- function getPercent(amount, capacity)
- return amount / 100 * capacity
- end
- function round(num, idp)
- mult = 10 ^ (idp or 0)
- return math.floor(num * mult + 0.5) / mult
- end
Advertisement
Add Comment
Please, Sign In to add comment