Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch(id) {
- case COOK:
- switch(d.getChatId()) {
- case 1:
- d.sendNpcChat("You're not aristocracy but I suppose you'd do. Do you", "want a glad cook for 3000 coins?");
- return true;
- case 2:
- d.sendOption("What can you do?", "Tell me about your previous jobs.", "You're hired!");
- return true;
- case 3:
- d.sendPlayerChat(d.tempStrings[optionId - 1]); /*Magic trick for sending player chat that is exactly what option they clicked*/
- switch(optionId) { //Which option they just clicked, 1, 2, etc
- //No need for case 1, it just returns true and goes to 4 below
- case 2:
- d.setNextChatId(50);
- break;
- case 3:
- d.setNextChatId(100);
- break;
- }
- return true;
- case 4:
- 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
- //Dialogue closes when you hit continue on this panel so we add
- d.endDialogue();
- return true;
- case 50: //From 'Tell me about your previous jobs."
- d.sendNpcChat("I used to be the cook for the old Duke of Lumbridge.", "Visiting dignitaries praised me for my fine banquets!"); //de
- return true;
- case 51:
- d.sendNpcChat("But then someone found a rule that said only one", "family could hold that post");
- //Next shit
- return true;
- case 52:
- d.sendNpcChat("Overnight I was fired and replaced by some fool who", "can't even bake a cake without help!");
- d.endDialogue();
- return true;
- case 100: //From 'You're hired!'
- 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
- d.endDialogue();
- return true;
- case 101:
- //Next shit
- //No additional dialogue for the cook was in the video
- return true;
- }
- return false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement