9
3

TaskmastersAssistantKozma.lua 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/TaskmastersAssistantKozma.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.02.23 10:02:54
  5. Script Purpose :
  6. :
  7. --]]
  8. local FarSeasRequisitionWC124 = 5212
  9. local FarSeasRequisitionWC002 = 5213
  10. local FarSeasRequisitionWC154 = 5214
  11. local FarSeasRequisitionWC077 = 5215
  12. local FarSeasRequisitionWC045 = 5216
  13. local FarSeasRequisitionFG016 = 5240
  14. local FarSeasRequisitionFG073 = 5241
  15. local FarSeasRequisitionFG158 = 5242
  16. local FarSeasRequisitionFG212 = 5243
  17. local FarSeasRequisitionFG244 = 5244
  18. function spawn(NPC)
  19. SetPlayerProximityFunction(NPC, 10, "InRange")
  20. end
  21. function InRange(NPC, Spawn)
  22. PlayFlavor(NPC, "voiceover/english/taskmaster_s_assistant_koz_ma/commonlands/quest/015_taskmaster_assistant_kozma_qst_callout_b3f14a2b.mp3", "Bring your FSR's to me. If you don't have them, then I don't want to talk to you.", "", 2096341840, 1469770936, Spawn)
  23. end
  24. function hailed(NPC, Spawn)
  25. if HasQuest(Spawn,5865) and not QuestStepIsComplete(Spawn,5865,5)then --FREEPORT OPPORTUNITY
  26. SetStepComplete(Spawn,5865,5)
  27. end
  28. FaceTarget(NPC, Spawn)
  29. local conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/taskmaster_s_assistant_koz_ma/commonlands/quests/taskmaster/assistant_kozma001.mp3", "", "", 1822760720, 2300113695, Spawn)
  31. AddConversationOption(conversation, "What requisition?", "Option1")
  32. if GetQuestStep(Spawn, FarSeasRequisitionWC124) == 2 then
  33. AddConversationOption(conversation, "I have requisition # WC 124", "COMPLETE")
  34. elseif GetQuestStep(Spawn, FarSeasRequisitionWC002) == 5 then
  35. AddConversationOption(conversation, "I have requisition # WC 002", "COMPLETE")
  36. elseif GetQuestStep(Spawn, FarSeasRequisitionWC154) == 2 then
  37. AddConversationOption(conversation, "I have requisition # WC 154", "COMPLETE")
  38. elseif GetQuestStep(Spawn, FarSeasRequisitionWC077) == 3 then
  39. AddConversationOption(conversation, "I have requisition # WC 077", "COMPLETE")
  40. elseif GetQuestStep(Spawn, FarSeasRequisitionWC045) == 2 then
  41. AddConversationOption(conversation, "I have requisition # WC 045", "COMPLETE")
  42. elseif GetQuestStep(Spawn, FarSeasRequisitionFG016) == 4 then
  43. AddConversationOption(conversation, "I have requisition # FG 016", "COMPLETE")
  44. elseif GetQuestStep(Spawn, FarSeasRequisitionFG073) == 3 then
  45. AddConversationOption(conversation, "I have requisition # FG 073", "COMPLETE")
  46. elseif GetQuestStep(Spawn, FarSeasRequisitionFG158) == 3 then
  47. AddConversationOption(conversation, "I have requisition # FG 158", "COMPLETE")
  48. elseif GetQuestStep(Spawn, FarSeasRequisitionFG212) == 2 then
  49. AddConversationOption(conversation, "I have requisition # FG 212", "COMPLETE")
  50. elseif GetQuestStep(Spawn, FarSeasRequisitionFG244) == 2 then
  51. AddConversationOption(conversation, "I have requisition # FG 244", "COMPLETE")
  52. end
  53. AddConversationOption(conversation, "Then I'll leave.")
  54. StartConversation(conversation, NPC, Spawn, "Where's your requisition? Only those who filled requisitions should speak to me.")
  55. end
  56. function Option1(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. local conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/taskmaster_s_assistant_koz_ma/commonlands/quests/taskmaster/assistant_kozma002.mp3", "", "", 4246141797, 1251397983, Spawn)
  60. AddConversationOption(conversation, "I can be a huntsman.", "Option2")
  61. AddConversationOption(conversation, "Thanks for the heads up.")
  62. StartConversation(conversation, NPC, Spawn, "Why are you wasting my time? The Far Seas Trading Company pays huntsmen to track down various items and beasts. Sometimes the huntsmen inadvertently feed the beasts and never return. Too bad ... for them.")
  63. end
  64. function Option2(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. local conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/taskmaster_s_assistant_koz_ma/commonlands/quests/taskmaster/assistant_kozma003.mp3", "", "", 1400846330, 1112489501, Spawn )
  68. AddConversationOption(conversation, "I got it, thanks.")
  69. StartConversation(conversation, NPC, Spawn, "No! No, no, no! We have plenty of huntsmen! No more huntsmen! And that means you! Okay? Got it? ... That is, unless of course, you happen to find an unfilled order. Get it?")
  70. end
  71. function COMPLETE(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. local conversation = CreateConversation()
  74. PlayFlavor(NPC, "voiceover/english/taskmaster_s_assistant_koz_ma/commonlands/quests/taskmaster/assistant_kozma004.mp3", "", "", 1286861813, 2432767981, Spawn)
  75. if GetQuestStep(Spawn, FarSeasRequisitionWC124) == 2 then
  76. SetStepComplete(Spawn, FarSeasRequisitionWC124, 2)
  77. elseif GetQuestStep(Spawn, FarSeasRequisitionWC002) == 5 then
  78. SetStepComplete(Spawn, FarSeasRequisitionWC002, 5)
  79. elseif GetQuestStep(Spawn, FarSeasRequisitionWC154) == 2 then
  80. SetStepComplete(Spawn, FarSeasRequisitionWC154, 2)
  81. elseif GetQuestStep(Spawn, FarSeasRequisitionWC077) == 3 then
  82. SetStepComplete(Spawn, FarSeasRequisitionWC077, 3)
  83. elseif GetQuestStep(Spawn, FarSeasRequisitionWC045) == 2 then
  84. SetStepComplete(Spawn, FarSeasRequisitionWC045, 2)
  85. elseif GetQuestStep(Spawn, FarSeasRequisitionFG016) == 4 then
  86. SetStepComplete(Spawn, FarSeasRequisitionFG016, 4)
  87. elseif GetQuestStep(Spawn, FarSeasRequisitionFG073) == 3 then
  88. SetStepComplete(Spawn, FarSeasRequisitionFG073, 3)
  89. elseif GetQuestStep(Spawn, FarSeasRequisitionFG158) == 3 then
  90. SetStepComplete(Spawn, FarSeasRequisitionFG158, 3)
  91. elseif GetQuestStep(Spawn, FarSeasRequisitionFG212) == 2 then
  92. SetStepComplete(Spawn, FarSeasRequisitionFG212, 2)
  93. elseif GetQuestStep(Spawn, FarSeasRequisitionFG244) == 2 then
  94. SetStepComplete(Spawn, FarSeasRequisitionFG244, 2)
  95. AddConversationOption(conversation, "Okay.")
  96. StartConversation(conversation, NPC, Spawn, "Lets me see ... Yes, yes! Here we are. This order is overdue, and the Far Seas Trading Company never pays full price for late orders. Consider yourself lucky that you get paid at all. Thank you, come again.")
  97. end
  98. end
  99. function respawn(NPC)
  100. spawn(NPC)
  101. end