Novak.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/Antonica/Novak.lua
  3. Script Purpose : Novak <General Goods>
  4. Script Author : geordie0511
  5. Script Date : 2019.03.13
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Achoo = 464
  9. local DeliveriesForFlores = 5333 -- Deliveries For Flores Quest
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "voiceover/english/merchant_novak/antonica/merchantnovak000.mp3", "", "", 4148197515, 1288700917, Spawn)
  19. if GetQuestStep(Spawn, Achoo) == 1 then
  20. AddConversationOption(conversation, "Matsy sent me for some pepper.", "pepper")
  21. elseif GetQuestStep(Spawn, DeliveriesForFlores) == 1 then
  22. AddConversationOption(conversation, "I'm here to deliver this crate of supplies from Flores.", "Option1")
  23. end
  24. AddConversationOption(conversation, "Not right now.")
  25. StartConversation(conversation, NPC, Spawn, "Greetings, perhaps you need to replenish your supplies, or maybe just sell some of what you picked up along the trail?")
  26. end
  27. function Option1(NPC, Spawn)
  28. SetStepComplete(Spawn, DeliveriesForFlores, 1)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "voiceover/english/merchant_novak/antonica/merchantnovak001.mp3", "", "thanks", 1938438342, 930282390, Spawn)
  32. AddConversationOption(conversation, "Thanks. I'll make sure he gets it.")
  33. StartConversation(conversation, NPC, Spawn, "Great, I was almost out of supplies as it stands. I would hate to hike all the way back to Flores. Here's a pouch for Flores. Make sure he gets this, okay?")
  34. end
  35. function pepper(NPC, Spawn)
  36. SetStepComplete(Spawn, Achoo, 1)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "Ok, thanks very much.")
  40. StartConversation(conversation, NPC, Spawn, "Oh, here you go! I will put it on her bill.")
  41. end