fight_the_forgotten_guardians.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/Baubbleshire/fight_the_forgotten_guardians.lua
  3. Script Purpose : Handles the quest, "Fight the Forgotten Guardians"
  4. Script Author : Scatman
  5. Script Date : 2009.01.14
  6. Zone : Baubbleshire
  7. Quest Giver: Marshal Surefoot
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must kill some forgotten guardians.", 5, 100, "I need to slay five Forgotten Guardians in the Forest Ruins.", 611, 1960038, 1960058)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedGuardians")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "I will return victorious!")
  19. StartConversation(conversation, QuestGiver, Player, "Good! Return when you've bested them!")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function step1_complete_killedGuardians(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I have killed some forgotten guardians")
  25. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain five Forgotten Guardians.")
  26. UpdateQuestZone(Quest, "The Baubbleshire")
  27. AddQuestStepChat(Quest, 2, "I must return to Marshal Surefoot.", 1, "I need to return to Marshal Surefoot in Baubbleshire.", 0, 2380044)
  28. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  29. end
  30. function quest_complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have returned to Marshal Surefoot.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned to tell my tale to Marshal Surefoot.")
  33. UpdateQuestDescription(Quest, "I have faced and slain five Forgotten Guardians in the Forest Ruins per the orders of Marshal Surefoot. After telling him my tale of victory he was pleased and paid me for my service.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. step1_complete_killedGuardians(Quest, QuestGiver, Player)
  39. end
  40. end