9
3

KaylieBrianne1586733.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/everfrost_frostfell_new01/KaylieBrianne1586733.lua
  3. Script Purpose : Waypoint Path for KaylieBrianne1586733.lua
  4. Script Author : Rylec
  5. Script Date : 11-30-2019 03:16:50
  6. Script Notes : Source: Live
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 15, "InRange")
  10. end
  11. function hailed(NPC, Spawn)
  12. Say(NPC, "Watch out! It's slippery!!") --text created by Rylec, not on Live
  13. end
  14. function respawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. SpawnSet(NPC, "action_state", 0)
  18. local rand = math.random(1,2)
  19. if rand==1 then
  20. Say(NPC, "Whoa... whoa... Oh no!!")
  21. end
  22. if rand==2 then
  23. Say(NPC, "Oh no! I can't stay standing... it's too slippery!")
  24. end
  25. --SpawnSet(NPC, "action_state", 11769)
  26. PlayAnimation(NPC, 11767)
  27. AddTimer(NPC, 1300, "TimerLyingDown", 1, Spawn)
  28. end
  29. function TimerLyingDown (NPC)
  30. -- This animation is not on Live, but makes the flow of animations much smoother.
  31. PlayAnimation(NPC, 11769)
  32. AddTimer(NPC, 2400, "TimerGettingUp", 1, Spawn)
  33. end
  34. function TimerGettingUp (NPC)
  35. -- This animation is not on Live, but makes the flow of animations much smoother.
  36. PlayAnimation(NPC, 11768)
  37. AddTimer(NPC, 2500, "TimerConfused", 1, Spawn)
  38. end
  39. function TimerConfused(NPC)
  40. -- This animation is not on Live, but makes the flow of animations much smoother.
  41. PlayAnimation(NPC, 11214)
  42. AddTimer(NPC, 1000, "TimerResetState", 1, Spawn)
  43. end
  44. function TimerResetState(NPC)
  45. SpawnSet(NPC, "action_state", 2809)
  46. end