Advertisement
Guest User

Untitled

a guest
Mar 26th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.     NPC Name:       Arec
  3.     Map(s):         El Nath : Chief's Residence
  4.     Description:    Quest - [Job Advancement]Blade Lord
  5. */
  6. var status = -1;
  7.  
  8. function start(mode, type, selection) {
  9.     if (mode == -1) {
  10.     qm.dispose();
  11.     } else {
  12.     if (mode == 1)
  13.         status++;
  14.     else
  15.         status--;
  16.  
  17.     if (status == 0) {
  18.         if (qm.getPlayer().getJob() == 530) {
  19.         qm.sendNext("All you have to do is go where I tell you, beat an enemy, and bring back the spoils... If you don't think you can handle that, go back to Victoria Island now. Ossyria is no place for weaklings.");
  20.     } else if (status == 1) {
  21.         qm.sendNextPrev("There is an obelisk at Sharp Cliff I near El Nath. Behind it, there's a path to the Holy Ground at the Snowfield. Touch the Holy Stone there, and you'll be warped to another dimension. Your enemy is waiting for you there.");
  22.     } else if (status == 2) {
  23.         qm.sendNextPrev("Bring me proof of your victory, and we'll see if you're ready.");
  24.     } else if (status == 3) {
  25.         qm.forceStartQuest();
  26.         qm.dispose();
  27.     }
  28.     }
  29. }
  30. }
  31. function end(mode, type, selection) {
  32.     if (mode == -1) {
  33.     qm.dispose();
  34.     } else {
  35.     if (mode == 1)
  36.         status++;
  37.     else
  38.         status--;
  39.     if (status == 0) {
  40.         if (!qm.haveItem(4031059)) {
  41.         qm.sendOk("Very good. Now come back to me when you have received #i4031059");
  42.         qm.forceStartQuest();
  43.         qm.dispose();
  44.         } else {
  45.         qm.getPlayer().changeJob(531);
  46.         qm.gainSp(3);
  47.         qm.sendOk("You have advanced to Cannon Trooper. Good luck, see you again at level 120.");
  48.         qm.forceCompleteQuest();
  49.         qm.dispose();
  50.          }
  51.     }
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement