striking_back_at_the_goblins_fighter.lua 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/IsleofRefuge/striking_back_at_the_goblins_fighter.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.13 09:09:10
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Braksan Steelforge (3250017)
  8. Preceded by: Refugee Rescue
  9. Followed by: Removing the Orc Menace
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. dofile("SpawnScripts/Generic/ClassSkillCheck.lua")
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I need to collect 4 Flint Head Spears.", 4, 80, "I need to kill Gruttooth Brutes to collect 4 Flint Head Spears", 287, 3250124)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("The others will rely on you to handle most of the fighting but I know you can handle it. You're a brave fighter after all! Go, meet with the others in the village and give those goblins what they deserve! While you are at it friend, fetch me some flint head spears that the goblins carry. I figure it's the least those buggers owe me, considering all of my gear they've stole or broke in the past few weeks. Quickly now! Time is a wasting!")
  21. Dialog.AddVoiceover("voiceover/english/braksan_steelforge/tutorial_island02/braksansteelforge010.mp3", 2848196169,4101313986)
  22. PlayFlavor(QuestGiver, "", "", "nod", 0, 0, Player)
  23. Dialog.AddOption("I'll head out right away.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Step1Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I collected 4 Flint Head Spears.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I collected 4 Flint Head Spears.")
  35. AddQuestStepChat(Quest, 2, "I need to talk to Braksan.", 1, "I need to get these Flint Head Spears back to Braksan.", 11, 3250017)
  36. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  37. end
  38. function QuestComplete(Quest, QuestGiver, Player)
  39. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  40. UpdateQuestStepDescription(Quest, 2, "I spoke to Braksan.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Braksan the Flint Head Spears.")
  42. UpdateQuestDescription(Quest, "I joined with others who were attacking the goblin village. I was able to collect up four flint head spears for Braksan like he asked and deliver them to him. He was very appreciative of my work and gave me a tunic in payment.")
  43. GiveQuestReward(Quest, Player)
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. Step1Complete(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end