lodestoneScreen.teleportTo(LOCATION_PREVIOUS);
can't chooseOption(previous location) because it never right clicked
LOCATION_PREVIOUS does not work because you need to right click the lodestone button for the option to appear.
function TRSLodestoneScreen.teleportTo(location: integer): boolean; will need to be modified. Current code:
if (location = LOCATION_PREVIOUS) then
begin
result := chooseOption.select(['Previous dest', 'estination', 'evious']);
if (result) then
print('TRSLodestoneScreen.teleportTo(): Succesfully teleported to previous destination', TDebug.SUB)
else
print('TRSLodestoneScreen.teleportTo(): Failed teleport to previous destination (ChooseOption must have failed)', TDebug.SUB);
exit();
end;
Need to add a right click line 313:
if (location = LOCATION_PREVIOUS) then
begin
fastclick(MOUSE_RIGHT);
result := chooseOption.select(['Previous dest', 'estination', 'evious']);
if (result) then
print('TRSLodestoneScreen.teleportTo(): Succesfully teleported to previous destination', TDebug.SUB)
else
print('TRSLodestoneScreen.teleportTo(): Failed teleport to previous destination (ChooseOption must have failed)', TDebug.SUB);
exit();
end;