9
3

the_mother_lode.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/Darklight/the_mother_lode.lua
  3. Script Purpose : Handles the quest, "The Mother Lode"
  4. Script Author : Scatman
  5. Script Date : 2009.02.03
  6. Zone : Darklight Wood
  7. Quest Giver: Ilmtar D'Viervs
  8. Preceded by: More Luxuries (more_luxuries.lua)
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. -- Changeling Sigil
  13. -- Rusty Dragoon Javelin
  14. -- Cured Rawhide Boots
  15. -- Iron Ingot Leggings
  16. AddQuestStepKill(Quest, 1, "I need to collect the scales from eight scar wurms for Ilmtar D'Viervs.", 8, 100, "Ilmtar D'Viervs needs more snake scales, this time from the scar wurms in Innoruuk's Scar. He also wants pheromone sacs from the male scar wurms.", 172, 340104, 340101, 340102, 340103)
  17. AddQuestStepKill(Quest, 2, "I need to collect pheromone sacs from the scar wurms.", 4, 35, "Ilmtar D'Viervs needs more snake scales, this time from the scar wurms in Innoruuk's Scar. He also wants pheromone sacs from the male scar wurms.", 187, 340104, 340101, 340102, 340103)
  18. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotScales")
  19. AddQuestStepCompleteAction(Quest, 2, "step2_complete_gotSacs")
  20. end
  21. --example only from Murrar Shar.lua
  22. function Accepted(Quest, QuestGiver, Player)
  23. if QuestGiver ~= nil then
  24. if GetDistance(Player, QuestGiver) < 30 then
  25. FaceTarget(QuestGiver, Player)
  26. Say(QuestGiver, "Thank you for accepting this task " .. GetName(Player) .. ". Please return to me when you have completed it.")
  27. Emote(QuestGiver, " thanks you warmly.", Player)
  28. end
  29. end
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. if QuestGiver ~= nil then
  33. if GetDistance(Player, QuestGiver) < 30 then
  34. FaceTarget(QuestGiver, Player)
  35. Say(QuestGiver, "If you change your mind " .. GetName(Player) .. ", you know where to find me.")
  36. Emote(QuestGiver, " glares at you.", Player)
  37. end
  38. end
  39. end
  40. function KilledAllCrabs(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 1, "I killed the crabs as Murrar requested.")
  42. UpdateQuestDescription(Quest, "I killed some of the crabs on the beach. Return to Murrar Shar for your reward.")
  43. end