9
3

Cooper.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/Antonica/Cooper.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.21 07:07:18
  5. Script Purpose :
  6. :
  7. --]]
  8. local LetterToRiason = 5350
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, LetterToRiason)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local conversation = CreateConversation()
  15. if not HasQuest(Spawn, LetterToRiason) and not HasCompletedQuest(Spawn, LetterToRiason) then
  16. AddConversationOption(conversation, "No, go ahead... is something the matter?", "Option1")
  17. end
  18. AddConversationOption(conversation, "No thanks.")
  19. StartConversation(conversation, NPC, Spawn, "Feel free to browse my wares... or perhaps you're interested in selling some of yours? Say... no, never mind.")
  20. end
  21. function Option1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. local conversation = CreateConversation()
  24. AddConversationOption(conversation, "I can help you out with that.", "offer")
  25. AddConversationOption(conversation, "No thanks, sounds a little shady.")
  26. StartConversation(conversation, NPC, Spawn, "How perceptive of you to notice that I am in dire need of aid. A... close friend of mine... has requested news from the city and, sadly, I've not the time to deliver the repo... err... letter I have for him.")
  27. end
  28. function offer(NPC, Spawn)
  29. OfferQuest(NPC, Spawn, LetterToRiason)
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end