9
3

netherot_name_calling.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/TempleStreet/netherot_name_calling.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.31 07:10:40
  5. Script Purpose :
  6. Zone : TempleStreet
  7. Quest Giver: Armsdealer Shinska
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill two netherot chanters.", 1, 100, "I need to venture into the sewers and kill two netherot chanters.", 611, 8430025)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Thieves Way")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have killed the netherot chanters.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed two netherot chanters.")
  20. UpdateQuestZone(Quest,"Temple Street")
  21. AddQuestStepChat(Quest, 2, "I need to speak with Shinska.", 1, "I should return to Shinska and let her know the netherot chanters are now dead.", 11, 1360012)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. FaceTarget(QuestGiver, Player)
  26. Dialog.New(QuestGiver, Player)
  27. Dialog.AddDialog("Ahh ... that is very good. The Shinska will remembers that you offered her helps. You go into the sewers and finds the Netherot Chanters. Kills the beasts. That will teach them not to say bad things about the Shinska. Comes back and I give you reward, yes?")
  28. PlayFlavor(QuestGiver,"","","happy",0,0,Player)
  29. Dialog.AddOption("The sewers? This better be worth it!")
  30. Dialog.Start()
  31. end
  32. function Declined(Quest, QuestGiver, Player)
  33. -- Add dialog here for when the quest is declined
  34. end
  35. function Deleted(Quest, QuestGiver, Player)
  36. -- Remove any quest specific items here when the quest is deleted
  37. end
  38. function QuestComplete(Quest, QuestGiver, Player)
  39. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  40. UpdateQuestStepDescription(Quest, 2, "I have spoken with Shinska.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I've informed Shinska that the netherot chanters are dead.")
  42. UpdateQuestDescription(Quest, "I've killed the netherot chanters for Shinska the arms dealer. She hopes that with a number of them dead, she'll be able to convince some other enchanters to make her weapons magical.")
  43. GiveQuestReward(Quest, Player)
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. Step1Complete(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end