Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function start() {
  2.     status = -1;
  3.     action(1, 0, 0);
  4. }
  5.  
  6. function action(mode, type, selection) {
  7.     if (mode == -1) {
  8.         cm.dispose();
  9.     } else {
  10.         if (status >= 0 && mode == 0) {
  11.             cm.sendOk("#eGoogbye then.");
  12.             cm.dispose();
  13.             return;
  14.         }
  15.         if (mode == 1)
  16.             status++;
  17.         else
  18.             status--;
  19.         if (status == 0) {
  20.         cm.sendYesNo("#eWould you like your skills to be maxed?");
  21.         }
  22.         else if (status == 1) {
  23.         cm.getPlayer().maxAllSkills();
  24.         cm.sendOk("#eYour skills have been maxed!");
  25.         cm.dispose();
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement