import AbstractGameCommand from "./AbstractGameCommand" ; import MoveBackwardToLocation from "../network/outgoing/game/MoveBackwardToLocation" ; import ValidatePosition from "../network/outgoing/game/ValidatePosition" ; export default class CommandMoveTo extends AbstractGameCommand { execute ( x , y , z ) { const char = this . GameClient ?. ActiveChar ; if ( char ) { this . GameClient ?. sendPacket ( new MoveBackwardToLocation ( x , y , z , char . X , char . Y , char . Z ) ) ; this . GameClient ?. sendPacket ( new ValidatePosition ( char . X , char . Y , char . Z , char . Heading , 0 ) ) ; } } }