Advertisement
Guest User

Untitled

a guest
Jun 25th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. switch(id) {
  2. case COOK:
  3. switch(d.getChatId()) {
  4. case 1:
  5. d.sendNpcChat("You're not aristocracy but I suppose you'd do. Do you", "want a glad cook for 3000 coins?");
  6. return true;
  7. case 2:
  8. d.sendOption("What can you do?", "Tell me about your previous jobs.", "You're hired!");
  9. return true;
  10. case 3:
  11. d.sendPlayerChat(d.tempStrings[optionId - 1]); /*Magic trick for sending player chat that is exactly what option they clicked*/
  12. switch(optionId) { //Which option they just clicked, 1, 2, etc
  13. //No need for case 1, it just returns true and goes to 4 below
  14. case 2:
  15. d.setNextChatId(50);
  16. break;
  17. case 3:
  18. d.setNextChatId(100);
  19. break;
  20. }
  21. return true;
  22. case 4:
  23. d.sendNpcChat("I, madam, am the finest cook in all Vidyascape! I can", "also make good time going to the bank or the sawmill."); //gibe
  24. //Dialogue closes when you hit continue on this panel so we add
  25. d.endDialogue();
  26. return true;
  27.  
  28. case 50: //From 'Tell me about your previous jobs."
  29. d.sendNpcChat("I used to be the cook for the old Duke of Lumbridge.", "Visiting dignitaries praised me for my fine banquets!"); //de
  30. return true;
  31. case 51:
  32. d.sendNpcChat("But then someone found a rule that said only one", "family could hold that post");
  33. //Next shit
  34. return true;
  35. case 52:
  36. d.sendNpcChat("Overnight I was fired and replaced by some fool who", "can't even bake a cake without help!");
  37. d.endDialogue();
  38. return true;
  39.  
  40. case 100: //From 'You're hired!'
  41. d.sendNpcChat("Hmph! I don't work for just anyone, you know! I", "refuse to work for someone who's below level 30", "Construction!"); //succ
  42. d.endDialogue();
  43. return true;
  44. case 101:
  45. //Next shit
  46. //No additional dialogue for the cook was in the video
  47. return true;
  48. }
  49. return false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement