9
3

DeputyGuzzlesea.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/DeputyGuzzlesea.lua
  3. Script Purpose : Deputy Guzzlesea
  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,5)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "Hello traveler, I am Deputy Guzzlesea.", "", 1689589577, 4560189, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "", "Oh I'm so tired...", "yawn", 1689589577, 4560189, Spawn)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "", "Deputy Guzzlesea reporting for duty!", "salute", 1689589577, 4560189, Spawn)
  28. elseif choice == 4 then
  29. PlayFlavor(NPC, "", "How are you today?", "", 1689589577, 4560189, Spawn)
  30. elseif choice == 5 then
  31. PlayFlavor(NPC, "", "Its a nice day today.", "stare", 1689589577, 4560189, Spawn)
  32. else
  33. end
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
  35. AddConversationOption(conversation, "It's just me, Deputy. Have you seen anything in the water?", "dlg_9_1")
  36. AddConversationOption(conversation, "Oh nothing, sorry to bother you.")
  37. StartConversation(conversation, NPC, Spawn, "Hello, who goes there?")
  38. if convo==13 then
  39. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1024.mp3", "", "", 0, 0, Spawn)
  40. AddConversationOption(conversation, "It's just me, Deputy. Have you seen anything in the water?", "dlg_13_1")
  41. AddConversationOption(conversation, "Oh nothing, sorry to bother you.")
  42. StartConversation(conversation, NPC, Spawn, "Hello, who goes there?")
  43. end
  44. if convo==14 then
  45. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1024.mp3", "", "", 0, 0, Spawn)
  46. AddConversationOption(conversation, "It's just me, Deputy. Have you seen anything in the water?", "dlg_14_1")
  47. AddConversationOption(conversation, "Oh nothing, sorry to bother you.")
  48. StartConversation(conversation, NPC, Spawn, "Hello, who goes there?")
  49. end
  50. end
  51. function dlg_9_1(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  55. AddConversationOption(conversation, "Okay, thank you, Deputy Guzzlesea.", "dlg_9_2")
  56. StartConversation(conversation, NPC, Spawn, "In the water? No, not that I've noticed. It's not as clear as it used to be, but I haven't seen anything strange.")
  57. end
  58. --[[ raw_conversations
  59. PlayFlavor(NPC, "", "Hello traveler, I am Deputy Guzzlesea.", "", 1689589577, 4560189, Spawn)
  60. PlayFlavor(NPC, "", "Oh I'm so tired...", "yawn", 1689589577, 4560189, Spawn)
  61. PlayFlavor(NPC, "", "Deputy Guzzlesea reporting for duty!", "salute", 1689589577, 4560189, Spawn)
  62. PlayFlavor(NPC, "", "How are you today?", "", 1689589577, 4560189, Spawn)
  63. PlayFlavor(NPC, "", "Its a nice day today.", "stare", 1689589577, 4560189, Spawn)
  64. --]]