9
3

WatcherDaenso.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/WatcherDaenso.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.22 08:05:59
  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