badger_pelts_for_diggs.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/Baubbleshire/badger_pelts_for_diggs.lua
  3. Script Purpose : Handles the quest, "Badger Pelts for Diggs"
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Zone : Baubbleshire
  7. Quest Giver: Diggin Digs
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need ten badger pelts.", 10, 80, "I must collect ten badger pelts in the Forest Ruins or Oakmyst Forest.", 93, 1960011, 1960017, 1950035, 1950039)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedBadgers")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "Ok.")
  19. StartConversation(conversation, QuestGiver, Player, "Try to make them high quality pelts!")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function step1_complete_killedBadgers(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I have collected ten badger pelts.")
  25. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected then badger pelts for Diggs.")
  26. UpdateQuestZone(Quest, "The Baubbleshire")
  27. AddQuestStepChat(Quest, 2, "I must return to Armorsmith Diggs.", 1, "I must return to Armorsmith Diggs in Baubbleshire.", 93, 2380049 )
  28. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  29. end
  30. function quest_complete(Quest, QuestGiver, Player, Step)
  31. UpdateQuestStepDescription(Quest, 2, "I have collected the souls.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Armorsmith Diggs in Baubbleshire.")
  33. UpdateQuestDescription(Quest, "I collected ten badger pelts for Armorsmith Diggs.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. step1_complete_killedBadgers(Quest, QuestGiver, Player)
  39. end
  40. end