MarshalSurefoot.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/MarshalSurefoot.lua
  3. Script Author : Rylec
  4. Script Date : 2021.08.06 09:08:28
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. local voice = MakeRandomInt(1,3)
  13. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1024.mp3", "", "", 0, 0, Spawn)
  14. conversation = CreateConversation()
  15. AddConversationOption(conversation, "Do deputies get paid well?", "conv_01")
  16. AddConversationOption(conversation, "Sorry to hear that. I must be going.")
  17. StartConversation(conversation, NPC, Spawn, "Stand stout! You'd make a fine deputy.")
  18. end
  19. function conv_01(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. AddConversationOption(conversation, "I can face the titans of the forest.", "conv_02")
  23. AddConversationOption(conversation, "I am not facing any titans today.")
  24. StartConversation(conversation, NPC, Spawn, "Aha! A mercenary! I can use your mettle for testing the strengths of the enemy. Can you overcome the titans of the forest? What do ya say, soldier?")
  25. end
  26. function conv_02(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. AddConversationOption(conversation, "I will face the titans.")
  30. StartConversation(conversation, NPC, Spawn, "Then stand firm and venture to the Forest Ruins. The foes act as Forgotten Guardians. They prey upon the people ... stand tall, soldier! Crush a few and return with a tale of victory!")
  31. end
  32. function respawn(NPC)
  33. spawn(NPC)
  34. end