9
3

prophet_and_loss.lua 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --[[
  2. Script Name : Quests/Ruins/Prophet and Loss
  3. Script Purpose : Handles the quest, "prophet_and_loss.lua"
  4. Script Author : Scatman
  5. Script Date : 2009.08.02
  6. Zone : The Ruins
  7. Quest Giver: Lieutenant Argosian
  8. Preceded by: Pounding the Enemy (pounding_the_enemy.lua)
  9. Followed by: Requesting Further Orders (requesting_further_orders.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepLocation(Quest, 1, "I must find and examine an old shrine guarded by Brokentusk prophets.", 20, "I should search for an old shrine guarded by prophets past the Brokentusks north of the docks. Then I should eliminate the orcs guarding it.", 1215, -67, 0, 65)
  13. AddQuestStepKill(Quest, 2, "I must defeat four Brokentusk warriors guarding the shrine.", 4, 100, "I should search for an old shrine guarded by prophets past the Brokentusks north of the docks. Then I should eliminate the orcs guarding it.", 2489, 1270037, 1270056)
  14. AddQuestStepKill(Quest, 3, "I must defeat four prophets around the shrine to see if they draw power from it.", 4, 100, "I should search for an old shrine guarded by prophets past the Brokentusks north of the docks. Then I should eliminate the orcs guarding it.", 2489, 1270053, 1270047)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_ExaminedShrine")
  16. AddQuestStepCompleteAction(Quest, 2, "Step2_Complete_KilledWarriors")
  17. AddQuestStepCompleteAction(Quest, 3, "Step3_Complete_KilledProphets")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. conversation = CreateConversation()
  22. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lieutenant_argosian/fprt_adv04_ruins/revamp/lieutenant_argosian022b.mp3", "", "", 3696168160, 1150705872, Player)
  23. AddConversationOption(conversation, "Yes, sir.")
  24. StartConversation(conversation, QuestGiver, Player, "Go now, and report back when your duty is done.")
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function Step1_Complete_ExaminedShrine(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I found the old shrine, which seems to be a relic of Shoreside.")
  30. if QuestIsComplete(Player, 264) then
  31. KilledAllOrcs(Quest, QuestGiver, Player)
  32. end
  33. end
  34. function Step2_Complete_KilledWarriors(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I have defeated four Brokentusk warriors guarding the old shrine.")
  36. if QuestIsComplete(Player, 264) then
  37. KilledAllOrcs(Quest, QuestGiver, Player)
  38. end
  39. end
  40. function Step3_Complete_KilledProphets(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 3, "I have defeated four Brokentusk prophets, but they don't seem to gain any strength from this shrine.")
  42. if QuestIsComplete(Player, 264) then
  43. KilledAllOrcs(Quest, QuestGiver, Player)
  44. end
  45. end
  46. function KilledAllOrcs(Quest, QuestGiver, Player)
  47. UpdateQuestTaskGroupDescription(Quest, 1, "I found the shrine and defeated the orcs guarding it.")
  48. AddQuestStepChat(Quest, 4, "I must report back to Lieutenant Argosian with news on the shrine.", 1, "I should report back to the lieutenant.", 0, 1270031)
  49. AddQuestStepCompleteAction(Quest, 4, "Quest_Complete")
  50. end
  51. function Quest_Complete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 4, "I have informed the lieutenant that I found the shrine.")
  53. UpdateQuestTaskGroupDescription(Quest, 2, "I reported back to the lieutenant.")
  54. GiveQuestReward(Quest, Player)
  55. UpdateQuestDescription(Quest, "I found the remains of an old shrine in the Ruins, but it does not seem to be giving any divine strength to the orcs. In fact, it seems to be a remnant of the lost community of Shoreside, which is what this area used to be called. I have reported back to Lieutenant Argosian of the Freeport Militia and told him what I found.")
  56. end
  57. function Reload(Quest, QuestGiver, Player, Step)
  58. if Step == 1 then
  59. Step1_Complete_ExaminedShrine(Quest, QuestGiver, Player)
  60. elseif Step == 2 then
  61. Step2_Complete_KilledWarriors(Quest, QuestGiver, Player)
  62. elseif Step == 3 then
  63. Step3_Complete_KilledProphets(Quest, QuestGiver, Player)
  64. end
  65. end