PawnsInTheGame.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : PawnsintheGame.lua
  3. Script Purpose : Handles the quest, "Pawns in the Game"
  4. Script Author : jakejp
  5. Script Date : 10/4/2018
  6. Script Notes :
  7. Zone : The Ruins
  8. Quest Giver : Lieutenant Argosian
  9. Preceded by : Reporting For Duty
  10. Followed by : Pounding the Enemy
  11. --]]
  12. local brokentuskpawn1 = 1270005
  13. local brokentuskpawn2 = 1270017
  14. local LieutenantArgosian = 1270019
  15. function Init(Quest)
  16. AddQuestStepKill(Quest, 1, "Defeat Brokentusk pawns", 10, 100, "I must aid Freeport by defeating the Brokentusk pawns in the Ruins. I can reach the Ruins by using any of the bells in and around the City of Freeport.", 2489, brokentuskpawn1, brokentuskpawn2)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. end
  19. function Step1Complete(Quest, QuestGiver, Player)
  20. UpdateQuestStepDescription(Quest, 1, "I defeated 10 Brokentusk pawns and proved my worth.")
  21. UpdateQuestTaskGroupDescription(Quest, 1, "I crushed the Brokentusk pawns as ordered.")
  22. AddQuestStepChat(Quest, 2, "Report to Lieutenant Argosian", 1, "I should return to Lieutenant Argosian in the Ruins and tell him of my victory. I can reach the Ruins by using any of the bells in and around the City of Freeport.", 11, LieutenantArgosian)
  23. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  27. UpdateQuestStepDescription(Quest, 2, "I have reported back to Lieutenant Argosian.")
  28. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned to the lieutenant.")
  29. UpdateQuestDescription(Quest, "Following the orders of Lieutenant Argosian, I defeated a number of the Brokentusk pawns. They were relatively easy prey, so I will ask Argosian for a more challenging assignment.")
  30. GiveQuestReward(Quest, Player)
  31. end
  32. function Reload(Quest, QuestGiver, Player, Step)
  33. if Step == 1 then
  34. Step1Complete(Quest, QuestGiver, Player)
  35. elseif Step == 2 then
  36. QuestComplete(Quest, QuestGiver, Player)
  37. end
  38. end
  39. function Accepted(Quest, QuestGiver, Player)
  40. FaceTarget(QuestGiver, Player)
  41. conversation = CreateConversation()
  42. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lieutenant_argosian/fprt_adv04_ruins/revamp/lieutenant_argosian009b.mp3", "", "", 3351588566, 3135177671, Player)
  43. AddConversationOption(conversation, "I will do so.", "dlg_4_9")
  44. StartConversation(conversation, QuestGiver, Player, "Get to work, citizen. You have your orders, now carry them out.")
  45. end
  46. function Declined(Quest, QuestGiver, Player)
  47. -- Add dialog here for when the quest is declined
  48. end