GetQuestArrow
Returns information about the treasure/quest arrow (the large gray arrow shown in the client).
In Pascal, returns True if the arrow is active, and fills the point parameter with the position the arrow points to. Returns False if no arrow is active or the character is disconnected.
In Python, returns a Point object directly (check its fields for validity).
Note: On some shards, the arrow position may not reflect the actual treasure location — as a countermeasure against automated treasure digging.
Возвращает информацию о стрелке квеста/сокровища (большая серая стрелка в клиенте).
В Pascal возвращает True, если стрелка активна, и заполняет параметр point координатами. Возвращает False, если стрелка не активна или персонаж отключён.
В Python возвращает объект Point напрямую; валидность нужно проверять по его полям.
Примечание: На некоторых шардах позиция стрелки может не соответствовать реальному расположению сокровища.
function GetQuestArrow(var point: TPoint): Boolean;
Type definitions:
TPoint = record
X: Integer;
Y: Integer;
end;
def GetQuestArrow() -> Point: ...
var
p: TPoint;
begin
if GetQuestArrow(p) then
AddToSystemJournal('Arrow points to: (' + IntToStr(p.X) + ', ' + IntToStr(p.Y) + ')')
else
AddToSystemJournal('No quest arrow active');
end.
p = GetQuestArrow()
if p:
AddToSystemJournal(f'Arrow points to: ({p.X}, {p.Y})')