Advertisement
Guest User

Untitled

a guest
May 27th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.65 KB | None | 0 0
  1. package com.rs.game.player.dialogues;
  2.  
  3. import com.rs.Settings;
  4. import com.rs.game.player.controlers.WelcomeTutorial;
  5.  
  6. public class NewPlayer extends Dialogue {
  7.  
  8.     int params;
  9.     WelcomeTutorial controler;
  10.    
  11.     @Override
  12.     public void start() {
  13.         params = (Integer) parameters[0];
  14.         controler = (WelcomeTutorial) parameters[1];
  15.        
  16.         if (controler == null) {
  17.             sendDialogue("Please use the '" + Settings.HELP_CC_NAME + "' friends chat if you need help.");
  18.             //stage = end
  19.         } else {
  20.             switch(params) {
  21.             case 0:
  22.                 sendDialogue("Welcome to " + Settings.FORMAL_SERVER_NAME + ", before we begin please choose some options for your account set up.");
  23.                 stage = -3;
  24.                 break;
  25.             case 1:
  26.                 sendDialogue("Now that your appearance is set up let's quickly discuss game funadmentals.");
  27.                 stage = 4;
  28.                 break;
  29.             }
  30.         }
  31.     }
  32.  
  33.     @Override
  34.     public void run(int interfaceId, int componentId) {
  35.        
  36.         if (stage == -3) {
  37.             stage = -2;
  38.             sendOptionsDialogue("Tutorial Type", "Classic Tutorial (Starter Package)", "Quick Tutorial (Mini Package)");
  39.         }
  40.        
  41.         if (stage == -2) {
  42.             switch(componentId) {
  43.             case OPTION_1:
  44.                 sendDialogue("This is a server where you must earn your items and skills. Join the "
  45.                         + Settings.HELP_CC_NAME + " friends chat channel if you require any help or get stuck on something. "
  46.                                 + "Our staff and players are all friendly and willing to help!");
  47.                 stage = 0;
  48.                 break;
  49.             case OPTION_2:
  50.                 sendDialogue("We will now set-up your appearance");
  51.                 stage = -1;
  52.                 break;
  53.             }
  54.         }
  55.        
  56.         switch(stage) {
  57.         case -1:
  58.             controler.updateProgress();
  59.             end();
  60.             break;
  61.         case 0:
  62.             sendDialogue("To start off, chances are you will want some basic items. We will provide you with a simple starter kit."
  63.                     + " If you need anything however you can almost always find it on the Grand Exchange located inside the bank."
  64.                     + " Some items will be unlimited such as foods, potions, and armours common to pking.");
  65.             break;
  66.         case 1:
  67.             sendDialogue("More rare items will be obtainable in a few other ways, items such as Armadyl Godswords, Dragon Claws, Divine Spirit Shields,"
  68.                     + " etc. will be items you must kill the corisponding bosses for or purchase from a player who has done so either via direct trade"
  69.                     + " or Grand Exchange. Another way would be to go to the fully functional duel arena. The fastest way to get there is with a "
  70.                     + "ring of duelling.");
  71.             break;
  72.         case 2:
  73.             sendDialogue("Now let's set up your appearance, to set your appearance normally you will talk to the Makeover Mage");
  74.             break;
  75.         case 3:
  76.             controler.updateProgress();
  77.             end();
  78.             break;
  79.         case 4:
  80.             sendDialogue("To teleport you can talk to the Wise Old Man located near the general store, you should be able to see him.");
  81.             break;
  82.         case 5:
  83.             sendDialogue("To train your Slayer skill please talk to Kuradal located South of the Edgeville bank near the coffins.");
  84.             break;
  85.         case 6:
  86.             sendDialogue("Training your combat skills should be easy enough, you can set your combat xp rate by talking to "
  87.                     + "the Experience Manager in the Edgeville bank.");
  88.             break;
  89.         case 7:
  90.             sendDialogue("Why don't you try talking to the Experience Manager now and setting your xp rate to x500?");
  91.             break;
  92.         case 8:
  93.             controler.updateProgress();
  94.             end();
  95.             break;
  96.         case 9:
  97.             sendDialogue("You are making great progress so far, to reset a level talk to Mandrith. Mandrith will charge 1,000,000 coins to reset"
  98.                     + " a combat level and can reset your Attack, Strength, Defence, ");
  99.             break;
  100.         }
  101.         stage++;
  102.     }
  103.  
  104.     @Override
  105.     public void finish() {
  106.         // TODO Auto-generated method stub
  107.        
  108.     }
  109.  
  110.    
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement