9
3

SeniorInitiateKaruda.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/SeniorInitiateKaruda.lua
  3. Script Author : Rylec
  4. Script Date : 2021.01.31 03:01:11
  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 < 6 then
  15. count = count + 1
  16. Say(NPC, "I still feel shame over my defeat. However, through that defeat, I have learned much about how far even I have to go in my discipline.")
  17. else
  18. count = 1
  19. Say(NPC, "I still feel shame over my defeat. However, through that defeat, I have learned much about how far even I have to go in my discipline.")
  20. end
  21. AddTimer(NPC, 60000, "countReset")
  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, 2000, "turn", 1, Spawn)
  30. count = count + 1
  31. end
  32. function turn(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. AddTimer(NPC, 2000, "sit")
  35. end
  36. function sit(NPC)
  37. PlayAnimation(NPC, "538")
  38. AddTimer(NPC, 1200, "sitIdle")
  39. end
  40. function sitIdle(NPC)
  41. SpawnSet(NPC, "visual_state", "540")
  42. AddTimer(NPC, 1000, "talk")
  43. end
  44. function talk(NPC)
  45. Say(NPC, "I still feel shame over my defeat. However, through that defeat, I have learned much about how far even I have to go in my discipline.")
  46. end
  47. function countReset(NPC)
  48. count = 1
  49. end