MoveBoat
Steers the boat the character is piloting, using High Seas packet-based steering (the same mechanism as mouse steering in the official client; packet 0xBF subcommand 0x33).
Direction is an absolute world direction (0–7): 0 — North, 1 — Northeast, 2 — East, 3 — Southeast, 4 — South, 5 — Southwest, 6 — West, 7 — Northwest. The server turns the boat itself when the requested direction differs from the current facing — no separate “turn” command is needed.
Speed: 0 — stop, 1 — slow, 2 — fast. Values above 2 are clamped to 2.
The boat keeps moving in the given direction until you call StopBoat (or MoveBoat(dir, 0)), change direction, or the boat hits an obstacle.
This method only works if:
- The profile’s client version is 7.0.9.0 or higher (High Seas). With an older version the call only writes a warning to the system journal.
- The shard supports High Seas mouse steering. On OSI and ServUO-based shards the character must first take the helm (pilot mode — double-click the ship’s wheel / context menu). ModernUO shards do not implement this packet at all (boats there are controlled by speech commands only).
Управляет лодкой, которой правит персонаж, через пакетное HS-управление (тот же механизм, что и управление мышью в официальном клиенте; пакет 0xBF, субкоманда 0x33).
Direction — абсолютное мировое направление (0–7): 0 — север, 1 — северо-восток, 2 — восток, 3 — юго-восток, 4 — юг, 5 — юго-запад, 6 — запад, 7 — северо-запад. Сервер сам разворачивает лодку, если запрошенное направление отличается от текущего курса — отдельная команда «поворот» не нужна.
Speed: 0 — стоп, 1 — медленно, 2 — быстро. Значения больше 2 обрезаются до 2.
Лодка продолжает плыть в заданном направлении, пока не будет вызван StopBoat (или MoveBoat(dir, 0)), не сменится направление или лодка не упрётся в препятствие.
Метод работает только при выполнении условий:
- Версия клиента в профиле 7.0.9.0 или выше (High Seas). На более старой версии вызов лишь пишет предупреждение в системный журнал.
- Шард поддерживает HS-управление мышью. На OSI и ServUO-шардах персонаж должен сначала взять штурвал (pilot-режим — двойной клик по штурвалу / контекстное меню). Шарды на ModernUO этот пакет не реализуют вовсе (лодки там управляются только речевыми командами).
procedure MoveBoat(Direction, Speed : Byte);
def MoveBoat(direction: int, speed: int) -> None: ...
begin
// Sail east at full speed for 10 seconds, then stop.
MoveBoat(2, 2);
Wait(10000);
StopBoat;
end.
# Sail east at full speed for 10 seconds, then stop.
MoveBoat(2, 2)
Wait(10000)
StopBoat()