MenderMannus.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/MenderMannus.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Mender Mannus dialog
  6. Modified Data : 2020.04.03
  7. Modified by : premierio015
  8. Notes : Added VoiceOvers
  9. --]]
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. SpawnSet(NPC, "visual_state", 0)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. math.randomseed(os.time())
  20. local choice = MakeRandomInt(1, 3)
  21. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..choice.."_1004.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "Thanks, I will do so.")
  23. StartConversation(conversation, NPC, Spawn, "Hello there, " ..GetName(Spawn).. ". Menders like me repair your equipment after it is damaged due to death. For more information on repairs, speak to Trainer Zidget Sprogrudder nearby. I'll fix your gear for a small fee, but menders in Qeynos won't be quite so generous!")
  24. AddTimer(NPC, 35000, "ResetState", 1, Spawn)
  25. end
  26. function ResetState(NPC)
  27. SpawnSet(NPC, "visual_state", 11812)
  28. end