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