SorrowHarvest

Untitled

Mar 31st, 2022
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.41 KB | None | 0 0
  1. private Dialogue getEndDialogue() {
  2.         return new Dialogue() {
  3.             int stage = 0;
  4.  
  5.             @Override
  6.             public void start() {
  7.                 sendEntityDialogue(Dialogue.IS_NPC, target != null ? target.getName() : "", target != null ? target.getId() : 0, 9760, "Ahy.. so you are.. " + player.getDisplayName() + "?", "You have one perpose... to collect souls!!!");
  8.             }
  9.  
  10.             public void run(int interfaceId, int componentId) {
  11.                 if (stage == 0) {
  12.                     sendEntityDialogue(Dialogue.IS_PLAYER, -1, 9760, "Wait! What the fuck... You want souls?");
  13.                     stage = 1;
  14.                 } else if (stage == 1) {
  15.                     sendEntityDialogue(Dialogue.IS_NPC, target != null ? target.getName() : "", target != null ? target.getId() : 0, 9760, "Yes.. nor worship or praise is worth the taste of a pure soul...");
  16.                     stage = 2;
  17.                 } else if (stage == 2) {
  18.                     sendEntityDialogue(Dialogue.IS_PLAYER, -1, 9760, "Whatever... so how would I get ahold of these souls?");
  19.                     stage = 3;
  20.                 } else if (stage == 3) {
  21.                     sendEntityDialogue(Dialogue.IS_PLAYER, -1, 9760, "And what would some poor sap like me get in return?");
  22.                     stage = 4;
  23.                 } else if (stage == 4) {
  24.                     sendEntityDialogue(Dialogue.IS_NPC, target != null ? target.getName() : "", target != null ? target.getId() : 0, 9760,
  25.                                                                                                 "First... a soul is what you call energy.. and of course all comes with a price..",
  26.                                                                                                 "Damnation is upon this world and you have the power to control parts of the world...",
  27.                                                                                                 "You play a game of do or try dying.. and win glory upon grace.. granting you power....",
  28.                                                             "Within another realm.. Here in Ragnak you praise judgment upon this world.");
  29.                     stage = 5;
  30.                 } else if (stage == 5) {
  31.                     sendEntityDialogue(Dialogue.IS_NPC, target != null ? target.getName() : "", target != null ? target.getId() : 0, 17423, "I can address myself as the Lord of all Chaos and Destruction, Conviction and Damnation!!");
  32.                     stage = 6;
  33.                 } else if (stage == 6) {
  34.                     sendEntityDialogue(Dialogue.IS_NPC, target != null ? target.getName() : "", target != null ? target.getId() : 0, 17459, "I can address myself as the Lord of all Life and Peace, Tranquility and Redemption");
  35.                     stage = 7;
  36.                 } else if (stage == 7) {
  37.                     sendEntityDialogue(Dialogue.IS_PLAYER, -1, 9760, "Okay, that's nice..", "I think i know the whole idea of this thing... a price of my own soul for the worth all what I can collect..?");
  38.                     stage = 8;
  39.                 } else if (stage == 8) {
  40.                     sendEntityDialogue(Dialogue.IS_NPC, target != null ? target.getName() : "", target != null ? target.getId() : 0, 16971, "There must be a balance.... unless you are a betting man..");
  41.                     stage = 9;
  42.                 } else if (stage == 9) {
  43.                     sendEntityDialogue(Dialogue.IS_PLAYER, -1, 9760, "A game is a game is not?");
  44.                     stage = 11;
  45.                 } else if (stage == 11) {
  46.                     sendEntityDialogue(Dialogue.IS_NPC, target != null ? target.getName() : "", target != null ? target.getId() : 0, 12379, "Agreed.. lets sign the contract.. shall we??");
  47.                     stage = 12;
  48.                 } else if (stage == 12) {
  49.                     sendOptionsDialogue("Choose over Darkness, Shadow, or Light",
  50.                         "Darkness of Demonic Power",            // OPTION_1
  51.                         "Shadows of Balance",           // OPTION_2
  52.                         "Light-bringer of Faith"        // OPTION_3
  53.                         );
  54.                     stage = 13;
  55.                 } else if (stage == 13) {
  56.                     player.setXpRateMode(2);
  57.                     if (componentId == OPTION_1)
  58.                         player.getInventory().addItem(new Item(11708, 1)); // Zamorak hilt
  59.                     else if (componentId == OPTION_2)
  60.                         player.getInventory().addItem(new Item(22420, 1)); // Illuminated Ancient Book
  61.                     else if (componentId == OPTION_3)
  62.                         player.getInventory().addItem(new Item(11706, 1)); // Saradomin hilt
  63.                    
  64.                     sendEntityDialogue(Dialogue.IS_NPC, target != null ? target.getName() : "", target != null ? target.getId() : 0, 9760, "You now hold the power with in you hands to gather souls in" + Settings.SERVER_NAME + "!<br>", "Good luck!");
  65.                     stage = 14;
  66.                 } else if (stage == 14) {
  67.                     sendEntityDialogue(Dialogue.IS_PLAYER, -1, 9760, "Wow... cool.. alright..");
  68.                     stage = 15;
  69.                 } else if (stage == 15) {
  70.                     sendDialogue("Power is manifesting from an altered dimension..<br>You feel your bag getting heavier..");
  71.                     stage = 16;
  72.                 } else {
  73.                     end();
  74.                 }
  75.             }
  76.  
Add Comment
Please, Sign In to add comment