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