BrenloBixiebopperVI1586827.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : SpawnScripts/everfrost_frostfell_new01/BrenloBixiebopperVI1586827.lua
  3. Script Purpose : Waypoint Path for BrenloBixiebopperVI1586827.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, 261.28, -38.97, -1442.42, 2, 0)
  38. MovementLoopAddLocation(NPC, 270.57, -38.97, -1435.58, 2, 0)
  39. MovementLoopAddLocation(NPC, 271.36, -38.97, -1431.72, 2, 0)
  40. MovementLoopAddLocation(NPC, 269.68, -38.97, -1428.04, 2, 0)
  41. MovementLoopAddLocation(NPC, 265.78, -38.97, -1425.53, 2, 0)
  42. MovementLoopAddLocation(NPC, 261.55, -38.97, -1425.21, 2, 0)
  43. MovementLoopAddLocation(NPC, 257.55, -38.97, -1428.4, 2, 0)
  44. MovementLoopAddLocation(NPC, 257.51, -38.97, -1431.48, 2, 0)
  45. MovementLoopAddLocation(NPC, 260.52, -38.97, -1436.22, 2, 0)
  46. MovementLoopAddLocation(NPC, 263.14, -38.97, -1439.04, 2, 0)
  47. MovementLoopAddLocation(NPC, 271.4, -38.97, -1443.46, 2, 0)
  48. MovementLoopAddLocation(NPC, 273.58, -38.97, -1446.98, 2, 0)
  49. MovementLoopAddLocation(NPC, 272.55, -38.97, -1450.1, 2, 0)
  50. MovementLoopAddLocation(NPC, 269.43, -38.97, -1452.15, 2, 0)
  51. MovementLoopAddLocation(NPC, 264.32, -38.97, -1451.91, 2, 0)
  52. MovementLoopAddLocation(NPC, 260.65, -38.97, -1449.84, 2, 0)
  53. MovementLoopAddLocation(NPC, 259.18, -38.97, -1447.18, 2, 0)
  54. end