LeelavYekl.lua 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/LeelavYekl.lua
  3. Script Purpose : Leelav Yekl
  4. Script Author : Cynnar
  5. Script Date : 2015.02.24
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. local choice = math.random(1,3)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "Oh no, no, no! He's going to get me! I just know it!", "", 1689589577, 4560189, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "", "Have you found him yet? No, no, of course not!", "", 1689589577, 4560189, Spawn)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "", "Maybe you can help me ... no ... he's too strong, he'd just kill you, too!", "", 1689589577, 4560189, Spawn)
  28. else
  29. end
  30. PlayFlavor(NPC, "voiceover/english/optional5/leelav_yekl/enchanted/leelav_yekl001.mp3", "", "", 203402242, 3544872625, Spawn)
  31. AddConversationOption(conversation, "I didn't ask who, but do tell me anyway.", "dlg_4_1")
  32. AddConversationOption(conversation, "I'm not sure I can help. ")
  33. StartConversation(conversation, NPC, Spawn, "Who? Who you ask? HIM! He's the worst! There's no one more likely to kill me!")
  34. if convo==51 then
  35. PlayFlavor(NPC, "voiceover/english/optional5/leelav_yekl/enchanted/leelav_yekl001.mp3", "", "", 203402242, 3544872625, Spawn)
  36. AddConversationOption(conversation, "I didn't ask who, but do tell me anyway.", "dlg_51_1")
  37. AddConversationOption(conversation, "I'm not sure I can help. ")
  38. StartConversation(conversation, NPC, Spawn, "Who? Who you ask? HIM! He's the worst! There's no one more likely to kill me!")
  39. end
  40. if convo==52 then
  41. PlayFlavor(NPC, "voiceover/english/optional5/leelav_yekl/enchanted/leelav_yekl001.mp3", "", "", 203402242, 3544872625, Spawn)
  42. AddConversationOption(conversation, "I didn't ask who, but do tell me anyway.", "dlg_52_1")
  43. AddConversationOption(conversation, "I'm not sure I can help. ")
  44. StartConversation(conversation, NPC, Spawn, "Who? Who you ask? HIM! He's the worst! There's no one more likely to kill me!")
  45. end
  46. if convo==53 then
  47. PlayFlavor(NPC, "voiceover/english/optional5/leelav_yekl/enchanted/leelav_yekl001.mp3", "", "", 203402242, 3544872625, Spawn)
  48. AddConversationOption(conversation, "I didn't ask who, but do tell me anyway.", "dlg_53_1")
  49. AddConversationOption(conversation, "I'm not sure I can help. ")
  50. StartConversation(conversation, NPC, Spawn, "Who? Who you ask? HIM! He's the worst! There's no one more likely to kill me!")
  51. end
  52. if convo==54 then
  53. PlayFlavor(NPC, "voiceover/english/optional5/leelav_yekl/enchanted/leelav_yekl001.mp3", "", "", 203402242, 3544872625, Spawn)
  54. AddConversationOption(conversation, "I didn't ask who, but do tell me anyway.", "dlg_54_1")
  55. AddConversationOption(conversation, "I'm not sure I can help. ")
  56. StartConversation(conversation, NPC, Spawn, "Who? Who you ask? HIM! He's the worst! There's no one more likely to kill me!")
  57. end
  58. end
  59. function dlg_4_1(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "voiceover/english/optional5/leelav_yekl/enchanted/leelav_yekl002.mp3", "", "", 548189434, 2599124808, Spawn)
  63. AddConversationOption(conversation, "Sounds like a fairly normal day in Freeport.", "dlg_4_2")
  64. AddConversationOption(conversation, "I'm not interested in your tale of woe.")
  65. StartConversation(conversation, NPC, Spawn, "I can't tell you everything! It's so awful! One day, I'm at home in Freeport, minding my tinkering shop, and the next, some crazed maniac is leaping over the counter of my workshop swinging a vicious dagger at me!")
  66. end
  67. function dlg_4_2(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "voiceover/english/optional5/leelav_yekl/enchanted/leelav_yekl003.mp3", "", "", 1926338048, 2692781404, Spawn)
  71. AddConversationOption(conversation, "Can you describe him?", "dlg_4_3")
  72. StartConversation(conversation, NPC, Spawn, "No, see that's the thing! I would normally expect it, but not from this one! Oh, he was wily, let me tell you!")
  73. end
  74. function dlg_4_3(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77. PlayFlavor(NPC, "voiceover/english/optional5/leelav_yekl/enchanted/leelav_yekl004.mp3", "", "", 118861580, 1571095553, Spawn)
  78. AddConversationOption(conversation, "All right, I can help you.", "dlg_4_4")
  79. AddConversationOption(conversation, "I think you're on your own for this one.")
  80. StartConversation(conversation, NPC, Spawn, "Kind of short, brutish, brown hair, seemed to be an unstoppable foe. Really quite a menace, let me tell you!")
  81. end
  82. function dlg_4_4(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. PlayFlavor(NPC, "voiceover/english/optional5/leelav_yekl/enchanted/leelav_yekl005.mp3", "", "", 4114866306, 3213172070, Spawn)
  86. AddConversationOption(conversation, "I'll see what I can find.", "dlg_4_5")
  87. StartConversation(conversation, NPC, Spawn, "I would recommend starting at the Blood Haze in Freeport. I think I heard he was staying there. I only managed to escape death at his skilled hands through the luckiest of chances. Please find him. I'll reward you handsomely if you do!")
  88. end
  89. --[[ raw_conversations
  90. PlayFlavor(NPC, "", "Oh no, no, no! He's going to get me! I just know it!", "", 1689589577, 4560189, Spawn)
  91. PlayFlavor(NPC, "", "Have you found him yet? No, no, of course not!", "", 1689589577, 4560189, Spawn)
  92. PlayFlavor(NPC, "", "Maybe you can help me ... no ... he's too strong, he'd just kill you, too!", "", 1689589577, 4560189, Spawn)
  93. --]]