Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NpcTalk("Greetings. Welcome to my castle.");
- int choice = showMenu(new String[] {"Have you any quests for me?", "Where can I find money?"});
- if(choice == 0) {
- anyquests();
- } else if(choice == 1) {
- money();
- }
- }
- private void anyquests() {
- NpcTalk("Well, it's not really a quest but I recently discovered this strange talisman.");
- NpcTalk("It seems to be mystical and I have never seen anything like it before.");
- NpcTalk("Would you take it to the head wizard at the Wizards' Tower for me?");
- NpcTalk("It's just south-west of here and should not take you very long at all.");
- NpcTalk("I would be awfully grateful.");
- int choice = showMenu(new String[] {"Sure, no problem.", "Not right now."});
- if(choice == 0) {
- noproblem();
- } else if(choice == 1) {
- notnow();
- }
- }
- private void noproblem() {
- NpcTalk("Thank you very much, stranger. I am sure the head wizard will");
- NpcTalk("reward you for such an interesting find.");
- SendMessage("The Duke hands you an air talisman.");
- AddItem("air talisman");
- }
- }
- private void notnow() {
- NpcTalk("As you wish, stranger, although I have this strange feeling that");
- NpcTalk("it is important. Unfortunately, I cannot leave my castle unattended.");
- }
- }
- private void money() {
- NpcTalk("Ive heard that the blacksmiths are prosperous amongst the peasantry");
- NpcTalk("Maybe you could try your hand at that?");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment