SeherBeanbrewer.lua 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/SeherBeanbrewer.lua
  3. Script Purpose : Seher Beanbrewer
  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,1)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "What's the meaning of this!? Barging in like that!", "", 1689589577, 4560189, Spawn)
  24. else
  25. end
  26. PlayFlavor(NPC, "voiceover/english/optional5/seher_beanbrewer/enchanted/seher_beanbrewer/seher_beanbrewer001.mp3", "", "", 754284185, 603820124, Spawn)
  27. AddConversationOption(conversation, "I didn't mean to intrude. ", "dlg_4_1")
  28. AddConversationOption(conversation, "Sorry. ")
  29. StartConversation(conversation, NPC, Spawn, "I have plenty on my mind without the likes of you barging in my home!")
  30. if convo==10 then
  31. PlayFlavor(NPC, "voiceover/english/optional5/seher_beanbrewer/enchanted/seher_beanbrewer/seher_beanbrewer005.mp3", "", "", 2926952110, 3856050739, Spawn)
  32. AddConversationOption(conversation, "[continue]", "dlg_10_1")
  33. StartConversation(conversation, NPC, Spawn, "What's this? I see they sent word of their progress or rather what's impeding their progress.")
  34. end
  35. if convo==11 then
  36. PlayFlavor(NPC, "voiceover/english/optional5/seher_beanbrewer/enchanted/seher_beanbrewer/seher_beanbrewer007.mp3", "", "", 1598547478, 1188280014, Spawn)
  37. AddConversationOption(conversation, "Thanks.", "dlg_11_1")
  38. StartConversation(conversation, NPC, Spawn, "Make yourself comfortable. Please, rest your weary bones for as long as you need.")
  39. end
  40. if convo==63 then
  41. PlayFlavor(NPC, "voiceover/english/optional5/seher_beanbrewer/enchanted/seher_beanbrewer/seher_beanbrewer001.mp3", "", "", 754284185, 603820124, Spawn)
  42. AddConversationOption(conversation, "I didn't mean to intrude. ", "dlg_63_1")
  43. AddConversationOption(conversation, "Sorry. ")
  44. StartConversation(conversation, NPC, Spawn, "I have plenty on my mind without the likes of you barging in my home!")
  45. end
  46. if convo==64 then
  47. PlayFlavor(NPC, "voiceover/english/optional5/seher_beanbrewer/enchanted/seher_beanbrewer/seher_beanbrewer001.mp3", "", "", 754284185, 603820124, Spawn)
  48. AddConversationOption(conversation, "I didn't mean to intrude. ", "dlg_64_1")
  49. AddConversationOption(conversation, "Sorry. ")
  50. StartConversation(conversation, NPC, Spawn, "I have plenty on my mind without the likes of you barging in my home!")
  51. end
  52. if convo==65 then
  53. PlayFlavor(NPC, "voiceover/english/optional5/seher_beanbrewer/enchanted/seher_beanbrewer/seher_beanbrewer001.mp3", "", "", 754284185, 603820124, Spawn)
  54. AddConversationOption(conversation, "I didn't mean to intrude. ", "dlg_65_1")
  55. AddConversationOption(conversation, "Sorry. ")
  56. StartConversation(conversation, NPC, Spawn, "I have plenty on my mind without the likes of you barging in my home!")
  57. end
  58. if convo==66 then
  59. PlayFlavor(NPC, "voiceover/english/optional5/seher_beanbrewer/enchanted/seher_beanbrewer/seher_beanbrewer004.mp3", "", "", 1177545934, 3925805393, Spawn)
  60. AddConversationOption(conversation, "Okay.", "dlg_66_1")
  61. StartConversation(conversation, NPC, Spawn, "They need those supplies. Do hurry.")
  62. end
  63. end
  64. function dlg_4_1(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/optional5/seher_beanbrewer/enchanted/seher_beanbrewer/seher_beanbrewer002.mp3", "", "", 2557358635, 1504889126, Spawn)
  68. AddConversationOption(conversation, "Can I help? ", "dlg_4_2")
  69. AddConversationOption(conversation, "Sorry to hear it. ")
  70. StartConversation(conversation, NPC, Spawn, "Well, it's to be expected, I suppose. We're all a bit on edge nowadays. Not to mention, our last group of miners hasn't checked back in for supplies -- it's dangerous working out in the north shore mines.")
  71. end
  72. function dlg_4_2(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayFlavor(NPC, "voiceover/english/optional5/seher_beanbrewer/enchanted/seher_beanbrewer/seher_beanbrewer003.mp3", "", "", 4168603902, 4186623102, Spawn)
  76. AddConversationOption(conversation, "It's a deal.", "dlg_4_3")
  77. StartConversation(conversation, NPC, Spawn, "Oh, that would be wonderful! Please deliver these supplies to them and get an update on their progress. I'll gladly compensate you for your efforts.")
  78. end
  79. function dlg_10_1(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "voiceover/english/optional5/seher_beanbrewer/enchanted/seher_beanbrewer/seher_beanbrewer006.mp3", "", "", 1052853696, 372504824, Spawn)
  83. AddConversationOption(conversation, "You're welcome.", "dlg_10_2")
  84. StartConversation(conversation, NPC, Spawn, "Thank you! As I promised, here's something for your trouble. It's the not knowing that's difficult. You've made my job a lot easier. Thank you!")
  85. end
  86. --[[ raw_conversations
  87. PlayFlavor(NPC, "", "What's the meaning of this!? Barging in like that!", "", 1689589577, 4560189, Spawn)
  88. --]]