Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var status = 0;
- function start() {
- status = -1;
- action(1, 0, 0);
- }
- function action(mode, type, selection) {
- if (mode == -1) {
- cm.dispose();
- } else {
- if (mode == 0) {
- cm.dispose();
- return;
- }
- if (mode == 1)
- status++;
- else
- status--;
- if (status == 0) {
- cm.sendYesNo("Hello there, do you want to check the rankings?");
- } else if (status == 1) {
- cm.sendSimple("Pick an option :\r\n\r\n#b#L100#Total#l\r\n\r\n#rJobs#k :#b\r\n#L6#Beginner#l\r\n#L1#Warrior#l\r\n#L2#Magician#l\r\n#L3#Bowman#l\r\n#L4#Thief#l\r\n#L5#Pirate#l#b\r\n#L10#Nobless#l\r\n#L11#Dawn Warrior#l\r\n#L12#Blaze Wizard#l\r\n#L13#Wind Archer#l\r\n#L14#Night Walker#l\r\n#L15#Thunder Breaker#l\r\n\r\n#b#L7#Search my rank!#l\r\n\r\n#k If you are the top 20 ranking in overall, your name will shine at the server website!");
- } else if (status == 2) {
- var haha;
- switch (selection) {
- case 1:
- haha = "warrior";
- break;
- case 2:
- haha = "magician";
- break;
- case 3:
- haha = "bowman";
- break;
- case 4:
- haha = "thief";
- break;
- case 5:
- haha = "pirate";
- break;
- case 6:
- haha = "beginner";
- break;
- case 7:
- haha = "me";
- break;
- case 10:
- haha = "nobless";
- break;
- case 11:
- haha = "cyg1";
- break;
- case 12:
- haha = "cyg2";
- break;
- case 13:
- haha = "cyg3";
- break;
- case 14:
- haha = "cyg4";
- break;
- case 15:
- haha = "cyg5";
- break;
- case 100:
- haha = "total";
- break;
- default:
- haha = "";
- break;
- }
- cm.sendOk(cm.ranking(haha));
- cm.dispose();
- } else {
- cm.dispose();
- }
- }
- }
Add Comment
Please, Sign In to add comment