9
3

MerchantAdairBarnes.lua 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : SpawnScripts/DownBelow_Classic/MerchantAdairBarnes.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.09 03:11:55
  5. Script Purpose :
  6. :
  7. --]]
  8. local WorkingTheDownBelow = 5365
  9. function hailed(NPC, Spawn)
  10. FaceTarget(NPC, Spawn)
  11. local conversation = CreateConversation()
  12. if not HasQuest(Spawn, WorkingTheDownBelow) then
  13. PlayFlavor(NPC, "voiceover/english/merchant_adair_barnes/qey_catacomb01/merchant_barnes/merchant_barnes001.mp3", "", "", 1654451675, 1398785579, Spawn)
  14. AddConversationOption(conversation, "What are you doing down here?", "Option1")
  15. StartConversation(conversation, NPC, Spawn, "Are you looking for anything in particular?")
  16. elseif GetQuestStep(Spawn, WorkingTheDownBelow) == 2 or GetQuestStep(Spawn, WorkingTheDownBelow) == 3 or GetQuestStep(Spawn, WorkingTheDownBelow) == 1 then
  17. Quest_Progress(NPC, Spawn)
  18. elseif GetQuestStep(Spawn, WorkingTheDownBelow) == 4 then
  19. SetStepComplete(Spawn, WorkingTheDownBelow, 4)
  20. PlayFlavor(NPC, "voiceover/english/merchant_adair_barnes/qey_catacomb01/merchant_barnes/merchant_barnes005.mp3", "", "", 1632932876, 2455444862, Spawn)
  21. AddConversationOption(conversation, "I still don't see why you're down here.", "Option1")
  22. AddConversationOption(conversation, "Ok.")
  23. 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!")
  24. end
  25. end
  26. function Option1(NPC, Spawn)
  27. local count = GetQuestCompleteCount(Spawn, WorkingTheDownBelow)
  28. FaceTarget(NPC, Spawn)
  29. local conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/merchant_adair_barnes/qey_catacomb01/merchant_barnes/merchant_barnes002.mp3", "", "", 1226253735, 3601518165, Spawn)
  31. if not HasQuest(Spawn, WorkingTheDownBelow) and count <= 5 then
  32. AddConversationOption(conversation, "Yeah, I'll help.", "offer")
  33. AddConversationOption(conversation, "Not now.")
  34. 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.")
  35. end
  36. end
  37. function offer(NPC, Spawn)
  38. OfferQuest(NPC, Spawn, WorkingTheDownBelow)
  39. end
  40. function Quest_Progress(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. local conversation = CreateConversation()
  43. PlayFlavor(NPC, "voiceover/english/merchant_adair_barnes/qey_catacomb01/merchant_barnes/merchant_barnes004.mp3", "", "", 1486605195, 3427920459, Spawn)
  44. AddConversationOption(conversation, "Ok.")
  45. StartConversation(conversation, NPC, Spawn, "No time for dawdling! Hurry up and fill those orders.")
  46. end
  47. function spawn(NPC)
  48. ProvidesQuest(NPC, WorkingTheDownBelow)
  49. SetPlayerProximityFunction(NPC, 10, "InRange")
  50. end
  51. function respawn(NPC)
  52. spawn(NPC)
  53. end
  54. function InRange(NPC, Spawn)
  55. if not HasQuest(Spawn, WorkingTheDownBelow) then
  56. 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)
  57. end
  58. end