GetY

Returns Y position for object ObjID

Pascal Syntax:

function GetY(ObjID : Cardinal) : Integer;

Pascal Example:

procedure Recall(Rune: Cardinal);
var 
  x, y: Integer;
  MyTimer: TDateTime;
begin
  AddToSystemJournal('Recall: ' + IntToStr(Rune));    
  x := GetX(self);
  y := GetY(self);
  repeat
    CheckMana;
    MyTimer := Now;
    WaitTargetObject(Rune);
    Cast('Recall');
    repeat
      Wait(500);
    until (x <> GetX(self)) or (y <> GetY(self)) or (InJournalBetweenTimes('fizzles', MyTimer, Now) <> -1);
  until (x <> GetX(self)) or (y <> GetY(self));
  CheckLag(3000);
end;

Python Syntax:

def GetY(ObjID): --> int