HidesForBrianna.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/ThunderingSteppes/HidesForBrianna.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.11 02:07:04
  5. Script Purpose :
  6. Zone : ThunderingSteppes
  7. Quest Giver: Brianna (2490170)
  8. Preceded by: Supplies for Brianna
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Collect tough rumbler hides.", 15, 100, "Brianna in Thundermist village has asked me to gather tough hides from rumblers in the Steppes.", 2536, 3570000, 3570001, 3570002, 3570003, 3570004, 3570005, 3570006, 3570007, 3570008)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestTaskGroupDescription(Quest, 1, "I gathered the rumbler hides for Brianna.")
  17. AddQuestStepChat(Quest, 2, "Return these hides to Brianna in Thundermist Village.", 1, "I should return these rumbler hides to Brianna in Thundermist Village.", 11, 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, "I'm on it.")
  27. StartConversation(conversation, NPC, Spawn, "Well, the first thing I am going to need today is some tough rumbler hides, but only from the subterranean ones. If they have ever seen daylight, they just won't do. There is a special cave I found once where they tend to gather. If you can bring me 15 of them that would be great.")
  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