9
3

crazy_talking_skull_.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : Quests/TheSerpentSewer/crazy_talking_skull_.lua
  3. Script Purpose : Handles the quest, "Crazy Talking Skull"
  4. Script Author : premierio015
  5. Script Date : 01.07.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Serpent Sewer
  8. Quest Giver : human_skeleton_bones
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "Recover skeletal remains.", 1, 100, "I need to find the headless skeletal remains for the skull down in The Serpent Sewer.", 90)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I've found the skeletal remains.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I found the skull's remains. I should return to the talking skull.")
  28. AddQuestStepChat(Quest, 2, "Return to talking skull.", 1, "Now that I've got the remains, I should return to the talking skull in The Serpent Sewer.", 11, 1550068)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've given the skull his remains.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I returned the remains to the talking skull.")
  34. AddQuestStepKill(Quest, 3, "Kill this crazy skeleton.", 1, 100, "Gord has flipped his lid. It looks like I'm going to have to put this crazy skeleton down.", 611, 1550076)
  35. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 3, "I've killed the mad skeleton.")
  40. UpdateQuestTaskGroupDescription(Quest, 3, "I've killed the mad skeleton.")
  41. UpdateQuestDescription(Quest, "That's the last time I help a talking skull. After I returned the remains to the skull, it formed into a skeleton and attacked me! In retrospect, I can't say I'm all too surprised... after all it was a skull I was dealing with. <br>")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. Step2Complete(Quest, QuestGiver, Player)
  49. elseif Step == 3 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end