will_fight_for_fun.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : will_fight_for_fun.lua
  3. Script Purpose : Handles the quest, "Will Fight for Fun"
  4. Script Author : torsten\\Dorbin
  5. Script Date : 25.07.2022
  6. Script Notes : Was called 'Will Fight for Fun' in pre-launch. Renamed 'Slaying the Giants' at launch.-Dorbin
  7. Zone : Scale Yard
  8. Quest Giver : Colin Stoutfist
  9. Preceded by : Will Work for War
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I need to kill ten giantslayer thugs in the Sprawl.", 10, 100, "Colin told me to kill ten giantslayer thugs in the Sprawl.", 611, 1260013)
  15. UpdateQuestZone(Quest,"The Sprawl")
  16. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  17. end
  18. function QuestComplete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have killed the giantslayers.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I've confronted the Giantslayers and taught them that it's not nice to steal coin or life, by slaying ten of their kind.")
  21. UpdateQuestDescription(Quest, "I've killed a bunch of those thugs. To think they were once glorious Barbarians, and now all they are is just food for the maggots. It's a shame they chose to side with the wrong guys.")
  22. GiveQuestReward(Quest, Player)
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. FaceTarget(QuestGiver, Player)
  26. Dialog.New(QuestGiver, Player)
  27. Dialog.AddDialog("Be my guest! But I'll warn ya' ... if yer gonna stick your nose in this business, you'd better kill at least ten of 'em. Otherwise, Warchief Coldbrow will wonder why you even bothered. Be glorious in battle, friend!")
  28. Dialog.AddVoiceover("voiceover/english/colin_stoutfist/fprt_hood06/quests/colinstoutfist/colin_x2_accept.mp3",138791727,2652552680)
  29. PlayFlavor(QuestGiver, "","","agree",0,0, Player)
  30. Dialog.AddOption("I'll show them their mistake!")
  31. Dialog.Start()
  32. end
  33. function Declined(Quest, QuestGiver, Player)
  34. -- Add dialog here for when the quest is declined
  35. end
  36. function Deleted(Quest, QuestGiver, Player)
  37. -- Remove any quest specific items here when the quest is deleted
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end