TaskmasterLynette.lua 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. --[[
  2. Script Name : SpawnScripts/Antonica/TaskmasterLynette.lua
  3. Script Purpose : Taskmaster Lynette
  4. Script Author : geordie0511
  5. Script Date : 2019.03.19
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local A1 = 474
  9. local A2 = 475
  10. local A3 = 476
  11. local A4 = 477
  12. local A5 = 478
  13. local A6 = 479
  14. local A7 = 480
  15. local A8 = 481
  16. local A9 = 482
  17. local A10 = 483
  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. PlayFlavor(NPC, "voiceover/english/taskmaster_lynette/qey_harbor/taskmasterlynette000.mp3", "", "", 2422547870, 3187249838, Spawn)
  32. if GetQuestStep(Spawn, A1) == 4 then
  33. AddConversationOption(conversation, "I won't bother you then.")
  34. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  35. AddConversationOption(conversation, "I have filled requisition ANT0221.", "dlg_4_1")
  36. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  37. elseif GetQuestStep(Spawn, A2) == 3 then
  38. AddConversationOption(conversation, "I won't bother you then.")
  39. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  40. AddConversationOption(conversation, "I have filled requisition ANT0229.", "dlg_4_1")
  41. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  42. elseif GetQuestStep(Spawn, A3) == 4 then
  43. AddConversationOption(conversation, "I won't bother you then.")
  44. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  45. AddConversationOption(conversation, "I have filled requisition ANT0235.", "dlg_4_1")
  46. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  47. elseif GetQuestStep(Spawn, A4) == 2 then
  48. AddConversationOption(conversation, "I won't bother you then.")
  49. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  50. AddConversationOption(conversation, "I have filled requisition ANT0243.", "dlg_4_1")
  51. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  52. elseif GetQuestStep(Spawn, A5) == 2 then
  53. AddConversationOption(conversation, "I won't bother you then.")
  54. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  55. AddConversationOption(conversation, "I have filled requisition ANT0244.", "dlg_4_1")
  56. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  57. elseif GetQuestStep(Spawn, A6) == 3 then
  58. AddConversationOption(conversation, "I won't bother you then.")
  59. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  60. AddConversationOption(conversation, "I have filled requisition ANT0351.", "dlg_4_1")
  61. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  62. elseif GetQuestStep(Spawn, A7) == 3 then
  63. AddConversationOption(conversation, "I won't bother you then.")
  64. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  65. AddConversationOption(conversation, "I have filled requisition ANT037.", "dlg_4_1")
  66. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  67. elseif GetQuestStep(Spawn, A8) == 3 then
  68. AddConversationOption(conversation, "I won't bother you then.")
  69. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  70. AddConversationOption(conversation, "I have filled requisition ANT0424.", "dlg_4_1")
  71. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  72. elseif GetQuestStep(Spawn, A9) == 3 then
  73. AddConversationOption(conversation, "I won't bother you then.")
  74. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  75. AddConversationOption(conversation, "I have filled requisition ANT0437.", "dlg_4_1")
  76. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  77. elseif GetQuestStep(Spawn, A10) == 2 then
  78. AddConversationOption(conversation, "I won't bother you then.")
  79. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  80. AddConversationOption(conversation, "I have filled requisition ANT0724.", "dlg_4_1")
  81. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  82. else
  83. AddConversationOption(conversation, "I won't bother you then.")
  84. AddConversationOption(conversation, "What is a Far Seas Requisition?", "dlg_3_1")
  85. StartConversation(conversation, NPC, Spawn, "Unless you're filling a Far Seas Requisition of Antonica I do not have time for you. Time is money.")
  86. end
  87. end
  88. function dlg_4_1(NPC, Spawn)
  89. FaceTarget(NPC, Spawn)
  90. conversation = CreateConversation()
  91. PlayFlavor(NPC, "voiceover/english/taskmaster_lynette/qey_harbor/taskmasterlynette003.mp3", "", "", 2958849260, 4083022013, Spawn)
  92. AddConversationOption(conversation, "It's a pleasure doing business with the Far Seas Trading Company.")
  93. 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. ")
  94. if GetQuestStep(Spawn, A1) == 4 then
  95. SetStepComplete(Spawn, A1, 4)
  96. elseif GetQuestStep(Spawn, A2) == 3 then
  97. SetStepComplete(Spawn, A2, 3)
  98. elseif GetQuestStep(Spawn, A3) == 4 then
  99. SetStepComplete(Spawn, A3, 4)
  100. elseif GetQuestStep(Spawn, A4) == 2 then
  101. SetStepComplete(Spawn, A4, 2)
  102. elseif GetQuestStep(Spawn, A5) == 2 then
  103. SetStepComplete(Spawn, A5, 2)
  104. elseif GetQuestStep(Spawn, A6) == 3 then
  105. SetStepComplete(Spawn, A6, 3)
  106. elseif GetQuestStep(Spawn, A7) == 3 then
  107. SetStepComplete(Spawn, A7, 3)
  108. elseif GetQuestStep(Spawn, A8) == 3 then
  109. SetStepComplete(Spawn, A8, 3)
  110. elseif GetQuestStep(Spawn, A9) == 3 then
  111. SetStepComplete(Spawn, A9, 3)
  112. elseif GetQuestStep(Spawn, A10) == 2 then
  113. SetStepComplete(Spawn, A10, 2)
  114. end
  115. end
  116. function dlg_3_1(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. conversation = CreateConversation()
  119. PlayFlavor(NPC, "voiceover/english/taskmaster_lynette/qey_harbor/taskmasterlynette001.mp3", "", "", 4078840595, 1358943922, Spawn)
  120. AddConversationOption(conversation, "Thanks for the information. ")
  121. AddConversationOption(conversation, "Hire me as your huntsman. ", "dlg_3_2")
  122. 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. ")
  123. end
  124. function dlg_3_2(NPC, Spawn)
  125. FaceTarget(NPC, Spawn)
  126. conversation = CreateConversation()
  127. PlayFlavor(NPC, "voiceover/english/taskmaster_lynette/qey_harbor/taskmasterlynette002.mp3", "", "", 3001837794, 1766542530, Spawn)
  128. AddConversationOption(conversation, "Good day to you. ")
  129. 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!")
  130. end