public void WideMovement(Character character, params WaypointStructure[] waypoints) { SMSG_WIDEMOVEMENTSTART spkt = new SMSG_WIDEMOVEMENTSTART(); spkt.SourceActorID = this.id; spkt.Speed = (ushort)this.Status.WalkingSpeed; for (int i = 0; i < waypoints.Length; i++) spkt.AddWaypoint(waypoints[i].point, waypoints[i].rotation); spkt.SessionId = character.id; character.client.Send((byte[])spkt); }
public void WideMovement(params WaypointStructure[] waypoints) { SMSG_WIDEMOVEMENTSTART spkt = new SMSG_WIDEMOVEMENTSTART(); spkt.SourceActorID = this.id; spkt.Speed = (ushort)this.Status.WalkingSpeed; for (int i = 0; i < waypoints.Length; i++) spkt.AddWaypoint(waypoints[i].point, waypoints[i].rotation); Regiontree tree = this.currentzone.Regiontree; foreach (Character character in tree.SearchActors(SearchFlags.Characters)) { if (character.client.isloaded == false) continue; spkt.SessionId = character.id; character.client.Send((byte[])spkt); } }