SRL Archive - SRL Archives

CloseShop ?


Sir R. M8gic1an

2009-01-28 07:41:23

well, i'm doing a script which opens and closes a shop and i didn't find anything like "CloseShop", so i jsut thought i'd post this; did i mis it somewhere?


Procedure CloseShop;
begin
if ShopScreen then
Mouse(482, 38, 7, 7, true);
end;

don't worry about the randomness, it's within the shop's "closing" cross/square.

edit: also, there's this missing in amount.scar:

// * procedure ShopSwitchTab(name:string); // * by Rasta Magician


re-edit: well since no dev has posted yet:

function ShopScreen: Boolean;
begin
Result := (GetColor(248, 303) = 2070783);
end;


Color Picked: 3358280 at (248, 303)


Fagex move it a pixel.
Color Picked: 2070783 at (249, 303)



~RM

Dervish

2009-01-28 08:12:32

There is a procedure/function called closescreen or something like that which closes any window in RuneScape I think.

Narcle

2009-01-28 08:53:19

{*******************************************************************************
function CloseWindow: Boolean;
By: Solemn Wishes, Starblaster100 and ZephyrsFury
Description: Closes any open windows.
*******************************************************************************}

ZephyrsFury

2009-01-28 23:50:01

ShopScreen and ShopSwitchTab are both broken in Pub SRL. Been fixed for a while though, just hasn't been commited for some reason.