xrune

Duke Horacio (stage 0)

Apr 1st, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. NpcTalk("Greetings. Welcome to my castle.");
  2. int choice = showMenu(new String[] {"Have you any quests for me?", "Where can I find money?"});
  3. if(choice == 0) {
  4. anyquests();
  5. } else if(choice == 1) {
  6. money();
  7. }
  8. }
  9. private void anyquests() {
  10. NpcTalk("Well, it's not really a quest but I recently discovered this strange talisman.");
  11. NpcTalk("It seems to be mystical and I have never seen anything like it before.");
  12. NpcTalk("Would you take it to the head wizard at the Wizards' Tower for me?");
  13. NpcTalk("It's just south-west of here and should not take you very long at all.");
  14. NpcTalk("I would be awfully grateful.");
  15. int choice = showMenu(new String[] {"Sure, no problem.", "Not right now."});
  16. if(choice == 0) {
  17. noproblem();
  18. } else if(choice == 1) {
  19. notnow();
  20. }
  21. }
  22. private void noproblem() {
  23. NpcTalk("Thank you very much, stranger. I am sure the head wizard will");
  24. NpcTalk("reward you for such an interesting find.");
  25. SendMessage("The Duke hands you an air talisman.");
  26. AddItem("air talisman");
  27. }
  28. }
  29. private void notnow() {
  30. NpcTalk("As you wish, stranger, although I have this strange feeling that");
  31. NpcTalk("it is important. Unfortunately, I cannot leave my castle unattended.");
  32. }
  33. }
  34. private void money() {
  35. NpcTalk("Ive heard that the blacksmiths are prosperous amongst the peasantry");
  36. NpcTalk("Maybe you could try your hand at that?");
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment