pawns_in_the_game.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/Ruins/pawns_in_the_game.lua
  3. Script Purpose : Handles the quest, "Pawns in the Game"
  4. Script Author : Scatman
  5. Script Date : 2009.07.28
  6. Zone : The Ruins
  7. Quest Giver: Captain Arellius
  8. Preceded by: Reporting for Duty (reporting_for_duty.lua)
  9. Followed by: Pounding the Enemy (pounding_the_enemy.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must defeat ten Brokentusk pawns to prove my value to the Militia.", 10, 100, "I must aid Freeport by defeating the Brokentusk pawns.", 2489, 1270130, 1270027, 1270039, 1270022, 1270019, 1270087)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledOrcs")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lieutenant_argosian/fprt_adv04_ruins/revamp/lieutenant_argosian009b.mp3", "", "", 3351588566, 3135177671, Player)
  19. AddConversationOption(conversation, "I will do so.")
  20. StartConversation(conversation, QuestGiver, Player, "Get to work, citizen. You have your orders, now carry them out.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_KilledOrcs(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I defeated 10 Brokentusk pawns and proved my worth.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I crushed the Brokentusk pawns as ordered.")
  27. AddQuestStepChat(Quest, 2, "I should report back to Lieutenant Argosian at the first outpost.", 1, "I should return to the lieutenant and tell him of my victory.", 0, 1270031)
  28. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  29. end
  30. function Quest_Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have reported back to Lieutenant Argosian.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned to the lieutenant.")
  33. GiveQuestReward(Quest, Player)
  34. 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.")
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1_Complete_KilledOrcs(Quest, QuestGiver, Player)
  39. end
  40. end