9
3

fight_the_forgotten_guardians.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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, 8270062,8270009,8270061,8270011,8270056,8270063,8270064,8270003)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedGuardians")
  14. UpdateQuestZone(Quest,"Forest Ruins")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "I will return victorious!")
  20. StartConversation(conversation, QuestGiver, Player, "Good! Return when you've bested them!")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_complete_killedGuardians(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have killed some forgotten guardians")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain five Forgotten Guardians.")
  27. UpdateQuestZone(Quest, "Baubbleshire")
  28. AddQuestStepChat(Quest, 2, "I must return to Marshal Surefoot.", 1, "I need to return to Marshal Surefoot in Baubbleshire.", 0, 2380044)
  29. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  30. end
  31. function quest_complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I have returned to Marshal Surefoot.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned to tell my tale to Marshal Surefoot.")
  34. 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.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. step1_complete_killedGuardians(Quest, QuestGiver, Player)
  40. end
  41. end