a_strange_find.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/Darklight/a_strange_find.lua
  3. Script Purpose : Handles the quest, "A Strange Find"
  4. Script Author : Scatman
  5. Script Date : 2009.01.31
  6. Zone : Darklight Wood
  7. Quest Giver: Strange Plant
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. -- Sun Bleached Spaulders
  13. AddQuestStepChat(Quest, 1, "I should bring this plant to Verex N'Va.", 1, ".", 0, 340043)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_talkedToVerex")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. if QuestGiver ~= nil then
  18. if GetDistance(Player, QuestGiver) < 30 then
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. PlayFlavor(QuestGiver, "voiceover/english/neriak/verex_n_za/darklight_wood/hates_envy/verex/verex013.mp3", "", "", 3010718218, 2537871754, Player)
  22. AddConversationOption(conversation, "I will return.")
  23. StartConversation(conversation, QuestGiver, Player, "I thought so.")
  24. end
  25. end
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function step1_complete_talkedToVerex(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I have spoken with Verex N'Za.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken with Verex N'Za.")
  32. AddQuestStepChat(Quest, 2, "I must bring the plant to Sselnyl Do'Zyth.", 1, ".", 0, 340087)
  33. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  34. end
  35. function quest_complete(Quest, QuestGiver, Player)
  36. UpdateQuestDescription(Quest, "I have given the plant to Sselnyl Do'Zyth, mayor of Hate's Envy. She said she would save it as evidence but didn't comment further.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. step1_complete_talkedToVerex(Quest, QuestGiver, Player)
  42. end
  43. end