9
3

GerbardtheSnitch.lua 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. conversation = CreateConversation()
  23. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch000.mp3", "", "", 2512842567, 445857936, Spawn)
  24. AddConversationOption(conversation, "What happened?", "dlg_3_1")
  25. AddConversationOption(conversation, "That sounds like something I'd rather stay out of.")
  26. StartConversation(conversation, NPC, Spawn, "Oh no! I did it again! The boys back on the boat are gonna kill me!")
  27. if convo==5 then
  28. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch000.mp3", "", "", 2512842567, 445857936, Spawn)
  29. AddConversationOption(conversation, "What happened?", "dlg_5_1")
  30. AddConversationOption(conversation, "That sounds like something I'd rather stay out of.")
  31. StartConversation(conversation, NPC, Spawn, "Oh no! I did it again! The boys back on the boat are gonna kill me!")
  32. end
  33. if convo==8 then
  34. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch000.mp3", "", "", 2512842567, 445857936, Spawn)
  35. AddConversationOption(conversation, "I've returned with the pirate coins.", "dlg_8_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==15 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_15_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. end
  46. function dlg_3_1(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch001.mp3", "", "", 2460257667, 2197101465, Spawn)
  50. AddConversationOption(conversation, "I'll do it, whats involved?", "dlg_3_2")
  51. AddConversationOption(conversation, "Not today, sorry.")
  52. 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!")
  53. end
  54. function dlg_3_2(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. OfferQuest(NPC, Spawn, QUEST_1)
  58. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch002.mp3", "", "", 4172245160, 2238267271, Spawn)
  59. AddConversationOption(conversation, "Thanks, I'll search out some pirate coins.", "dlg_3_3")
  60. 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.")
  61. end
  62. function dlg_5_1(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch001.mp3", "", "", 2460257667, 2197101465, Spawn)
  66. AddConversationOption(conversation, "I'll do it, whats involved?", "dlg_5_2")
  67. AddConversationOption(conversation, "Not today, sorry.")
  68. 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!")
  69. end
  70. function dlg_5_2(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch002.mp3", "", "", 4172245160, 2238267271, Spawn)
  74. AddConversationOption(conversation, "Thanks, I'll search out some pirate coins.", "dlg_5_3")
  75. 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.")
  76. end
  77. function dlg_8_1(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. conversation = CreateConversation()
  80. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch003.mp3", "", "", 1766615640, 492599183, Spawn)
  81. AddConversationOption(conversation, "Good luck.", "dlg_8_2")
  82. StartConversation(conversation, NPC, Spawn, "You're a lifesaver! Now it's time to win it all back.")
  83. end
  84. function dlg_15_1(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "voiceover/english/gerbard_the_snitch/fprt_adv01_sunken/gerbard_the_snitch003.mp3", "", "", 1766615640, 492599183, Spawn)
  88. AddConversationOption(conversation, "Good luck.", "dlg_15_2")
  89. StartConversation(conversation, NPC, Spawn, "You're a lifesaver! Now it's time to win it all back.")
  90. end