Beispiel #1
0
 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);
 }
Beispiel #2
0
        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);
            }
        }