DeputyBlumble.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/DeputyBlumble.lua
  3. Script Purpose : Deputy Blumble
  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, "", "Hello there, wonderful day today don't you think?", "giggle", 1689589577, 4560189, Spawn)
  24. else
  25. end
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "Hello, are you the interpreter? Deputy Stoutgut sent me.", "dlg_7_1")
  28. AddConversationOption(conversation, "Nothing at the moment.")
  29. StartConversation(conversation, NPC, Spawn, "How can I help you?")
  30. if convo==11 then
  31. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
  32. AddConversationOption(conversation, "I've returned with the parts called for in these plans.", "dlg_11_1")
  33. AddConversationOption(conversation, "Nothing at the moment.")
  34. StartConversation(conversation, NPC, Spawn, "How can I help you?")
  35. end
  36. end
  37. function dlg_7_1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  41. AddConversationOption(conversation, "I guess that explains it then.", "dlg_7_2")
  42. StartConversation(conversation, NPC, Spawn, "Oh yes, Deputy Stoutgut. An ornery old man but kind just the same. He is good at heart; don't let his crankiness get to you. He's a short timer, ready to retire you know. ")
  43. end
  44. function dlg_7_2(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  48. AddConversationOption(conversation, "He sent me to have these plans translated.", "dlg_7_3")
  49. AddConversationOption(conversation, "Nothing, sorry to bother you.")
  50. StartConversation(conversation, NPC, Spawn, "Quite possibly so. Now what can I do for you?")
  51. end
  52. function dlg_7_3(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "deputy_blumble/enchanted/solo_blumble/quest_blumble004.mp3", "", "", 3778097794, 652859498, Spawn)
  56. AddConversationOption(conversation, "What is it?", "dlg_7_4")
  57. StartConversation(conversation, NPC, Spawn, "Translation is what I do. Ah, I see here. Ha ha! He had it all backwards. Here you go, this will help.")
  58. end
  59. function dlg_7_4(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "deputy_blumble/enchanted/solo_blumble/quest_blumble005.mp3", "", "", 742469681, 2039007420, Spawn)
  63. AddConversationOption(conversation, "Okay. Thank you.", "dlg_7_5")
  64. StartConversation(conversation, NPC, Spawn, "It looks like some kind of structure. Good luck!")
  65. end
  66. function dlg_11_1(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. conversation = CreateConversation()
  69. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  70. AddConversationOption(conversation, "Thank you for your help.", "dlg_11_2")
  71. AddConversationOption(conversation, "I really don't have time right now.")
  72. StartConversation(conversation, NPC, Spawn, "So you have. We can use some of this wood over here to finish this up for you.")
  73. end
  74. function dlg_11_2(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  78. StartConversation(conversation, NPC, Spawn, "There you go, it doesn't look like a piece of the wall though. Well anyway, take it back to Deputy Stoutgut. I'm sure he's expecting you. Oh! By the way...")
  79. end
  80. --[[ raw_conversations
  81. PlayFlavor(NPC, "", "Hello there, wonderful day today don't you think?", "giggle", 1689589577, 4560189, Spawn)
  82. --]]