Does Anyone have an Idea of Why this happens? Script Warning in sys.changeRating(name, tier, rating): player doesn't exist in tierXY OU changeRating(name = 'Morty', tier = 'XY OU', newRating = '1500') at -1 <anonymous>(src = 2, message = '/changerating Morty:1500', chan = 0) at scripts.js:4679 <global>() at -1 if (command == "changerating") { var data = commandData.split(':'); var player = data[0]; var tier = "XY OU"; var rating = data[1]; sys.changeRating(player, tier, rating); sendChanMessage(src, "+Bot: El Rating de " + player + " en la tier " + tier + " ahora es de " + rating); return; }
I'm assuming the player needs to actually be on the ladder. Make sure you have some sort of rating in that tier before trying to change it~
Just figured out the person needs to go find battle and finish the battle for it to work xD Thanks :)