a_friendly_reminder.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : Quests/Darklight/a_friendly_reminder.lua
  3. Script Purpose : Handles the quest, "A Friendly Reminder"
  4. Script Author : Scatman
  5. Script Date : 2009.02.03
  6. Zone : Darklight Wood
  7. Quest Giver: Laexyra Y'Barriath
  8. Preceded by: Public Service (public_service.lua)
  9. Followed by: Reaping (reaping.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to remind Harnen Taptha that Laexyra Y'Barriath was right.", 1, ".", 0, 340127)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_talkedToHarnen")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/neriak/laexyra_y_barriath/darklight_wood/tvatar_post/laexyra/laexyra014.mp3", "", "", 1254557945, 2860942006, Player)
  19. AddConversationOption(conversation, "I'll see.")
  20. StartConversation(conversation, QuestGiver, Player, "I think you'll find him quite amusing.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_complete_talkedToHarnen(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "Harnen Taptha has attacked me, I must kill him.")
  26. AddQuestStepKill(Quest, 2, "I must killed Hernen Taptha.", 1, 100, ".", 611, 340127)
  27. AddQuestStepCompleteAction(Quest, 2, "step2_complete_killedHarnen")
  28. end
  29. function step2_complete_killedHarnen(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have killed Harnen Taptha.")
  31. AddQuestStepChat(Quest, 3, "I need to return to Laexyra Y'Barriath.", 1, ".", 0, 340109)
  32. AddQuestStepCompleteAction(Quest, 3, "quest_complete")
  33. end
  34. function quest_complete(Quest, QuestGiver, Player)
  35. UpdateQuestDescription(Quest, "Haren Taptha attacked me and I killed him. Laexyra assures me that he'll be back.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. step1_complete_talkedToHarnen(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. step2_complete_killedHarnen(Quest, QuestGiver, Player)
  43. end
  44. end