You can modify your script like this:
test,114,104,4 script Test2 -1,{ setpcblock PCBLOCK_MOVE,1; // Block movement unitwalk getcharid(3),107,104; // Start unitwalk while (getcharid(3) != 107 || getcharid(4) != 104) { // Wait until arrival sleep2 100; // Optional delay } setpcblock PCBLOCK_MOVE,0; // Unblock movement end; OnInit: end;
This will prevent player movement until they reach the specified coordinates (107, 104).