JaylaMidhop.lua 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/JaylaMidhop.lua
  3. Script Purpose : Jayla Midhop
  4. Script Author : John Adams
  5. Script Date : 2009.01.30
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local HELPING_SOME_FRIENDS = 325 -- was 72
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if HasCompletedQuest(Spawn, HELPING_SOME_FRIENDS) then
  19. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jayla_midhop/qey_village06/qst_jayla_midhop_pranking_5fde850b.mp3", "Ooh I can't wait to see him.", "", 1235275009, 1310440527, Spawn)
  20. elseif HasQuest(Spawn, HELPING_SOME_FRIENDS) then
  21. if GetQuestStep(Spawn, HELPING_SOME_FRIENDS) >= 2 and not QuestStepIsComplete(Spawn, HELPING_SOME_FRIENDS, 3) then
  22. HelloNeedSomething(NPC, Spawn)
  23. else
  24. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jayla_midhop/qey_village06/qst_jayla_midhop_pranking_5fde850b.mp3", "Ooh I can't wait to see him.", "", 1235275009, 1310440527, Spawn)
  25. end
  26. else
  27. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jayla_midhop/qey_village06/qst_jayla_midhop_notonquest_962918cb.mp3", "Sorry, I'd prefer not to talk right now.", "", 286304583, 2343816397, Spawn)
  28. end
  29. end
  30. function HelloNeedSomething(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jayla_midhop/qey_village06/quests/jayla_midhop/jayla_midhop001.mp3", "", "", 2550158970, 308187023, Spawn)
  34. AddConversationOption(conversation, "Delivery for Ms. Midhop.", "dlg_21_1")
  35. AddConversationOption(conversation, "No, sorry.")
  36. StartConversation(conversation, NPC, Spawn, "Hello! Do you need something?")
  37. end
  38. function dlg_21_1(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jayla_midhop/qey_village06/quests/jayla_midhop/jayla_midhop002.mp3", "", "", 162007353, 3764356786, Spawn)
  42. AddConversationOption(conversation, "Someone named Remmy.", "dlg_21_2")
  43. StartConversation(conversation, NPC, Spawn, "Ooh, who is it from?")
  44. end
  45. function dlg_21_2(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jayla_midhop/qey_village06/quests/jayla_midhop/jayla_midhop003.mp3", "", "", 2425959259, 2140362898, Spawn)
  49. AddConversationOption(conversation, "He said it should all be in the note there. Oh, and that you should arrive hungry, he'll bring pie.", "dlg_21_3")
  50. StartConversation(conversation, NPC, Spawn, "Oooh! Wonderful! Did he say anything?")
  51. end
  52. function dlg_21_3(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jayla_midhop/qey_village06/quests/jayla_midhop/jayla_midhop004.mp3", "", "", 178679879, 3210897279, Spawn)
  56. AddConversationOption(conversation, "I should hope so.", "dlg_21_4")
  57. StartConversation(conversation, NPC, Spawn, "Perfect, I was just about to eat. I should be perfectly peckish by the time I get to the forest.")
  58. end
  59. function dlg_21_4(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jayla_midhop/qey_village06/quests/jayla_midhop/jayla_midhop005.mp3", "", "", 3900670960, 2248772947, Spawn)
  63. AddConversationOption(conversation, "Sorry, was thinking about something else. Have a nice day, Ms. Midhop.", "dlg_21_5")
  64. StartConversation(conversation, NPC, Spawn, "How do you mean?")
  65. end
  66. function dlg_21_5(NPC, Spawn)
  67. SetStepComplete(Spawn, HELPING_SOME_FRIENDS, 3)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jayla_midhop/qey_village06/quests/jayla_midhop/jayla_midhop006.mp3", "", "", 1071561763, 3714867768, Spawn)
  71. AddConversationOption(conversation, "You're quite welcome.")
  72. StartConversation(conversation, NPC, Spawn, "Oh I most certainly will, thank you very much!")
  73. end