Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var userlist=API.getUsers();
- length=userlist.length;
- API.addEventListener(API.DJ_UPDATE, pointcheck);
- function pointcheck(user) {
- var userlist=API.getUsers();
- length=userlist.length;
- for(var i=0; i<length;i++)
- {
- if((userlist[i].curatorPoints+userlist[i].listenerPoints+userlist[i].djPoints) == 100) {
- API.sendChat("Grats on 100 points, @" + userlist[i].username + "!");
- }
- }
- for(var i=0; i<length;i++)
- {
- if((userlist[i].curatorPoints+userlist[i].listenerPoints+userlist[i].djPoints) == 300) {
- API.sendChat("Grats on 300 points, @" + userlist[i].username + "!");
- }
- }
- for(var i=0; i<length;i++) {
- if((userlist[i].curatorPoints+userlist[i].listenerPoints+userlist[i].djPoints) == 700) {
- API.sendChat("Grats on 700 points, @" + userlist[i].username + "!");
- }
- }
- for(var i=0; i<length;i++) {
- if((userlist[i].curatorPoints+userlist[i].listenerPoints+userlist[i].djPoints) == 1500) {
- API.sendChat("Grats on 1500 points, @" + userlist[i].username + "!");
- }
- }
- for(var i=0; i<length;i++) {
- if((userlist[i].curatorPoints+userlist[i].listenerPoints+userlist[i].djPoints) == 3000) {
- API.sendChat("Grats on 3000 points, @" + userlist[i].username + "!");
- }
- }
- for(var i=0; i<length;i++) {
- if((userlist[i].curatorPoints+userlist[i].listenerPoints+userlist[i].djPoints) == 10000) {
- API.sendChat("Grats on 10000 points, @" + userlist[i].username + "!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment