9
3

WatcherOmmo.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/WatcherOmmo.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.22 08:05:02
  5. Script Purpose :
  6. :
  7. --]]
  8. local InHisName = 5228
  9. local RetruningToCaptainFeralis = 5221
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if GetDeity(Spawn) ~= 1 then
  15. if not HasQuest(Spawn, InHisName) and not HasCompletedQuest(Spawn, InHisName) then
  16. local conversation = CreateConversation()
  17. AddConversationOption(conversation, "What is required of me?", "Option1")
  18. AddConversationOption(conversation, "I can not serve at this time.")
  19. StartConversation(conversation, NPC, Spawn, "Your service is required, citizen.")
  20. elseif HasCompletedQuest(Spawn, RetruningToCaptainFeralis) then
  21. PlayFlavor(NPC, "", "Made quite a name for yourself, hmm?", "", 0, 0, Spawn)
  22. else
  23. PlayFlavor(NPC, "", "Citizen.", "nod", 0, 0, Spawn)
  24. end
  25. elseif GetDeity(Spawn) == 1 then
  26. PlayFlavor(NPC, "", "Be gone. Worm!", "", 0, 0, Spawn)
  27. end
  28. end
  29. function Option1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. local conversation = CreateConversation()
  32. AddConversationOption(conversation, "Very well.", "offer")
  33. StartConversation(conversation, NPC, Spawn, "Whatever He desires. You will give your service to the Commonlands in His name and report to Gerun Pontian here in the Commonlands at the gates to the City of Freeport.")
  34. end
  35. function offer(NPC, Spawn)
  36. OfferQuest(NPC, Spawn, InHisName)
  37. end
  38. function respawn(NPC)
  39. spawn(NPC)
  40. end