9
3

DeputyJumbelly.lua 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/DeputyJumbelly.lua
  3. Script Purpose : Deputy Jumbelly
  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,4)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "Have you noticed the way Deputy Huckfar has been making eyes at Deputy Nettlebrine?", "peer", 1689589577, 4560189, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "", "I wonder if Huckfar still has some of those tasty sandwiches.", "", 1689589577, 4560189, Spawn)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "", "Hello there!", "wave", 1689589577, 4560189, Spawn)
  28. elseif choice == 4 then
  29. PlayFlavor(NPC, "", "A jumjum ale would be nice right about now.", "", 1689589577, 4560189, Spawn)
  30. else
  31. end
  32. PlayFlavor(NPC, "deputy_jumbellly/enchanted/quests/solo_content/deputy_jumbelly001.mp3", "", "", 2522937541, 3670519443, Spawn)
  33. AddConversationOption(conversation, "Why is that?", "dlg_11_1")
  34. StartConversation(conversation, NPC, Spawn, "I wish I could have gotten a post inside one of the wagons.")
  35. if convo==15 then
  36. PlayFlavor(NPC, "deputy_jumbellly/enchanted/quests/solo_content/deputy_jumbelly001.mp3", "", "", 2522937541, 3670519443, Spawn)
  37. AddConversationOption(conversation, "Why is that?", "dlg_15_1")
  38. StartConversation(conversation, NPC, Spawn, "I wish I could have gotten a post inside one of the wagons.")
  39. end
  40. end
  41. function dlg_11_1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "deputy_jumbellly/enchanted/quests/solo_content/deputy_jumbelly002.mp3", "", "", 3483236705, 1460604675, Spawn)
  45. AddConversationOption(conversation, "I'm sorry to hear that, Deputy Jumbelly", "dlg_11_2")
  46. StartConversation(conversation, NPC, Spawn, "Well... Standing out here in the sun isn't all that much fun, this armor is itchy, and I'm hungry.")
  47. end
  48. function dlg_11_2(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. PlayFlavor(NPC, "deputy_jumbellly/enchanted/quests/solo_content/deputy_jumbelly003.mp3", "", "", 3687989073, 1584040796, Spawn)
  52. AddConversationOption(conversation, "Have you seen anything strange in the river?", "dlg_11_3")
  53. StartConversation(conversation, NPC, Spawn, "It's ok. What can I do for you?")
  54. end
  55. function dlg_11_3(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "deputy_jumbellly/enchanted/quests/solo_content/deputy_jumbelly004.mp3", "", "", 2018147760, 2209988563, Spawn)
  59. AddConversationOption(conversation, "I don't think he'll be much of a problem anymore. Thanks for your time.", "dlg_11_4")
  60. StartConversation(conversation, NPC, Spawn, "There's been a goblin terrorizing the area for a week now. I guess that could be strange.")
  61. end
  62. --[[ raw_conversations
  63. PlayFlavor(NPC, "", "Have you noticed the way Deputy Huckfar has been making eyes at Deputy Nettlebrine?", "peer", 1689589577, 4560189, Spawn)
  64. PlayFlavor(NPC, "", "I wonder if Huckfar still has some of those tasty sandwiches.", "", 1689589577, 4560189, Spawn)
  65. PlayFlavor(NPC, "", "Hello there!", "wave", 1689589577, 4560189, Spawn)
  66. PlayFlavor(NPC, "", "A jumjum ale would be nice right about now.", "", 1689589577, 4560189, Spawn)
  67. --]]