Advertisement
Guest User

Lens Of Magic Quest

a guest
Jul 24th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. // Created by Princessbr
  2. Main
  3. {
  4. questname "The Lens of Magic"
  5. version 1.0
  6. }
  7.  
  8. state Begin
  9. {
  10. desc "Talk to Lens Specialist"
  11. action AddNpcText(129, "Hello there fellow citizen, how are you today?");
  12. action AddNpcInput(129,1, "Go away");
  13. action AddNpcInput(129,2, "Exploring");
  14. rule InputNpc(1)goto Reset
  15. rule InputNpc(2)goto Talk1
  16. }
  17. state Talk1
  18. {
  19. desc "Talk to Lens Specialist"
  20. action AddNpcText(129, "Well, that's great i used to be a guard for the imperial castle in aeven..");
  21. action AddNpcText(129, " But I was obsessed with the Lens of Magic ");
  22. action AddNpcText(129, " I tried to take hundreds of her, but I only got one ");
  23. action AddNpcText(129, "I have an idea actually..");
  24. action AddNpcText(129, " If you give me what I need to get another one of her, and a few more things, I'll give you ");
  25. action AddNpcText(129, " IF.. you can kill some Hell Guardians for me ");
  26. action AddNpcInput(129,1, "No way!");
  27. action AddNpcInput(129,2, "I'm on it!");
  28. rule InputNpc(1)goto Reset
  29. rule InputNpc(2)goto Kill
  30. }
  31. state Kill
  32. {
  33. desc "Kill 50 Hell Guardians"
  34. action ShowHint("Quest Reward: 50000 exp, and a Lens of Magic!")
  35. action AddNpcText(129, "Wonderful, now get hunting!");
  36. rule KilledNpcs(129,50)goto Specialist
  37. }
  38. state Specialist
  39. {
  40. desc "Talk to Lens Specialist"
  41. action ShowHint("Return to the Lens Specialist!")
  42. action AddNpcText(129, "Wasn't hard was it? heh.");
  43. action AddNpcText(129, "Now collect 100 imp stings for me");
  44. action AddNpcInput(129,1, "I give up");
  45. action AddNpcInput(129,2, "I'm on it!");
  46. rule InputNpc(1)goto Reset
  47. rule InputNpc(2)goto Stings
  48. }
  49. state Stings
  50. {
  51. desc "Collect Imp Stings"
  52. rule GotItems(400,100)goto Specialist2
  53. }
  54. state Specialist2
  55. {
  56. desc "Talk to Lens Specialist"
  57. action ShowHint("You got the stings, return to the Lens Specialist!")
  58. action AddNpcText(129, "Now collect 3 chaos wings for me");
  59. action AddNpcInput(129,1, "I give up");
  60. action AddNpcInput(129,2, "I'm on it!");
  61. action RemoveItem(400,100);
  62. rule InputNpc(1)goto Reset
  63. rule InputNpc(2)goto Wings
  64. }
  65. state Wings
  66. {
  67. desc "Collect Chaos Wings"
  68. rule GotItems(IDK,3)goto Specialist3 // Put the ID Chaos Wing here
  69. }
  70. state Specialist3
  71. {
  72. desc "Talk to Lens Specialist"
  73. action ShowHint("You got the Wings, return to the Lens Specialist!")
  74. action AddNpcText(129, " Now I just need a lens of truth.");
  75. action AddNpcText(129, " Talk to Serf in the swamp and give me the Lens of Truth.");
  76. action AddNpcInput(129,1, "I give up");
  77. action AddNpcInput(129,2, " I'll give you the lens of truth.");
  78. action RemoveItem(IDK,3); //Put the ID Chaos Wing here
  79. rule InputNpc(1)goto Reset
  80. rule InputNpc(2)goto Lens
  81. }
  82. state Lens
  83. {
  84. desc "Take the lens of truth."
  85. rule GotItems(421,1)goto Specialist4
  86. }
  87. state Specialist4
  88. {
  89. desc "Talk to Lens Specialist."
  90. action ShowHint("You got the Lens, return to the Lens Specialist!")
  91. action AddNpcText(129, "You are an Official Lens Specialist!");
  92. action AddNpcInput(129,1, "Thank You");
  93. rule InputNpc(1)goto GetReward
  94. }
  95. state GetReward
  96. {
  97. action ShowHint("You gained 50000 exp and a Lens of Magic!")
  98. action GiveItem(IDK,1); // Put the ID Lens of Magic here
  99. action GiveExp(50000);
  100. action RemoveItem(421,1);
  101. action PlaySound(17);
  102. action End();
  103. }
  104. state Reset
  105. {
  106. action ShowHint("The Specialist Lens quest aborted..")
  107. action Reset(); // requires to talk
  108. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement