Advertisement
Guest User

Untitled

a guest
Mar 1st, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. package com.rs.game.player.dialogues;
  2.  
  3. import com.rs.game.WorldTile;
  4. import com.rs.game.player.content.custom.RunePortal;
  5. import com.rs.game.player.dialogues.Dialogue;
  6.  
  7. /**
  8. *
  9. * @author: Skype = Hanlinboy9
  10. *
  11. */
  12.  
  13. public class LegacyW2 extends Dialogue {
  14.  
  15. /**
  16. * Starts The Tutorial.
  17. */
  18.  
  19. @Override
  20. public void start() {
  21. player.getPackets().sendConfig(1021, 2); //Flashing Icon
  22. sendDialogue("Welcome to the <col=2888ff>Legacy Tutorial</col>," + player.getUsername() + ".",
  23. "Please click the highlighted pointed tab, then we may continue.");
  24. stage = 2;
  25. }
  26.  
  27. /**
  28. * Second Stage of Tutorial.
  29. */
  30.  
  31. @Override
  32. public void run(int interfaceId, int componentId) {
  33. if (stage == 2) {
  34. player.lock();
  35. sendDialogue("This is the <col=ff0000><shad=ffffff>Information Tab</col></shad>."+
  36. "This is where you can view all your information for the game; it will show many sorts of things.");
  37. stage = 3;
  38. }
  39.  
  40. /**
  41. * Third Stage of Tutorial.
  42. */
  43.  
  44. else if (stage == 3) {
  45. player.getPackets().sendConfig(1021, 0);
  46. player.setNextWorldTile(new WorldTile(2765, 3512, 0));
  47. sendDialogue("Now Let's Show you what the portals are used for.");
  48. stage = 4;
  49. }
  50.  
  51. /**
  52. * Fourth Stage of Tutorial.
  53. */
  54.  
  55. else if (stage == 4) {
  56. sendDialogue("This is the <col=00ff00>Green Portal/Minigames Portal</col>, Clicking this portal will show you all of the Minigames Teleports that <col=2888ff>Legacy</col> has to offer.");
  57. stage = 5;
  58. }
  59.  
  60. /**
  61. * Sixth Stage of Tutorial.
  62. */
  63.  
  64. else if (stage == 6) {
  65. player.setNextWorldTile(new WorldTile(2765, 3508, 0));
  66. sendDialogue("This is the <col=ff0000>Red Portal/Wildy Portal</col>, Clicking this portal will show you all Wildy Teleports that <col=2888ff>Legacy</col> has to offer.");
  67. stage = 7;
  68. }
  69.  
  70. /**
  71. * Fifth Stage of Tutorial.
  72. */
  73.  
  74. else if (stage == 5) {
  75. player.setNextWorldTile(new WorldTile(2765, 3510, 0));
  76. sendDialogue("This is the <col=0000ff>Blue Portal/PVM Portal</col>, Clicking this portal will show you all the Monster/Boss Teleports that <col=2888ff>Legacy</col> has to offer.");
  77. stage = 6;
  78. }
  79.  
  80. /**
  81. * The Seventh Stage of Tutorial.
  82. */
  83.  
  84. else if (stage == 7) {
  85. player.setNextWorldTile(new WorldTile(2765, 3506, 0));
  86. sendDialogue("This is the <col=2888ff>Shopping Area Portal</col>, Clicking this will take you to the shopping area. I'll take you inside.");
  87. stage = 8;
  88. }
  89.  
  90. /**
  91. * The Eighth Stage of Tutorial.
  92. */
  93.  
  94. else if (stage == 8) {
  95. player.setNextWorldTile(new WorldTile(2762, 3513, 1));
  96. sendDialogue("This is the <col=2888ff>Shopping Center</col>, you may be confused about who sells what? Well that's easy; The Owners "+
  97. "have already named the npc by what they sell. So just Right Click, the rest is easy to figure out.");
  98. stage = 9;
  99. }
  100.  
  101. /**
  102. * The Ninth Stage of Tutorial.
  103. */
  104.  
  105. else if (stage == 9) {
  106. player.setNextWorldTile(new WorldTile(2758, 3513, 0));
  107. sendDialogue("<col=2888ff>Legacy</col> has very many commands, such as train, dailytask, etc. You can view the full list by typing, ';;commands' ");
  108. stage = 10;
  109. }
  110.  
  111. /**
  112. * The Tenth Stage of Tutorial.
  113. */
  114.  
  115. else if (stage == 10) {
  116. player.setNextWorldTile(new WorldTile(2753, 3516, 0));
  117. sendDialogue("<col=2888ff>Legacy</col> has one last feature,",
  118. " This is the Grand Exchange(G.E for short)",
  119. " Players Can upload items, and if someone wishes to buy them, they can! Even when the player isn't even on!");
  120. stage = 11;
  121. }
  122.  
  123. /*
  124. /**
  125. * The Eleventh Stage of Tutorial.
  126. */
  127.  
  128. else if (stage == 11) {
  129. player.setNextWorldTile(new WorldTile(2758, 3513, 0));
  130. sendDialogue("Now You're All Set. <col=2888ff>Legacy</col> Wishes You The Best Of Luck =)",
  131. " Thanks for sticking around, and going through this full tutorial, he's your reward as promised.",
  132. " Enjoy Playing! And Have a good day!");
  133. player.getBank().addItem(995, 3000000, true);
  134. player.getBank().addItem(536, 25, true);
  135. player.getBank().addItem(18830, 5, true);
  136. player.unlock();
  137. stage = 12;
  138. }
  139.  
  140.  
  141. else if (stage == 12) {
  142. end();
  143. player.unlock();
  144. }
  145. }
  146.  
  147. @Override
  148. public void finish() {
  149. // TODO Auto-generated method stub
  150.  
  151. }
  152.  
  153. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement