9
3

smoking_the_competition.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/Darklight/smoking_the_competition.lua
  3. Script Purpose : Handles the quest, "Smoking the Competition"
  4. Script Author : Scatman
  5. Script Date : 2009.02.04
  6. Zone : Darklight Wood
  7. Quest Giver: Dirzdia T'Zauvirr
  8. Preceded by: None
  9. Followed by: Reaping the Benefits of a Monopoly (reaping_the_benefits_of_a_monopoly.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Cross Stitch Britches
  13. -- Barkbiter
  14. -- JA: Why are there two of the same items in a selection?
  15. -- Add QuestSelectableRewardItem(Quest, 3, 1) -- had to breakup function name for auto-updates script
  16. AddQuestStepKill(Quest, 1, "I need to kill the razormaw that swim in the Searing Tendril and bring them back to Dirzdia.", 8, 100, ".", 139, 340137)
  17. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedRazormaws")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. conversation = CreateConversation()
  22. PlayFlavor(QuestGiver, "voiceover/english/neriak/dirzdia_t_zauvirr/darklight_wood/tvatar_post/dirzdia/dirzdia006.mp3", "", "", 1689993769, 508680301, Player)
  23. AddConversationOption(conversation, "I'll be back when I've killed them.")
  24. StartConversation(conversation, QuestGiver, Player, "Great! I appreciate it!")
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function step1_complete_killedRazormaws(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have slain the razormaw.")
  30. AddQuestStepChat(Quest, 2, "I need to bring the razormaw flesh back to Dirzdia.", 1, ".", 0, 340139)
  31. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  32. end
  33. function quest_complete(Quest, QuestGiver, Player)
  34. UpdateQuestDescription(Quest, "I have brought Dirzdia the razormaw flesh she wanted.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. step1_complete_killedRazormaws(Quest, QuestGiver, Player)
  40. end
  41. end