Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bigWill_onSpawn( unit, _ )
- unit:SetMovementType( 11 ) -- foward then stop
- unit:CreateCustomWaypointMap()
- unit:CreateCustomWaypoint( 1, -1693, -4343, 4.32, 1, 0, 1, 0 )
- unit:CreateCustomWaypoint( 2, -1684, -4333, 2.78, 1, 0, 1, 0 )
- unit:CreateCustomWaypoint( 3, -1682, -4329, 2.79, 1, 0, 0, 0 )
- end
- function bigWill_onAIUpdate( unit, _ )
- unit:RemoveFlag( 0x0006 + 0x0035, 0x00000100 + 0x02000000 )
- unit:DisableCombat( 0 )
- unit:SendChatMessage( 12, 0, "Ready when you are, warrior." )
- local value = unit:GetUInt64Value( 0x0006 + 0x000C )
- local target = unit:GetUnitByGUID( value )
- -- dont crash please
- if target then
- unit:AttackReaction( target, 45, 0 )
- end
- unit:RemoveAIUpdateEvent()
- end
- function bigWill_onReachWaypoint( unit, _, waypointId, _ )
- if waypointId == 3 then
- unit:DestroyCustomWaypointMap()
- unit:Emote( 27, 0 )
- end
- end
- RegisterUnitEvent( 6238, 18, bigWill_onSpawn )
- RegisterUnitEvent( 6238, 19, bigWill_onReachWaypoint )
- RegisterUnitEvent( 6238, 21, bigWill_onAIUpdate )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement