TheSearchForBloodskullValley.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : Quests/Commonlands/TheSearchForBloodskullValley.lua
  3. Script Purpose : Handles the quest, "The Search for Bloodskull Valley"
  4. Script Author : premierio015
  5. Script Date : 07.11.2020
  6. Script Notes : Quest for access raid zone "Bloodskull Valley: Maulic's Stronghold"
  7. Zone : Commonlands
  8. Quest Giver : Wounded Scout
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Defeat Commander Du'Nar's platoon for his gem!", 1, 100, "Only the officers carry the gems of tribute, I'm going to have to kill them to get the gems.", 1191, 330124)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "Goodbye.")
  20. StartConversation(conversation, QuestGiver, Player, "Take this... Obtain the gems from the local orc officers... Socket that band with them and then take it to the Freep...")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "Commander Du'Nar gave up his gem... unwillingly.")
  30. AddQuestStepKill(Quest, 2, "Defeat Commander Grik'Sna and pry the gem from his body!", 1, 100, "Only the officers carry the gems of tribute, I'm going to have to kill them to get the gems.", 1198, 330324)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "Commander Grik'Sna's gem has been collected.")
  35. AddQuestStepKill(Quest, 3, "Kill Lieutenant Vrah'Kna and take away his gem!", 1, 100, "Only the officers carry the gems of tribute, I'm going to have to kill them to get the gems.", 1153, 330325)
  36. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  37. end
  38. function Step3Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 3, "I've collected Lieutenant Vrah'Kna's gem.")
  40. AddQuestStepKill(Quest, 4, "Kill General Vhar'Taug and force him to give you his gem!", 1, 100, "Only the officers carry the gems of tribute, I'm going to have to kill them to get the gems.", 1176, 330333)
  41. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  45. UpdateQuestStepDescription(Quest, 4, "General Vhar'Taug's gem has been attained.")
  46. UpdateQuestTaskGroupDescription(Quest, 1, "I now have all the gems needed to resocket this ring.")
  47. UpdateQuestDescription(Quest, "Well, I managed to socket this ring with the gems and it's come to life. Since I don't know who to take this to in Freeport, I might as well hang onto it for safe keeping.")
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. Step1Complete(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. Step2Complete(Quest, QuestGiver, Player)
  55. elseif Step == 3 then
  56. Step3Complete(Quest, QuestGiver, Player)
  57. elseif Step == 4 then
  58. QuestComplete(Quest, QuestGiver, Player)
  59. end
  60. end