MelvinDunford.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard/MelvinDunford.lua
  3. Script Purpose : Melvin Dunford
  4. Script Author : John Adams
  5. Script Date : 2008.10.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local QUEST_1 = 340 --142 --A Puppy for your potion--
  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 HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 1 then
  19. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/rcp_melvin001.mp3", "", "", 1659032711, 682876, Spawn)
  20. AddConversationOption(conversation, "I come on behalf of Brood Matron Vrim Malthyk. She is offering you one last chance to hand over the alchemy supplies, else we do something drastic.", "dlg_2_1")
  21. StartConversation(conversation, NPC, Spawn, "Leave me be. Leave me be! Can't a man take a break and enjoy a pint?")
  22. else
  23. choice = math.random(1,4)
  24. if choice == 1 then
  25. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/quest_melvin_idle_text_20cb1b7.mp3", "A guy walks into a bar. He says, 'Ouch'. Another guy walks into a bar and says, 'Ouch'. Huhhuh... You think he woulda learned from the first guy.", "", 17568823, 2141665228, Spawn)
  26. elseif choice == 2 then
  27. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/quest_melvin_idle_text_a9f71ce1.mp3", "Hiccup! Oh, that's enough for me. Why, you buyin'?", "", 4292786812, 2328026074, Spawn)
  28. elseif choice == 3 then
  29. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/quest_melvin_idle_text_c5a18e4.mp3", "There's three kinda people in this world... I just can't remember any of them right now.", "", 2023843614, 2958937913, Spawn)
  30. elseif choice == 4 then
  31. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/quest_melvin_idle_text_d7a2153e.mp3", "Anna, darlin'... This one's fer you. Hiccup!", "", 3181613263, 3427443494, Spawn)
  32. else
  33. end
  34. end
  35. end
  36. function dlg_2_1(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/rcp_melvin002.mp3", "", "", 1957658204, 2931153413, Spawn)
  40. AddConversationOption(conversation, "Who said anything about you? What about Wittens? Did you ever consider his safety?", "dlg_2_2")
  41. StartConversation(conversation, NPC, Spawn, "Huh ha! Your idle threats don't scare me none. I got plenty of mates watching my back. You can't touch me!")
  42. end
  43. function dlg_2_2(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/rcp_melvin003.mp3", "", "", 2611575184, 1662935081, Spawn)
  47. AddConversationOption(conversation, "[Show Melvin the collar]", "dlg_2_3")
  48. StartConversation(conversation, NPC, Spawn, "What? Wittens? No, you didn't... W-what's that in your hand?")
  49. end
  50. function dlg_2_3(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/rcp_melvin004.mp3", "", "", 1087811847, 81547976, Spawn)
  54. AddConversationOption(conversation, "Then tell me where the components are? NOW!", "dlg_2_4")
  55. StartConversation(conversation, NPC, Spawn, "Oh please, please. Don't hurt Wittens! He was a gift from my late wife! You must let him go! You must!")
  56. end
  57. function dlg_2_4(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. SetStepComplete(Spawn, QUEST_1, 1)
  61. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/rcp_melvin005.mp3", "", "", 3362443904, 3525434980, Spawn)
  62. AddConversationOption(conversation, "Your... cooperation will be noted. With any luck, Vrim should release Wittens unharmed.", "dlg_2_5")
  63. StartConversation(conversation, NPC, Spawn, "Fine... fine. Let me have your journal for a moment, I'll write down the location for you. Please! Please, don't hurt Wittens!")
  64. end
  65. --[[ raw_conversations
  66. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/quest_melvin_idle_text_a9f71ce1.mp3", "Hiccup! Oh, that's enough for me. Why, you buyin'?", "", 4292786812, 2328026074, Spawn)
  67. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/quest_melvin_idle_text_20cb1b7.mp3", "A guy walks into a bar. He says, 'Ouch'. Another guy walks into a bar and says, 'Ouch'. Huhhuh... You think he woulda learned from the first guy.", "", 17568823, 2141665228, Spawn)
  68. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/quest_melvin_idle_text_d7a2153e.mp3", "Anna, darlin'... This one's fer you. Hiccup!", "", 3181613263, 3427443494, Spawn)
  69. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/melvin_dunford/fprt_hood06/quest_melvin_idle_text_c5a18e4.mp3", "There's three kinda people in this world... I just can't remember any of them right now.", "", 2023843614, 2958937913, Spawn)
  70. --]]