GerbardtheSnitch.lua 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity/GerbardtheSnitch.lua
  3. Script Purpose : Gerbard the Snitch
  4. Script Author : neatz09
  5. Script Date : 2018.12.31
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local QUEST_1 = 387
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST_1)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. if not HasQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_1) then
  23. OfferQuest(NPC, Spawn, QUEST_1)
  24. end
  25. if GetQuestStep(Spawn, QUEST_1) == 2 then
  26. SetStepComplete(Spawn, QUEST_1, 2)
  27. end
  28. conversation = CreateConversation()
  29. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch000.mp3", "", "", 2512842567, 445857936, Spawn)
  30. AddConversationOption(conversation, "What happened?", "dlg_3_1")
  31. AddConversationOption(conversation, "That sounds like something I'd rather stay out of.")
  32. StartConversation(conversation, NPC, Spawn, "Oh no! I did it again! The boys back on the boat are gonna kill me!")
  33. if convo==5 then
  34. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch000.mp3", "", "", 2512842567, 445857936, Spawn)
  35. AddConversationOption(conversation, "What happened?", "dlg_5_1")
  36. AddConversationOption(conversation, "That sounds like something I'd rather stay out of.")
  37. StartConversation(conversation, NPC, Spawn, "Oh no! I did it again! The boys back on the boat are gonna kill me!")
  38. end
  39. if convo==8 then
  40. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch000.mp3", "", "", 2512842567, 445857936, Spawn)
  41. AddConversationOption(conversation, "I've returned with the pirate coins.", "dlg_8_1")
  42. AddConversationOption(conversation, "That sounds like something I'd rather stay out of.")
  43. StartConversation(conversation, NPC, Spawn, "Oh no! I did it again! The boys back on the boat are gonna kill me!")
  44. end
  45. if convo==15 then
  46. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch000.mp3", "", "", 2512842567, 445857936, Spawn)
  47. AddConversationOption(conversation, "I've returned with the pirate coins.", "dlg_15_1")
  48. AddConversationOption(conversation, "That sounds like something I'd rather stay out of.")
  49. StartConversation(conversation, NPC, Spawn, "Oh no! I did it again! The boys back on the boat are gonna kill me!")
  50. end
  51. end
  52. function dlg_3_1(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch001.mp3", "", "", 2460257667, 2197101465, Spawn)
  56. AddConversationOption(conversation, "I'll do it, whats involved?", "dlg_3_2")
  57. AddConversationOption(conversation, "Not today, sorry.")
  58. StartConversation(conversation, NPC, Spawn, "I blew all my coins on a game of dice. I just need a few more pirate coins to throw in, and I'll earn back my money in no time! Will you help me out? My crew will toss me overboard if they find out how much money I lost!")
  59. end
  60. function dlg_3_2(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch002.mp3", "", "", 4172245160, 2238267271, Spawn)
  64. AddConversationOption(conversation, "Thanks, I'll search out some pirate coins.", "dlg_3_3")
  65. StartConversation(conversation, NPC, Spawn, "Where do you think they come from? They're pirate coins! Those undead buggers roam around where it's wet. I'd go get them myself, but I gambled my sword away in a sure bet.")
  66. end
  67. function dlg_5_1(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch001.mp3", "", "", 2460257667, 2197101465, Spawn)
  71. AddConversationOption(conversation, "I'll do it, whats involved?", "dlg_5_2")
  72. AddConversationOption(conversation, "Not today, sorry.")
  73. StartConversation(conversation, NPC, Spawn, "I blew all my coins on a game of dice. I just need a few more pirate coins to throw in, and I'll earn back my money in no time! Will you help me out? My crew will toss me overboard if they find out how much money I lost!")
  74. end
  75. function dlg_5_2(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch002.mp3", "", "", 4172245160, 2238267271, Spawn)
  79. AddConversationOption(conversation, "Thanks, I'll search out some pirate coins.", "dlg_5_3")
  80. StartConversation(conversation, NPC, Spawn, "Where do you think they come from? They're pirate coins! Those undead buggers roam around where it's wet. I'd go get them myself, but I gambled my sword away in a sure bet.")
  81. end
  82. function dlg_8_1(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch003.mp3", "", "", 1766615640, 492599183, Spawn)
  86. AddConversationOption(conversation, "Good luck.", "dlg_8_2")
  87. StartConversation(conversation, NPC, Spawn, "You're a lifesaver! Now it's time to win it all back.")
  88. end
  89. function dlg_15_1(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch003.mp3", "", "", 1766615640, 492599183, Spawn)
  93. AddConversationOption(conversation, "Good luck.", "dlg_15_2")
  94. StartConversation(conversation, NPC, Spawn, "You're a lifesaver! Now it's time to win it all back.")
  95. end