SuppliesForBrianna.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/ThunderingSteppes/SuppliesForBrianna.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.11 02:07:46
  5. Script Purpose :
  6. Zone : ThunderingSteppes
  7. Quest Giver: Brianna (2490170)
  8. Preceded by: Watch Your Step in the Thundering Steppes, Part III
  9. Followed by: Hides for Brianna
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepObtainItem(Quest, 1, "I need to get five Tin Long Swords for Brianna since I lost the original ones.", 5, 100, "I need to make the replacement items that Brianna needs.", 656, 89137)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestTaskGroupDescription(Quest, 1, "I have the items that Brianna needs now.")
  17. AddQuestStepChat(Quest, 2, "I need to give Brianna the five Tin Long Swords.", 1, "Now that I have all the items that Brianna needs, I should return them to her in The Thundering Steppes.", 654, 2490170)
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. end
  20. function Step2Complete(Quest, QuestGiver, Player)
  21. GiveQuestReward(Quest, Player)
  22. end
  23. function Accepted(Quest, QuestGiver, Player)
  24. FaceTarget(NPC, Spawn)
  25. conversation = CreateConversation()
  26. AddConversationOption(conversation, "Thank you for being so generous.")
  27. StartConversation(conversation, NPC, Spawn, "Well here it looks like 5 Forged Tin Long Swords were damaged. I am going to need you either to buy me some new ones or make them for me. Why don't I keep this delivery receipt until you bring them to me, so I know you will return.")
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. end
  33. function Reload(Quest, QuestGiver, Player, Step)
  34. if Step == 1 then
  35. Step1Complete(Quest, QuestGiver, Player)
  36. elseif Step == 2 then
  37. Step2Complete(Quest, QuestGiver, Player)
  38. end
  39. end