PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX and newer) => HOW-TO's => Topic started by: RPGamer on 03 March, 2016, 08:33:02

Title: HOW-TO: Run a loop to get user share size and display it on main hub chat
Post by: RPGamer on 03 March, 2016, 08:33:02
Basically I want to create a script where when the user types !sharegraph , the following things should happen:
[li]If a category has more than 50 users, it will print "+" at the end of 30 "*"
So lets say if the hub has 10 users where 2 users have less than 200GB , 4 users have 400-600GB and the rest have 1000GB+ , the output should be:
0GB-200GB:      **
400GB-600GB:  ****
1000GB+:         ****
Can someone please help me out?