TowserFlizgibbert.lua 814 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/TowserFlizgibbert.lua
  3. Script Author : Rylec
  4. Script Date : 2021.01.24 04:01:01
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. EmoteLoop(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. conversation = CreateConversation()
  14. AddConversationOption(conversation, "Nothing.")
  15. StartConversation(conversation, NPC, Spawn, "Well? What do you want?")
  16. math.randomseed(os.time())
  17. voice = math.random(1,3)
  18. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1040.mp3", "", "", 0, 0, Spawn)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function EmoteLoop(NPC)
  24. PlayAnimation(NPC, 11099)
  25. AddTimer(NPC, 6000, "EmoteLoop")
  26. end