9
3

killing_the_advance.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/TimorousDeep/killing_the_advance.lua
  3. Script Purpose : Handles the quest, "Killing the Advance"
  4. Script Author : Scatman
  5. Script Date : 2009.03.10
  6. Zone : Timorous Deep
  7. Quest Giver: Tertiary Dih'Ha
  8. Preceded by: None
  9. Followed by: Reinforcements of a Sort (reinforcements_of_a_sort.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to kill some Haoaeran advancers.", 7, 100, "", 611, 2630124)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledAdvancers")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/tertiary_dih_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dihha/dihha003.mp3", "", "", 187701860, 3892292625, Player)
  19. AddConversationOption(conversation, "Ok.")
  20. StartConversation(conversation, QuestGiver, Player, "You had better. Return to me when it's done.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_KilledAdvancers(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have slain the Haoaeran advancers.")
  26. AddQuestStepChat(Quest, 2, "I need to return to Tertiary Dih'Ha.", 1, "", 0, 2630108)
  27. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  28. end
  29. function Quest_Complete(Quest, QuestGiver, Player)
  30. RemoveItem(Spawn, 2931)
  31. UpdateQuestDescription(Quest, "I have slain the Haoaeran advancers and returned to Tertiary Dih'Ha.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QusetGiver, Player, Step)
  35. if Step == 1 then
  36. Step1_Complete_KilledAdvancers(Quest, QuestGiver, Player)
  37. end
  38. end