BrenloBixiebopperVI55272.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : SpawnScripts/Frostfell/BrenloBixiebopperVI55272.lua
  3. Script Purpose : Waypoint Path for BrenloBixiebopperVI55272.lua
  4. Script Author : Rylec
  5. Script Date : 11-28-2019 07:54:09
  6. Script Notes : Locations collected from Live. Brenlo on Live will force you to fall down
  7. when he hits you (Animation 11767), but the animation breaks when the player
  8. makes any movement which happens a lot on ice. Jab and I tried to fix it with
  9. a ServerControlFlag to take control away from the player so the animation
  10. wouldn't break, and it kinda works, but the animation is not triggered. Someone
  11. would probably have to check packet logs to figure this one out.
  12. Another issue is that on Live the Say is triggered by one Proximity check and the
  13. fall animation by another much closer one. Currently the Emu only seems to
  14. support one Proximity call. If we could get the animation to work I would use
  15. the Proximity call to trigger the animation and just have the Say go off at
  16. random time intervals. That would replicate Live well enough.
  17. --]]
  18. function spawn(NPC)
  19. SetPlayerProximityFunction(NPC, 3, "InRange")
  20. waypoints(NPC)
  21. end
  22. function hailed(NPC, Spawn)
  23. Say(NPC, "I don't have time to chat! I am practicing!") --text created by Rylec, not on Live
  24. end
  25. function respawn(NPC)
  26. end
  27. function InRange(NPC, Spawn)
  28. Say(NPC, "Hey! Get outta my way! I am practicing for the all Halfling Olympics!")
  29. --SetServerControlFlag(Spawn, 4, 64, 1)
  30. PlayAnimation(Spawn, 11767)
  31. --AddTimer(NPC, 4000, "Control", 1, Spawn)
  32. end
  33. --function Control(NPC, Spawn)
  34. -- SetServerControlFlag(Spawn, 4, 64, 0)
  35. --end
  36. function waypoints(NPC)
  37. MovementLoopAddLocation(NPC, 158.28, -38.97, -1587.42, 2, 0)
  38. MovementLoopAddLocation(NPC, 167.57, -38.97, -1580.58, 2, 0)
  39. MovementLoopAddLocation(NPC, 168.36, -38.97, -1576.72, 2, 0)
  40. MovementLoopAddLocation(NPC, 166.68, -38.97, -1573.04, 2, 0)
  41. MovementLoopAddLocation(NPC, 162.78, -38.97, -1570.53, 2, 0)
  42. MovementLoopAddLocation(NPC, 158.55, -38.97, -1570.21, 2, 0)
  43. MovementLoopAddLocation(NPC, 154.55, -38.97, -1573.4, 2, 0)
  44. MovementLoopAddLocation(NPC, 154.51, -38.97, -1576.48, 2, 0)
  45. MovementLoopAddLocation(NPC, 157.52, -38.97, -1581.22, 2, 0)
  46. MovementLoopAddLocation(NPC, 160.14, -38.97, -1584.04, 2, 0)
  47. MovementLoopAddLocation(NPC, 168.4, -38.97, -1588.46, 2, 0)
  48. MovementLoopAddLocation(NPC, 170.58, -38.97, -1591.98, 2, 0)
  49. MovementLoopAddLocation(NPC, 169.55, -38.97, -1595.1, 2, 0)
  50. MovementLoopAddLocation(NPC, 166.43, -38.97, -1597.15, 2, 0)
  51. MovementLoopAddLocation(NPC, 161.32, -38.97, -1596.91, 2, 0)
  52. MovementLoopAddLocation(NPC, 157.65, -38.97, -1594.84, 2, 0)
  53. MovementLoopAddLocation(NPC, 156.18, -38.97, -1592.18, 2, 0)
  54. end