9
3

a_final_foe.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/PeatBog/a_final_foe.lua
  3. Script Purpose : Handles the quest, "A Final Foe"
  4. Script Author : Scatman
  5. Script Date : 2009.05.10
  6. Zone : The Peat Bog
  7. Quest Giver: Lieutenant Dawson
  8. Preceded by: On the Move (on_the_move.lua)
  9. Followed by: Reinforcements (reinforcements.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to kill Dentfang.", 1, 100, "I need to kill Dentfang for Lieutenant Dawson.", 0, 1980127)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledDentFang")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lieutenant_dawson/qey_adv04_bog/quests/dawson/dawson019a.mp3", "", "", 2166332707, 347747136, Player)
  19. AddConversationOption(conversation, "All right.")
  20. StartConversation(conversation, QuestGiver, Player, "He may have bodyguards, but I'm sure you can handle them.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_KilledDentFang(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have killed Dentfang.")
  26. AddQuestStepChat(Quest, 2, "I need to return to Lieutenant Dawson.", 1, "I need to kill Dentfang for Lieutenant Dawson.", 0, 1980022)
  27. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  28. end
  29. function QuestComplete(Quest, QuestGiver, Player)
  30. UpdateQuestDescription(Quest, "I have slain Dentfang. Lieutenant Dawson was very pleased with my work.")
  31. GiveQuestReward(Quest, Player)
  32. end
  33. function Reload(Quest, QuestGiver, Player, Step)
  34. if Step == 1 then
  35. Step1_Complete_KilledDentFang(Quest, QuestGiver, Player)
  36. end
  37. end