BordenMannus.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/BordenMannus.lua
  3. Script Purpose : Borden Mannus <Bartender>
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local TheMotleyMerchantManifest = 5368
  9. function spawn(NPC)
  10. AddTimer(NPC, 5000, "EmoteLoop")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. -- PlayFlavor(NPC, "voiceover/english/optional5/bartender_borden_mannus/qey_harbor/bartenderbordenmannus000.mp3", "", "no", 2826547781, 426489100, Spawn)
  19. PlayVoice(NPC, "voiceover/english/optional5/bartender_borden_mannus/qey_harbor/bartenderbordenmannus000.mp3", 2826547781, 426489100, Spawn)
  20. if GetQuestStep(Spawn, TheMotleyMerchantManifest) == 6 then
  21. AddConversationOption(conversation, "I believe you need to sign this manifest. ", "Option1")
  22. end
  23. AddConversationOption(conversation, "I'm sorry. I took a wrong turn. Farewell.")
  24. StartConversation(conversation, NPC, Spawn, "Listen here, this ain't no public brew hall! The Mermaid's Lure is for Marauders only. ")
  25. end
  26. function Option1(NPC, Spawn)
  27. SetStepComplete(Spawn, TheMotleyMerchantManifest, 6)
  28. FaceTarget(NPC, Spawn)
  29. local conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/bartender_borden_mannus/qey_harbor/bartenderbordenmannus001.mp3", "", "no", 1252970025, 1302679726, Spawn)
  31. AddConversationOption(conversation, "Hey! I am only the messenger.")
  32. StartConversation(conversation, NPC, Spawn, "It's one of you! If it wasn't for the Captain's love of this froth, we woulda' run you out of this city just like it was the Age of Turmoil!")
  33. end
  34. function EmoteLoop(NPC)
  35. local emoteChoice = MakeRandomInt(1,3)
  36. if emoteChoice == 1 then
  37. -- ponder
  38. PlayAnimation(NPC, 12030)
  39. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  40. elseif emoteChoice == 2 then
  41. -- sniff
  42. PlayAnimation(NPC, 12329)
  43. AddTimer(NPC, MakeRandomInt(6000,9000), "EmoteLoop")
  44. else
  45. -- tapfoot
  46. PlayAnimation(NPC, 13056)
  47. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  48. end
  49. end