Advertisement
Nmb1Gamer

Untitled

Feb 3rd, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var status;
  2.  
  3. function start() {
  4.     status = -1;
  5.     action(1, 0, 0);
  6. }
  7.  
  8. function action(mode, type, selection) {
  9.     /*if (mode == 1) {
  10.         status++;
  11.     }else{ // States that if you click End Chat or No, status goes down by 1
  12.         status--;
  13.     } */
  14.     if (mode == 0) { // If player selects End Chat
  15.         cm.dispose();
  16.         return;
  17.     } else { // If player does not select End Chat
  18.         if (mode == 1) { // If player selects Next or Yes
  19.             status++;
  20.         } else { // If player selects Prev or No
  21.             status--;
  22.         }
  23.     }
  24.     if (status == 0) { // First box
  25.         if (mode == 0) { // If the player hits no in status 2
  26.             cm.sendOk ("Thank you for not robbing or hurting me!!!")
  27.             cm.dispose();
  28.             //return; <--- Unnecessary
  29.         } else { // What the text box shows normally
  30.             cm.sendNext("Please don't hurt me, I'm a homeless!");
  31.         }
  32.     } else if (status == 1) { // Second Box
  33.         cm.sendYesNo("#bYou have a oppurtunity to steal his goods, he's been saving for years, you hesitate, what is your choice? Will you steal it?");
  34.     } else if (status == 2) { // If player hits Yes in Status 2, value of status goes up by one
  35.         cm.sendOk ("Thank you for not robbing or hurting me!!!")
  36.         cm.dispose();
  37.         //return; <--- Unnecessary
  38.     }
  39.     /*if (mode == 0) {
  40.         cm.sendOk ("Thank you for not robbing or hurting me!!!")
  41.         cm.dispose();
  42.         return;
  43.     } else if (mode == 1) {
  44.         cm.gainItem (2000005, 100)
  45.         cm.warp (100000000, 0)
  46.         cm.dispose();
  47.         return;
  48.     }*/ // Unnecessary portion
  49.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement