9
3

TaskmasterLynette.lua 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. --[[
  2. Script Name : SpawnScripts/Antonica/TaskmasterLynette.lua
  3. Script Purpose : Taskmaster Lynette
  4. Script Author : geordie0511,Dorbin
  5. Script Date : 2019.03.19
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local A1 = 5818
  9. local A2 = 5819
  10. local A3 = 5820
  11. local A4 = 5821
  12. local A5 = 5822
  13. local A6 = 5823
  14. local A7 = 5824
  15. local A8 = 5825
  16. local A9 = 5826
  17. local A10 = 5827
  18. function spawn(NPC)
  19. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end
  24. function InRange(NPC, Spawn)
  25. end
  26. function LeaveRange(NPC, Spawn)
  27. end
  28. function hailed(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. if HasQuest(Spawn,5766) and GetQuestStepProgress(Spawn,5766,5) == 0 then --WELCOME TO QEYNOS,CITIZEN
  32. SetStepComplete(Spawn,5766,5)
  33. end
  34. PlayFlavor(NPC, "voiceover/english/taskmaster_lynette/qey_harbor/taskmasterlynette000.mp3", "", "tapfoot", 2422547870, 3187249838, Spawn)
  35. if GetQuestStep(Spawn, A1) == 4 then
  36. AddConversationOption(conversation, "I won't bother you then.")
  37. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  38. AddConversationOption(conversation, "I have filled requisition ANT0221.", "dlg_4_1")
  39. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  40. elseif GetQuestStep(Spawn, A2) == 3 then
  41. AddConversationOption(conversation, "I won't bother you then.")
  42. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  43. AddConversationOption(conversation, "I have filled requisition ANT0229.", "dlg_4_1")
  44. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  45. elseif GetQuestStep(Spawn, A3) == 4 then
  46. AddConversationOption(conversation, "I won't bother you then.")
  47. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  48. AddConversationOption(conversation, "I have filled requisition ANT0235.", "dlg_4_1")
  49. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  50. elseif GetQuestStep(Spawn, A4) == 2 then
  51. AddConversationOption(conversation, "I won't bother you then.")
  52. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  53. AddConversationOption(conversation, "I have filled requisition ANT0243.", "dlg_4_1")
  54. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  55. elseif GetQuestStep(Spawn, A5) == 2 then
  56. AddConversationOption(conversation, "I won't bother you then.")
  57. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  58. AddConversationOption(conversation, "I have filled requisition ANT0244.", "dlg_4_1")
  59. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  60. elseif GetQuestStep(Spawn, A6) == 3 then
  61. AddConversationOption(conversation, "I won't bother you then.")
  62. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  63. AddConversationOption(conversation, "I have filled requisition ANT0351.", "dlg_4_1")
  64. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  65. elseif GetQuestStep(Spawn, A7) == 3 then
  66. AddConversationOption(conversation, "I won't bother you then.")
  67. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  68. AddConversationOption(conversation, "I have filled requisition ANT037.", "dlg_4_1")
  69. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  70. elseif GetQuestStep(Spawn, A8) == 3 then
  71. AddConversationOption(conversation, "I won't bother you then.")
  72. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  73. AddConversationOption(conversation, "I have filled requisition ANT0424.", "dlg_4_1")
  74. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  75. elseif GetQuestStep(Spawn, A9) == 3 then
  76. AddConversationOption(conversation, "I won't bother you then.")
  77. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  78. AddConversationOption(conversation, "I have filled requisition ANT0437.", "dlg_4_1")
  79. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  80. elseif GetQuestStep(Spawn, A10) == 2 then
  81. AddConversationOption(conversation, "I won't bother you then.")
  82. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  83. AddConversationOption(conversation, "I have filled requisition ANT0724.", "dlg_4_1")
  84. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  85. else
  86. AddConversationOption(conversation, "I won't bother you then.")
  87. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  88. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  89. end
  90. end
  91. function dlg_4_1(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. conversation = CreateConversation()
  94. PlayFlavor(NPC, "voiceover/english/taskmaster_lynette/qey_harbor/taskmasterlynette003.mp3", "", "", 2958849260, 4083022013, Spawn)
  95. AddConversationOption(conversation, "It's a pleasure doing business with the Far Seas Trading Company.")
  96. StartConversation(conversation, NPC, Spawn, "This order is overdue! Our policy clearly states that the Far Seas Trading Company does not pay full price for late requisitions. Wait... I see that you are not the huntsman who was issued the order. That means I'll have to file a change of vendor form. Still, you've filled the order and that deserves compensation. Perhaps someday we'll add you to our list of independent contractors. ")
  97. if GetQuestStep(Spawn, A1) == 4 then
  98. SetStepComplete(Spawn, A1, 4)
  99. elseif GetQuestStep(Spawn, A2) == 3 then
  100. SetStepComplete(Spawn, A2, 3)
  101. elseif GetQuestStep(Spawn, A3) == 4 then
  102. SetStepComplete(Spawn, A3, 4)
  103. elseif GetQuestStep(Spawn, A4) == 2 then
  104. SetStepComplete(Spawn, A4, 2)
  105. elseif GetQuestStep(Spawn, A5) == 2 then
  106. SetStepComplete(Spawn, A5, 2)
  107. elseif GetQuestStep(Spawn, A6) == 3 then
  108. SetStepComplete(Spawn, A6, 3)
  109. elseif GetQuestStep(Spawn, A7) == 3 then
  110. SetStepComplete(Spawn, A7, 3)
  111. elseif GetQuestStep(Spawn, A8) == 3 then
  112. SetStepComplete(Spawn, A8, 3)
  113. elseif GetQuestStep(Spawn, A9) == 3 then
  114. SetStepComplete(Spawn, A9, 3)
  115. elseif GetQuestStep(Spawn, A10) == 2 then
  116. SetStepComplete(Spawn, A10, 2)
  117. end
  118. end
  119. function dlg_3_1(NPC, Spawn)
  120. FaceTarget(NPC, Spawn)
  121. conversation = CreateConversation()
  122. PlayFlavor(NPC, "voiceover/english/taskmaster_lynette/qey_harbor/taskmasterlynette001.mp3", "", "", 4078840595, 1358943922, Spawn)
  123. AddConversationOption(conversation, "Thanks for the information. ")
  124. AddConversationOption(conversation, "Hire me as your huntsman. ", "dlg_3_2")
  125. StartConversation(conversation, NPC, Spawn, "The Far Seas Trading Company pays huntsmen to gather hides. We issue a requisition order for the kind of hide we wish to buy. The huntsman takes the order and brings us the hides. We pay the huntsman for the hides; if he doesn't return, we don't pay him. For legal purposes, the huntsman is considered a consultant for the Far Seas Trading Company and not a full-time employee; therefore, we assume no liability for the actions, expenses, or injuries of the consultant. ")
  126. end
  127. function dlg_3_2(NPC, Spawn)
  128. if HasQuest(Spawn,5766) and GetQuestStepProgress(Spawn,5766,3) == 0 then --WELCOME TO QEYNOS,CITIZEN
  129. SetStepComplete(Spawn,5766,3)
  130. end
  131. FaceTarget(NPC, Spawn)
  132. conversation = CreateConversation()
  133. PlayFlavor(NPC, "voiceover/english/taskmaster_lynette/qey_harbor/taskmasterlynette002.mp3", "", "heckno", 3001837794, 1766542530, Spawn)
  134. AddConversationOption(conversation, "Good day to you. ")
  135. StartConversation(conversation, NPC, Spawn, "This is the office for processing requisition orders, not the office for employment. We have more than enough huntsmen on staff. So, unless you happen to find an unclaimed Far Seas Requisition and fill its order... our business is done. Good day. Next!")
  136. end