Simba Code:
function LoggedIn: Boolean; forward;
var
OX, OY,
MMX1, MMY1, MMX2, MMY2, MMCX, MMCY, MSX1, MMY1, MSX2, MSY2, MSCX, MSCY,
MIX1, MIY1, MIX2, MIY2, MICX, MICY, MCX1, MCY1, MCX2, MCY2, MCCX, MCCY,
MBX1, MBY1, MBX2, MBY2, DBX1, DBY1, DBX2, DBY2: integer;
procedure DeterminePixelVariables;
begin
{ vars OX, OY;
Description: Offset from the left (x) and Offset from the top (y) }
OX := 0;
if LoggedIn then OY := 60 else OY := 20;
{Please NB: this is just a quick fix. We can make this better.
I will return to this subject later. //MasterCrimeZ }
{ vars MMX1, MMY1, MMX2, MMY2;
Description: MiniMap Edge Points. }
MMX1 := 550+OX;
MMY1 := 8+OY;
MMX2 := 703+OX;
MMY2 := 161+OY;
{ vars MMCX, MMCY;
Description: MiniMap Centre Point. }
MMCX := round((MMX1+MMX2)/2);
MMCY := round((MMY1+MMY2)/2);
{ vars MSX1, MSY1, MSX2, MSY2;
Description: Main Screen EdgePoints. }
MSX1 := 4+OX;
MSY1 := 4+OY;
MSX2 := 515+OX;
MSY2 := 337+OY;
{ vars MSCX, MSCY;
Description: Main Screen Centre Points. }
MSCX := round((MSX1+MSX2)/2);
MSCY := round((MSY1+MSY2)/2);
{ vars MIX1, MIY1, MIX2, MIY2;
Description: Inventory EdgePoints. }
MIX1 := 547+OX;
MIY1 := 202+OY;
MIX2 := 737+OX;
MIY2 := 466+OY;
{ vars MICX, MICY;
Description: Inventory Centre Points. }
MICX := round((MIX1+MIX2)/2);
MICY := round((MIY1+MIY2)/2)
{ vars MCX1, MCY1, MCX2, MCY2;
Description: Chat Screen EdgePoints. }
MCX1 := 4+OX;
MCY1 := 342+OY;
MCX2 := 514+OX;
MCY2 := 475+OY;
{ vars MCCX, MCCY;
Description: Chat Screen Centre Points. }
MCCX := round((MCX1+MCX2)/2);
MCCY := round((MCY1+MCY2)/2)
{ vars MBX1, MBY1, MBX2, MBY2;
Description: BankScreen EdgePoints (where you click the items, does not include tabs). }
MBX1 := 26+OX;
MBY1 := 84+OY;
MBX2 := 480+OX;
MBY2 := 292+OY;
{ vars DBX1, DBY1, DBX2, DBY2;
Description: Deposit box edgepoints (only where the item appear) }
DBX1 := 91+OX;
DBY1 := 57+OY;
DBX2 := 443+OX;
DBY2 := 262+OY;
end;