toxic_glands_for_erollisis_bane.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/Nettleville/toxic_glands_for_erollisis_bane.lua
  3. Script Purpose : Handles the quest, "Toxic Glands for Erollisi's Bane"
  4. Script Author : Scatman
  5. Script Date : 2009.08.12
  6. Zone : Nettleville
  7. Quest Giver: Foster Graham (2330025)
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must kill some toxic bog slugs.", 6, 100, "I must slay six toxic bog slugs for their poison glands.", 2515, 1980006,8290031)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledSlugs")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/foster_graham/qey_village01/fostergraham002.mp3", "", "", 196177219, 2787738591, Player)
  19. AddConversationOption(conversation, "I will return with your poison.")
  20. StartConversation(conversation, QuestGiver, Player, "Thank you, friend! Your plain looks veil a superior heart. The secret ingredient comes from the gland of the toxic bog slug, which crawls about the local peat bog. I need several of the toxic glands.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. end
  26. function Step1_Complete_KilledSlugs(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I have killed some toxic bog slugs.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected six toxic poison glands.")
  29. UpdateQuestZone(Quest, "Nettleville")
  30. AddQuestStepChat(Quest, 2, "I must return to Foster Graham.", 1, "I need to bring these toxic glands to Foster Graham in Nettleville.", 0, 2330025)
  31. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  32. end
  33. function Quest_Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I returned to Foster Graham.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Foster Graham.")
  36. UpdateQuestDescription(Quest, "I have collected and delivered the six toxic glands for Foster Graham of Nettleville. While condescending at least he pays well.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1_Complete_KilledSlugs(Quest, QuestGiver, Player)
  42. end
  43. end