9
3

Flores.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : SpawnScripts/Antonica/Flores.lua
  3. Script Purpose : Flores
  4. Script Author : Jabantiz, premierio015
  5. Script Date : 08/29/2019
  6. Script Notes : Auto-Generated from a chat log using SpawnScriptDesigner
  7. --]]
  8. local DeliveriesForFlores = 5333 -- Deliveries For Flores Quest
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, DeliveriesForFlores)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. local conversation = CreateConversation()
  18. PlayFlavor(NPC, "voiceover/english/merchant_flores/antonica/merchantflores000.mp3", "", "", 149465216, 3128258097)
  19. if not HasQuest(Spawn, DeliveriesForFlores) and not HasCompletedQuest(Spawn, DeliveriesForFlores) then
  20. AddConversationOption(conversation, "I'm looking for work. Do you have any tasks that need done? ", "Option1")
  21. elseif GetQuestStep(Spawn, DeliveriesForFlores) == 3 then
  22. AddConversationOption(conversation, "I'm back with the pouches.", "Option2")
  23. end
  24. AddConversationOption(conversation, "I don't need anything right now, thanks.")
  25. StartConversation(conversation, NPC, Spawn, "Step right up! My wares stand up to any found in the city! Made by the finest Qeynosian crafters, they are!")
  26. end
  27. function Option1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. local conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/merchant_flores/antonica/merchantflores001.mp3", "", "", 4230827236, 573418930, Spawn)
  31. AddConversationOption(conversation, "Does it pay well? Sounds like a pretty decent hike.", "offer")
  32. AddConversationOption(conversation, "No thanks. The far reaches sounds further than I'm willing to go.")
  33. StartConversation(conversation, NPC, Spawn, "I certainly do. I need to deliver supplies to a couple of my merchants out in the far reaches of Antonica. Business is so good right now that I hate to close up shop. How would you like to deliver their supplies?")
  34. end
  35. function Option2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. local conversation = CreateConversation()
  38. PlayFlavor(NPC, "voiceover/english/merchant_flores/antonica/merchantflores003.mp3", "", "", 741997082, 1076579882, Spawn)
  39. AddConversationOption(conversation, "Here you are. ", "Option3")
  40. StartConversation(conversation, NPC, Spawn, "So you are! Well done. Let me take a look at those pouches, and I'll see how much I can afford to pay you.")
  41. end
  42. function Option3(NPC, Spawn)
  43. SetStepComplete(Spawn, DeliveriesForFlores, 3)
  44. FaceTarget(NPC, Spawn)
  45. local conversation = CreateConversation()
  46. PlayFlavor(NPC, "voiceover/english/merchant_flores/antonica/merchantflores004.mp3", "", "", 2648431364, 4291369549, Spawn)
  47. AddConversationOption(conversation, "Not at the moment thanks. Perhaps I'll return later to see if you need any further assistance. ")
  48. StartConversation(conversation, NPC, Spawn, "Splendid! The merchants are doing very well. Here's your share. Now, why don't you use your reward to buy my fine merchandise?")
  49. end
  50. function offer(NPC, Spawn)
  51. OfferQuest(NPC, Spawn, DeliveriesForFlores)
  52. end