9
3

SoldierSelennia.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : SpawnScripts/Antonica/SoldierSelennia.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.07 07:10:07
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Quest2 = 5773
  10. function spawn(NPC)
  11. SpawnSet(NPC,"action_state",11769)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. Dialog1(NPC, Spawn)
  18. end
  19. function Dialog1(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. Dialog.AddDialog("Listen ... I only have a few minutes left. Tell the commander ... the gnolls came from behind ... they took all of us out ... Arthur ... Garrin ... Dalathani ... the Greenleaf triplets. And even little Skimpy! Those fiends! They even killed Skimpy! I've lost too much ... blood. Tell him ... what happened.")
  22. Dialog.AddVoiceover("voiceover/english/optional1/soldier_selennia/antonica/soldierselennia000.mp3", 2094795288, 2230809684)
  23. if not HasQuest(Spawn,Quest2)then
  24. Dialog.AddOption("Ok.")
  25. elseif GetQuestStep(Spawn,Quest2)>=3 and GetQuestStep(Spawn,Quest2)<=5 then
  26. Dialog.AddOption("Little Skimpy has not perished in vain. Hang in there; I can heal your wounds. *Summon all your belief and pray to the gods to heal this woman*","Dialog2")
  27. end
  28. Dialog.Start()
  29. end
  30. function Dialog2(NPC, Spawn)
  31. FaceTarget(NPC,Spawn)
  32. SetStepComplete(NPC,Quest2,4)
  33. Dialog.New(NPC, Spawn)
  34. Dialog.AddDialog("My wounds! They're ... they're ... gone! You healed me! Praise the gods! But now ... now I need to return to Qeynos to give the commander the bad news. I thank you for your ... well, your divine interevention.")
  35. Dialog.AddVoiceover("voiceover/english/optional1/soldier_selennia/antonica/soldierselennia001.mp3", 2094795288, 2230809684)
  36. Dialog.AddOption("Just remember to say a little prayer to the gods for your fallen comrades.","Goodbye")
  37. Dialog.Start()
  38. SpawnSet(NPC,"action_state",0)
  39. ApplySpellVisual(NPC,23)
  40. CastSpell(Spawn,52)
  41. end
  42. function Goodbye(NPC,Spawn)
  43. FaceTarget(NPC,Spawn)
  44. PlayFlavor(NPC,"","","thanks",0,0)
  45. SetStepComplete(Spawn,Quest2,4)
  46. AddTimer(NPC,6000,"Despawning")
  47. end
  48. function Despawning(NPC,Spawn)
  49. Despawn(NPC)
  50. end
  51. --