Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Dialogue getEndDialogue() {
- return new Dialogue() {
- int stage = 0;
- @Override
- public void start() {
- 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!!!");
- }
- public void run(int interfaceId, int componentId) {
- if (stage == 0) {
- sendEntityDialogue(Dialogue.IS_PLAYER, -1, 9760, "Wait! What the fuck... You want souls?");
- stage = 1;
- } else if (stage == 1) {
- 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...");
- stage = 2;
- } else if (stage == 2) {
- sendEntityDialogue(Dialogue.IS_PLAYER, -1, 9760, "Whatever... so how would I get ahold of these souls?");
- stage = 3;
- } else if (stage == 3) {
- sendEntityDialogue(Dialogue.IS_PLAYER, -1, 9760, "And what would some poor sap like me get in return?");
- stage = 4;
- } else if (stage == 4) {
- sendEntityDialogue(Dialogue.IS_NPC, target != null ? target.getName() : "", target != null ? target.getId() : 0, 9760,
- "First... a soul is what you call energy.. and of course all comes with a price..",
- "Damnation is upon this world and you have the power to control parts of the world...",
- "You play a game of do or try dying.. and win glory upon grace.. granting you power....",
- "Within another realm.. Here in Ragnak you praise judgment upon this world.");
- stage = 5;
- } else if (stage == 5) {
- 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!!");
- stage = 6;
- } else if (stage == 6) {
- 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");
- stage = 7;
- } else if (stage == 7) {
- 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..?");
- stage = 8;
- } else if (stage == 8) {
- 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..");
- stage = 9;
- } else if (stage == 9) {
- sendEntityDialogue(Dialogue.IS_PLAYER, -1, 9760, "A game is a game is not?");
- stage = 11;
- } else if (stage == 11) {
- sendEntityDialogue(Dialogue.IS_NPC, target != null ? target.getName() : "", target != null ? target.getId() : 0, 12379, "Agreed.. lets sign the contract.. shall we??");
- stage = 12;
- } else if (stage == 12) {
- sendOptionsDialogue("Choose over Darkness, Shadow, or Light",
- "Darkness of Demonic Power", // OPTION_1
- "Shadows of Balance", // OPTION_2
- "Light-bringer of Faith" // OPTION_3
- );
- stage = 13;
- } else if (stage == 13) {
- player.setXpRateMode(2);
- if (componentId == OPTION_1)
- player.getInventory().addItem(new Item(11708, 1)); // Zamorak hilt
- else if (componentId == OPTION_2)
- player.getInventory().addItem(new Item(22420, 1)); // Illuminated Ancient Book
- else if (componentId == OPTION_3)
- player.getInventory().addItem(new Item(11706, 1)); // Saradomin hilt
- 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!");
- stage = 14;
- } else if (stage == 14) {
- sendEntityDialogue(Dialogue.IS_PLAYER, -1, 9760, "Wow... cool.. alright..");
- stage = 15;
- } else if (stage == 15) {
- sendDialogue("Power is manifesting from an altered dimension..<br>You feel your bag getting heavier..");
- stage = 16;
- } else {
- end();
- }
- }
Add Comment
Please, Sign In to add comment