SoldierHomrie.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SoldierHomrie.lua
  3. Script Purpose : Soldier Homrie
  4. Script Author : Dorbin
  5. Script Date : 08/29/2019
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Quest2 = 5773
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if QuestStepIsComplete(Spawn,Quest2,3) then
  17. PlayFlavor(NPC,"","Ugh... my body still aches.","",0,0,Spawn)
  18. else
  19. Dialog.New(NPC, Spawn)
  20. Dialog.AddDialog("Please, someone help me! One of those ... blasted gnolls got me ... with a poison arrow. Don't know how much time I have.")
  21. Dialog.AddVoiceover("voiceover/english/soldier_homrie/antonica/soldierhomrie000.mp3", 2620699462, 3560167645)
  22. if not HasQuest(Spawn,Quest2)then
  23. Dialog.AddOption("This is more than I can handle")
  24. elseif GetQuestStep(Spawn,Quest2)>=3 and GetQuestStep(Spawn,Quest2)<=5 then
  25. Dialog.AddOption("*make a tonic from nearby herbs and mosses* Here, my friend! Drink this!","Dialog1")
  26. Dialog.AddOption("Hey, you don't look that bad. Just walk it off. I've got other things to do.")
  27. end
  28. Dialog.Start()
  29. end
  30. end
  31. function Dialog1(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("Uhg! Smells horrid! You look like a priest, though. Okay ... bottoms up! Tastes horrid, too. What's it supposed to do, anyway?")
  34. Dialog.AddVoiceover("voiceover/english/soldier_homrie/antonica/soldierhomrie001.mp3", 273324420, 1739184199)
  35. PlayFlavor(Spawn,"","","scheme",0,0,Spawn)
  36. Dialog.AddOption("It'll slow the poison until you can get to a proper medic. I must help the others now!","Dialog2")
  37. Dialog.Start()
  38. ApplySpellVisual(NPC,137)
  39. end
  40. function Dialog2(NPC,Spawn)
  41. FaceTarget(NPC,Spawn)
  42. SetStepComplete(Spawn,Quest2,3)
  43. end