sparkly_or_nothing.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : Quests/Antonica/sparkly_or_nothing.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.16 09:08:14
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to hunt granitescale basilisks.", 10, 100, "Licha has asked me to hunt granitescale basilisks to get the shiniest scales I can find.", 84, 120028)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "Okay.")
  19. StartConversation(conversation, QuestGiver, Player, "Go quickly! And they must be very shiny!")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have found the scales.")
  29. AddQuestStepKill(Quest, 2, "To make these scales even shinier, I could use the oils that come from darkclaw crabs.", 1, 25, "Licha has asked me to hunt granitescale basilisks to get the shiniest scales I can find.", 139, 120118, 120762, 121265)
  30. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  31. end
  32. function Step2Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I have made these scales very shiny.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I found some very shiny scales.")
  35. AddQuestStepChat(Quest, 3, "I should take these scales to Licha.", 1, "I found the scales that Licha wanted. I should probably take them to her.", 84, 121308)
  36. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  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, 3, "I have given the scales to Licha.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Licha the scales.")
  42. UpdateQuestDescription(Quest, "I have returned the scales to Licha.")
  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. Step2Complete(Quest, QuestGiver, Player)
  50. elseif Step == 3 then
  51. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end