9
3

KittyWantstoPlay.lua 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/StarcrestCommune/KittyWantstoPlay.lua
  3. Script Author : Dorbin
  4. Script Date : 06.29.2022
  5. Script Purpose :
  6. Zone : StarcrestCommune
  7. Quest Giver: Molly Daysun
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to return this playing piece to the people playing the King's Field game here in Starcrest.", 1, "I should take this playing piece back to people playing the King's Field game.", 1058, 2340011)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  26. UpdateQuestStepDescription(Quest, 1, "I returned the playing piece to the King's Field game.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I returned the playing piece to the people playing the King's Field game.")
  28. AddQuestStepChat(Quest, 2, "I should let Molly know I've returned the King's Field piece.", 1, "Molly will be happy to know she's not in trouble for Kitty taking the King's Field game piece.", 1058, 2340003)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 2, "I returned to Molly.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Molly.")
  35. UpdateQuestDescription(Quest, "I returned the playing piece that was missing from the King's Field game in Starcrest. Vandis claims the reason why he was losing was because he didn't have the pawn. He gave me a pet cage for the cat if it happens to go stealing pieces again.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Step1Complete(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end