AdairBarnes.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. local WorkingTheDownBelow = 5365
  2. function hailed(NPC, Spawn)
  3. FaceTarget(NPC, Spawn)
  4. local conversation = CreateConversation()
  5. if not HasQuest(Spawn, WorkingTheDownBelow) then
  6. PlayFlavor(NPC, "voiceover/english/merchant_adair_barnes/qey_catacomb01/merchant_barnes/merchant_barnes001.mp3", "", "", 1654451675, 1398785579, Spawn)
  7. AddConversationOption(conversation, "What are you doing down here?", "Option1")
  8. StartConversation(conversation, NPC, Spawn, "Are you looking for anything in particular?")
  9. elseif GetQuestStep(Spawn, WorkingTheDownBelow) == 2 or GetQuestStep(Spawn, WorkingTheDownBelow) == 3 or GetQuestStep(Spawn, WorkingTheDownBelow) == 1 then
  10. Quest_Progress(NPC, Spawn)
  11. elseif GetQuestStep(Spawn, WorkingTheDownBelow) == 4 then
  12. SetStepComplete(Spawn, WorkingTheDownBelow, 4)
  13. PlayFlavor(NPC, "voiceover/english/merchant_adair_barnes/qey_catacomb01/merchant_barnes/merchant_barnes005.mp3", "", "", 1632932876, 2455444862, Spawn)
  14. AddConversationOption(conversation, "I still don't see why you're down here.", "Option1")
  15. AddConversationOption(conversation, "Ok.")
  16. StartConversation(conversation, NPC, Spawn, "I see that you got everything. Good. Keep in mind that I always need help retrieving goods. If you're ever looking for something to do that'll pass the time, think of me!")
  17. end
  18. end
  19. function Option1(NPC, Spawn)
  20. local count = GetQuestCompleteCount(Spawn, WorkingTheDownBelow)
  21. FaceTarget(NPC, Spawn)
  22. local conversation = CreateConversation()
  23. PlayFlavor(NPC, "voiceover/english/merchant_adair_barnes/qey_catacomb01/merchant_barnes/merchant_barnes002.mp3", "", "", 1226253735, 3601518165, Spawn)
  24. if not HasQuest(Spawn, WorkingTheDownBelow) and count <= 5 then
  25. AddConversationOption(conversation, "Yeah, I'll help.", "offer")
  26. AddConversationOption(conversation, "Not now.")
  27. StartConversation(conversation, NPC, Spawn, "Aren't you a curious bugger! I'll tell you why, it fills my pockets with coin. You'd be surprised by the folks who come down here to buy this or that. Say, why don't you help me fill some orders? There's coin in it for you.")
  28. end
  29. end
  30. function offer(NPC, Spawn)
  31. OfferQuest(NPC, Spawn, WorkingTheDownBelow)
  32. end
  33. function Quest_Progress(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. local conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/merchant_adair_barnes/qey_catacomb01/merchant_barnes/merchant_barnes004.mp3", "", "", 1486605195, 3427920459, Spawn)
  37. AddConversationOption(conversation, "Ok.")
  38. StartConversation(conversation, NPC, Spawn, "No time for dawdling! Hurry up and fill those orders.")
  39. end
  40. function spawn(NPC)
  41. ProvidesQuest(NPC, WorkingTheDownBelow)
  42. SetPlayerProximityFunction(NPC, 10, "InRange")
  43. end
  44. function respawn(NPC)
  45. spawn(NPC)
  46. end
  47. function InRange(NPC, Spawn)
  48. if not HasQuest(Spawn, WorkingTheDownBelow) then
  49. PlayFlavor(NPC, "voiceover/english/merchant_adair_barnes/qey_catacomb01/merchants/qey_catacombs01_merchants_adair_barnes_aoi_callout_4830e9a5.mp3", "Ahhh... bringing yourself down into the muck, eh? Gets mighty dark down these parts. Interest you in a fine torch?", "", 3184947609, 3872372210, Spawn)
  50. end
  51. end