9
3

apiratecaptain.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/apiratecaptain.lua
  3. Script Purpose : a pirate captain <Pirates of Gunthak>
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  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. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1052.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "Booming, you say?", "dlg_27_1")
  23. AddConversationOption(conversation, "This story makes me seasick.")
  24. StartConversation(conversation, NPC, Spawn, "It's a right pleasure to be returnin' to me favorite port, especially after a harrowin' journey, the likes of which are enough to make even the saltiest seadog weep. I endured rough seas, rough mates, and a tragic dearth of grog. But ignore my complainin'. The fact of the matter is that business is booming!")
  25. if convo==28 then
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1052.mp3", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "Booming, you say?", "dlg_28_1")
  28. AddConversationOption(conversation, "This story makes me seasick.")
  29. StartConversation(conversation, NPC, Spawn, "It's a right pleasure to be returnin' to me favorite port, especially after a harrowin' journey, the likes of which are enough to make even the saltiest seadog weep. I endured rough seas, rough mates, and a tragic dearth of grog. But ignore my complainin'. The fact of the matter is that business is booming!")
  30. end
  31. end