9
3

the_siege_is_not_over.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/FrostfangSea/the_siege_is_not_over.lua
  3. Script Purpose : the quest The Siege is Not Over
  4. Script Author : theFoof
  5. Script Date : 2013.6.5
  6. Zone : Frostfang Sea
  7. Quest Giver : Battlepriest Herga
  8. Preceded by : The Charge
  9. Followed by : Forsaking the Grave
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(5,90), math.random(13,25), 0, 0)
  13. AddQuestStep(Quest, 1, "I must sabotage the ballistae on Ry'Gorr Isle.", 6, 100, "I must sabotage the ballistae on Ry'Gorr Isle.", 2361)
  14. AddQuestStepCompleteAction(Quest, 1, "SabotagedBallistae")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "battlepriest_herga/halas/great_shelf/battlepriest_herga/battlepriest_herga029.mp3", "", "", 3545707783, 4113839123, Player)
  20. AddConversationOption(conversation, "It shouldn't be a problem.")
  21. AddConversationOption(conversation, "Brell have mercy on them, because I certainly won't.")
  22. StartConversation(conversation, QuestGiver, Player, "The orcs are nothing if not tenacious. They have crafted these devastating devices from driftwood and sea-rusted steel. ")
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function SabotagedBallistae(Quest, QuestGiver, Player)
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I have sabotaged the ballistae.")
  30. AddQuestStepChat(Quest, 2, "I must speak with Battlepriest Herga.", 1, "I must speak with Battlepriest Herga, who can be found on the battlefield at the Great Shelf.", 0, 4700100)
  31. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  32. end
  33. function CompleteQuest(Quest, QuestGiver, Player)
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. SabotagedBallistae(Quest, QuestGiver, Player)
  39. end
  40. end