AdairBarnes.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. function hailed(NPC, Spawn)
  2. FaceTarget(NPC, Spawn)
  3. local conversation = CreateConversation()
  4. AddConversationOption(conversation, "What are you doing down here?", "Option1")
  5. StartConversation(conversation, NPC, Spawn, "Are you looking for anything in particular?")
  6. --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!")
  7. end
  8. function Option1(NPC, Spawn)
  9. FaceTarget(NPC, Spawn)
  10. local conversation = CreateConversation()
  11. AddConversationOption(conversation, "Yeah, I'll help.", "Option2")
  12. 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.")
  13. end
  14. function Option2(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. local conversation = CreateConversation()
  17. AddConversationOption(conversation, "Got it.")
  18. StartConversation(conversation, NPC, Spawn, "Good. Let me write down in your journal what I need you to get. Now hurry up, this stuff needs to stay fresh, got it?")
  19. end
  20. function spawn(NPC)
  21. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  22. end
  23. function InRange(NPC, Spawn)
  24. Say(NPC,"Ahhh... bringing yourself down into the muck, eh? Gets mighty dark down these parts. Interest you in a fine torch?")
  25. end
  26. function LeaveRange(NPC, Spawn)
  27. end