he_said_he_said.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : Quests/ScaleYard/he_said_he_said.lua
  3. Script Purpose : Handles the quest, "He said, he said"
  4. Script Author : Xanibunib
  5. Script Date : 2009.03.13
  6. Zone : The Scale Yard
  7. Quest Giver: Brood Matron Vrim Malthyk
  8. QuestID # : 341
  9. Preceded by: A Puppy for Your Potion
  10. Followed by: Paying Homage to the Past
  11. --]]
  12. function Init(Quest)
  13. -- Brood Matron's Private Reserve
  14. -- Kunark Krisps
  15. AddQuestStepChat(Quest, 1, "I must speak with Tristan. He is standing near the Heated Stone Inn.", 1, "I need to manipulate two Barbarians into hating each other.", 0, 1390015)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_Tristan")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. if QuestGiver ~= nil then
  20. if GetDistance (Player, QuestGiver) < 30 then
  21. FaceTarget (QuestGiver, Player)
  22. conversation = CreateConversation()
  23. AddConversationOption(conversation, "Then, I'm off!")
  24. StartConversation(conversation, QuestGiver, Player, "No, that should be enough to send thouse two off the deep end. You should be able to find Tristan near the Heated Stone Inn and Wesley tends to lurk around the South Freeport Gate.")
  25. end
  26. end
  27. end
  28. function Declined(Quest, GuestGiver, Player)
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. end
  32. function Step1_Complete_Tristan(Quest, QestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I have spoken with Tristan.")
  34. AddQuestStepChat(Quest, 2, "I must speak with Wesley Tundrafoot. He is standing near the South Freeport gate.", 1, "I need to manipulate two Barbarians into hating each other.", 0, 1390026)
  35. AddQuestStepCompleteAction(Quest, 2, "Step2_Complete_Wesley")
  36. end
  37. function Step2_Complete_Wesley(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "Sucess! Tristan and Wesley are furious at one another!")
  39. UpdateQuestTaskGroupDescription(Quest, 1, "Sucess! Tristan and Wesley are furious at one another!")
  40. AddQuestStepChat(Quest, 3, "These two Barbarians have completely fallen for my ruse. I must report back to Vrim.", 1, "I need to speak with Vrim", 0, 1260003)
  41. AddQuestStepCompleteAction(Quest, 3, "Step3_QuestComplete")
  42. end
  43. function Step3_QuestComplete(Quest, QuestGiver, Player)
  44. UpdateQuestTaskGroupDescription(Quest, 1, "Success! I have fooled the Barbarians and turned them agaisnt one another.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player)
  48. if Step == 1 then
  49. Step1_Complete_Tristan(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. Step2_Complete_Wesley(Quest, QuestGiver, Player)
  52. elseif Step == 3 then
  53. Step3_QuestComplete(Quest, QuestGiver, Player)
  54. end
  55. end