VerexNZa.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. --[[
  2. Script Name : SpawnScripts/DarklightWood/VerexNZa.lua
  3. Script Purpose : Verex N'Za
  4. Script Author : Cynnar
  5. Script Date : 2015.07.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local ASolidifiedFront = 120
  9. local AStrangeFind = 187
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange")
  12. ProvidesQuest(NPC, ASolidifiedFront)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. if not HasCompletedQuest(Spawn, ASolidifiedFront) then
  19. PlayFlavor(NPC, "", "You there, come here at once! We haven't a second to spare!", "beckon", 0, 0, Spawn)
  20. end
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. conversation = CreateConversation()
  25. if not HasCompletedQuest(Spawn, ASolidifiedFront) then
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1048.mp3", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "How am I to do that?", "dlg_0_1")
  28. AddConversationOption(conversation, "Wait, where is this place?", "dlg_1_1")
  29. StartConversation(conversation, NPC, Spawn, "Excellent, you've finally arrived. So, you're one of Cristanos' chosen ones, hmm? The Queen must see some great potential in you, " .. GetName(Spawn) .. ". Let's not waste any more time and see what you're made of.")
  30. end
  31. if HasQuest(Spawn, AStrangeFind) then
  32. Say(NPC, "Strange Find")
  33. --
  34. end
  35. end
  36. function dlg_0_1(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "What is it you would have me do?", "dlg_0_2")
  40. StartConversation(conversation, NPC, Spawn, "Hate's Envy has fallen under attack by an army of Sablevein elementals! We need your help in stopping them before they burn down the entire town! ")
  41. end
  42. function dlg_0_2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  46. AddConversationOption(conversation, "I will speak with them at once!", "QuestOffer")
  47. AddConversationOption(conversation, "I'll decide who I speak to!", "PlayerEmote")
  48. StartConversation(conversation, NPC, Spawn, "The Sablevein elementals have collapsed a section of the southern wall and now threaten to swarm inside the town. I need you to meet up with Udiyitas and Pellandra, two of the guards tasked with repelling this attack. Go, speak to them at once!")
  49. end
  50. function PlayerEmote(NPC, Spawn)
  51. PlayFlavor(Spawn, "", "", "brandish", 0, 0, Player)
  52. end
  53. function QuestOffer(NPC, Spawn)
  54. if not HasQuest(Spawn, ASolidifiedFront) then
  55. OfferQuest(NPC, Spawn, ASolidifiedFront)
  56. else
  57. dlg_0_4(NPC, Spawn)
  58. end
  59. end
  60. function dlg_0_4(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. StartConversation(conversation, NPC, Spawn, "May Innoruuk guide your blade, young one!")
  64. end
  65. function dlg_1_1(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. conversation = CreateConversation()
  68. AddConversationOption(conversation, "What do you mean?", "dlg_1_2")
  69. StartConversation(conversation, NPC, Spawn, "This is Hate's Envy Outpost; the pride of Sselnyl Do'Zyth herself. She's managed to work out a nice deal with the elite of Neriak and runs Hate's Envy as an entity apart from the city itself.")
  70. end
  71. function dlg_1_2(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. AddConversationOption(conversation, "So you aren't tied to Neriak?", "dlg_1_3")
  75. StartConversation(conversation, NPC, Spawn, "Hate's Envy is a bit more accepting of outsiders than Neriak. We need all the help we can get, as you may have noticed. The attacking elementals are proof enough of that. But, we like it this way.")
  76. end
  77. function dlg_1_3(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. conversation = CreateConversation()
  80. AddConversationOption(conversation, "Hate's Envy was built by the Thexians?", "dlg_1_4")
  81. StartConversation(conversation, NPC, Spawn, "When Neriak was unearthed, the Queen immediately ordered the Dread Guard to claim this Hate's Envy. It was originally built by the Thexians during their search for Neriak. Once it was ours, however, Sselnyl was given control of the outpost's politics. We work closely with the Dread Guard and the Indigo Brotherhood, and our mining operation provides much needed ore to Neriak.")
  82. end
  83. function dlg_1_4(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. AddConversationOption(conversation, "Interesting. What was it you were talking about before?", "dlg_0_1")
  87. StartConversation(conversation, NPC, Spawn, "That's correct. When Lucan and the Thexians barged into Darklight and dug up K'Rais tunnel, the Thexians had already been searching for Neriak. Although Hate's Envy was theirs, we quickly took over once Neriak and Darklight were connected. Part of our pact with Freeport involves one of their ambassadors present at all times--but they don't seem to take much interest in the day to day affairs of Hate's Envy. Sselnyl runs the show, that's the bottom line.")
  88. end