Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.rs.game.player.dialogues;
- import com.rs.game.WorldTile;
- import com.rs.game.player.content.custom.RunePortal;
- import com.rs.game.player.dialogues.Dialogue;
- /**
- *
- * @author: Skype = Hanlinboy9
- *
- */
- public class LegacyW2 extends Dialogue {
- /**
- * Starts The Tutorial.
- */
- @Override
- public void start() {
- player.getPackets().sendConfig(1021, 2); //Flashing Icon
- sendDialogue("Welcome to the <col=2888ff>Legacy Tutorial</col>," + player.getUsername() + ".",
- "Please click the highlighted pointed tab, then we may continue.");
- stage = 2;
- }
- /**
- * Second Stage of Tutorial.
- */
- @Override
- public void run(int interfaceId, int componentId) {
- if (stage == 2) {
- player.lock();
- sendDialogue("This is the <col=ff0000><shad=ffffff>Information Tab</col></shad>."+
- "This is where you can view all your information for the game; it will show many sorts of things.");
- stage = 3;
- }
- /**
- * Third Stage of Tutorial.
- */
- else if (stage == 3) {
- player.getPackets().sendConfig(1021, 0);
- player.setNextWorldTile(new WorldTile(2765, 3512, 0));
- sendDialogue("Now Let's Show you what the portals are used for.");
- stage = 4;
- }
- /**
- * Fourth Stage of Tutorial.
- */
- else if (stage == 4) {
- 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.");
- stage = 5;
- }
- /**
- * Sixth Stage of Tutorial.
- */
- else if (stage == 6) {
- player.setNextWorldTile(new WorldTile(2765, 3508, 0));
- 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.");
- stage = 7;
- }
- /**
- * Fifth Stage of Tutorial.
- */
- else if (stage == 5) {
- player.setNextWorldTile(new WorldTile(2765, 3510, 0));
- 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.");
- stage = 6;
- }
- /**
- * The Seventh Stage of Tutorial.
- */
- else if (stage == 7) {
- player.setNextWorldTile(new WorldTile(2765, 3506, 0));
- sendDialogue("This is the <col=2888ff>Shopping Area Portal</col>, Clicking this will take you to the shopping area. I'll take you inside.");
- stage = 8;
- }
- /**
- * The Eighth Stage of Tutorial.
- */
- else if (stage == 8) {
- player.setNextWorldTile(new WorldTile(2762, 3513, 1));
- sendDialogue("This is the <col=2888ff>Shopping Center</col>, you may be confused about who sells what? Well that's easy; The Owners "+
- "have already named the npc by what they sell. So just Right Click, the rest is easy to figure out.");
- stage = 9;
- }
- /**
- * The Ninth Stage of Tutorial.
- */
- else if (stage == 9) {
- player.setNextWorldTile(new WorldTile(2758, 3513, 0));
- sendDialogue("<col=2888ff>Legacy</col> has very many commands, such as train, dailytask, etc. You can view the full list by typing, ';;commands' ");
- stage = 10;
- }
- /**
- * The Tenth Stage of Tutorial.
- */
- else if (stage == 10) {
- player.setNextWorldTile(new WorldTile(2753, 3516, 0));
- sendDialogue("<col=2888ff>Legacy</col> has one last feature,",
- " This is the Grand Exchange(G.E for short)",
- " Players Can upload items, and if someone wishes to buy them, they can! Even when the player isn't even on!");
- stage = 11;
- }
- /*
- /**
- * The Eleventh Stage of Tutorial.
- */
- else if (stage == 11) {
- player.setNextWorldTile(new WorldTile(2758, 3513, 0));
- sendDialogue("Now You're All Set. <col=2888ff>Legacy</col> Wishes You The Best Of Luck =)",
- " Thanks for sticking around, and going through this full tutorial, he's your reward as promised.",
- " Enjoy Playing! And Have a good day!");
- player.getBank().addItem(995, 3000000, true);
- player.getBank().addItem(536, 25, true);
- player.getBank().addItem(18830, 5, true);
- player.unlock();
- stage = 12;
- }
- else if (stage == 12) {
- end();
- player.unlock();
- }
- }
- @Override
- public void finish() {
- // TODO Auto-generated method stub
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement