9
3

InitiateTara.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/InitiateTara.lua
  3. Script Author : Rylec
  4. Script Date : 2021.02.14 04:02:57
  5. Script Purpose :
  6. :
  7. --]]
  8. local count = 1
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. if count == 1 then
  13. stand(NPC, Spawn)
  14. elseif count > 1 and count < 15 then
  15. count = count + 1
  16. PlayFlavor(NPC, "voiceover/english/optional1/initiate_tara/qey_elddar/100_monk_initiate_tara_token1_9ac42d88.mp3", "Tread softly and speak your purpose.", "", 3516598133, 1750026138, Spawn)
  17. else
  18. count = 1
  19. PlayFlavor(NPC, "voiceover/english/optional1/initiate_tara/qey_elddar/100_monk_initiate_tara_token1_9ac42d88.mp3", "Tread softly and speak your purpose.", "", 3516598133, 1750026138, Spawn)
  20. end
  21. AddTimer(NPC, 40000, "Sit")
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end
  26. function stand(NPC, Spawn)
  27. SpawnSet(NPC, "visual_state", "0")
  28. PlayAnimation(NPC, "539")
  29. AddTimer(NPC, 1500, "turn", 1, Spawn)
  30. count = count + 1
  31. end
  32. function turn(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. AddTimer(NPC, 1000, "talk")
  35. end
  36. function talk(NPC)
  37. PlayFlavor(NPC, "voiceover/english/optional1/initiate_tara/qey_elddar/100_monk_initiate_tara_token1_9ac42d88.mp3", "Tread softly and speak your purpose.", "", 3516598133, 1750026138, Spawn)
  38. end
  39. function Sit(NPC)
  40. PlayAnimation(NPC, "538")
  41. AddTimer(NPC, 1200, "countReset")
  42. end
  43. function countReset(NPC)
  44. SpawnSet(NPC, "visual_state", "540")
  45. count = 1
  46. end