9
3

snake_slaying.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/WillowWood/snake_slaying.lua
  3. Script Purpose : Handles the quest, "Snake Slaying"
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Zone : The Willow Wood
  7. Quest Giver: Hunter Vannil
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must kill some rock adders.", 8, 100, "I need to kill eight rock adders in the Forest Ruins.", 611, 1960018)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledSnakes")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/hunter_vannil/qey_village05/huntervannil002.mp3", "", "", 2784879734, 2610513967, Player)
  19. AddConversationOption(conversation, "Thanks, this shouldn't be too difficult a hunt.")
  20. StartConversation(conversation, QuestGiver, Player, "Good. Killing the deadly adders shall make our village a safer place. Good luck on your hunt. Please be careful.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_KilledSnakes(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have killed some rock adders.")
  26. UpdateQuestZone(Quest, "The Willow Wood")
  27. AddQuestStepChat(Quest, 2, "I should return to Hunter Vannil.", 1, "I need to kill eight rock adders in the Forest Ruins.", 0, 2370032)
  28. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  29. end
  30. function Quest_Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have spoken with Hunter Vannil.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I killed eight rock adders.")
  33. UpdateQuestDescription(Quest, "I eliminated eight rock adders to make the area safer for the populace of the Willow Wood.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1_Complete_KilledSnakes(Quest, QuestGiver, Player)
  39. end
  40. end