VentarTKal.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/Commonlands/VentarTKal.lua
  3. Script Author : premierio015
  4. Script Date : 2018.12.30 10:12:44
  5. Script Purpose :
  6. Zone : Commonlands
  7. Quest Giver: Captain Feralis
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak with Ventar T'Kal", 1, 11, 330214)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  26. UpdateQuestStepDescription(Quest, 1, "I have spoken with Ventar T'Kal.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken with Ventar T'Kal.")
  28. UpdateQuestDescription(Quest, "I have delivered the treated root samples to Ventar.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Reload(Quest, QuestGiver, Player, Step)
  32. if Step == 1 then
  33. QuestComplete(Quest, QuestGiver, Player)
  34. end
  35. end
  36. function Accepted(Quest, QuestGiver, Player)
  37. SummonItem(Player, 14661, 1)
  38. FaceTarget(QuestGiver, Player)
  39. local conversation = CreateConversation()
  40. AddConversationOption(conversation, "You're welcome.")
  41. StartConversation(conversation, QuestGiver, Player, "Good. And thanks.")
  42. end