stowaway_antonica.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. --[[
  2. Script Name : Quests/AlphaTest/stowaway_antonica.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.06.15 07:06:35
  5. Script Purpose :
  6. Zone : AlphaTest
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepZoneLoc(Quest, 1, "I must ride to Antonica...", 12, "The Shady Swashbuckler provided me passage to Antonica. He will have the paperwork I need when I get there.", 2285, 395.79, -38.56, 809.38,12)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. PlayFlavor(QuestGiver, "", "", "wink", 0, 0, Player)
  17. Qeynos = GetFactionAmount(Player, 11)
  18. Freeport = GetFactionAmount(Player, 12)
  19. Neriak = GetFactionAmount(Player, 13)
  20. Kelethin = GetFactionAmount(Player, 14)
  21. Halas = GetFactionAmount(Player, 16)
  22. Gorowyn = GetFactionAmount(Player, 17)
  23. alignment = GetAlignment(Player)
  24. if GetRace(Player) == 0 or GetRace(Player) == 3 or GetRace(Player) == 5 or GetRace(Player) == 6 or GetRace(Player) == 9 or GetRace(Player) == 11 or GetRace(Player) == 20 then
  25. SetAlignment(Player, 1)
  26. end
  27. if Qeynos ==0 then ChangeFaction(Player, 11, 20000)
  28. end
  29. if Freeport ==0 then ChangeFaction(Player, 12, -40000)
  30. end
  31. --[[if Neriak ==0 then ChangeFaction(Player, 13, Neriak)
  32. end
  33. if Kelethin ==0 then ChangeFaction(Player, 14, Kelethin)
  34. end
  35. if Halas ==0 then ChangeFaction(Player, 16, Halas)
  36. end
  37. if Gorowyn ==0 then ChangeFaction(Player, 17, -Gorowyn)
  38. end--]]
  39. Antonica = GetZone("Antonica")
  40. Zone(Antonica,Player,396.44,-38.47, 812.79, 13.82)
  41. end
  42. function Declined(Quest, QuestGiver, Player)
  43. PlayFlavor(QuestGiver, "voiceover/english/scribe_duvo/qey_elddar/100_scribe_halfling_duvo_multhail1_a72f47c8.mp3", "I'm sorry. I cannot help you.", "shrug", 1448300901, 17119076, Player)
  44. end
  45. function Deleted(Quest, QuestGiver, Player)
  46. -- Remove any quest specific items here when the quest is deleted
  47. end
  48. function Step1Complete(Quest)
  49. UpdateQuestStepDescription(Quest, 1, "I have arrived in Antonica mostly intact.")
  50. AddQuestStepChat(Quest, 2, "I need to meet up with the Shady Swashbuckler near the lighthouse in Antonica.", 1, "The Shady Swashbuckler provided me passage to Antonica. He will have the paperwork I need when I get there.", 11, 121874)
  51. AddQuestStepObtainItem(Quest, 3, "I must fill out Qeynos Citizenship papers.", 1,100, "The Shady Swashbuckler provided me passage to Antonica. He will have the paperwork I need when I get there.", 75, 1001095)
  52. AddQuestStepObtainItem(Quest, 4, "I must fill out Class Certification paperwork.", 1,100, "The Shady Swashbuckler provided me passage to Antonica. He will have the paperwork I need when I get there.", 2183, 1001096,1001097,1001098,1001099,1001100,1001101,1001102,1001103,1001104,1001105,1001106,1001107)
  53. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  54. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  55. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  56. end
  57. function Step2Complete(Quest, QuestGiver, Player)
  58. UpdateQuestStepDescription(Quest, 2, "I have found the Shady Swashbuckler in Antonica.")
  59. QuestCheck1(Quest, QuestGiver, Player)
  60. end
  61. function Step3Complete(Quest, QuestGiver, Player)
  62. UpdateQuestStepDescription(Quest, 3, "I have Forged Qeynos Citizenship Papers.")
  63. QuestCheck1(Quest, QuestGiver, Player)
  64. end
  65. function Step4Complete(Quest, QuestGiver, Player)
  66. UpdateQuestStepDescription(Quest, 4, "I have Class Certification Papers.")
  67. QuestCheck1(Quest, QuestGiver, Player)
  68. end
  69. function QuestCheck1(Quest, QuestGiver, Player)
  70. if QuestStepIsComplete(Player,5858,2) and QuestStepIsComplete(Player,5858,3)and QuestStepIsComplete(Player,5858,4) then
  71. UpdateQuestTaskGroupDescription(Quest, 1, "I have found all I need to Fast-Track to Qeynos.")
  72. UpdateQuestDescription(Quest, "I have all the necessary parts for the Fast-Track passage to Qeynos. The ride was a bit cramped...")
  73. GiveQuestReward(Quest, Player)
  74. end
  75. end
  76. function Reload(Quest, QuestGiver, Player, Step)
  77. if Step == 1 then
  78. Step1Complete(Quest, QuestGiver, Player)
  79. elseif Step == 2 then
  80. Step2Complete(Quest, QuestGiver, Player)
  81. elseif Step == 3 then
  82. Step3Complete(Quest, QuestGiver, Player)
  83. elseif Step == 4 then
  84. Step4Complete(Quest, QuestGiver, Player)
  85. end
  86. end