Log in

View Full Version : opening the grand exchange



rotchy1
03-16-2012, 05:21 AM
can anyone offer me some ideas as the best way to create my own procedure to open the grandexhange? Right now I'm only concerned about opening it, and this will be done from the same tile, and same camera angle everytime.

thanks :)

Sex
03-16-2012, 05:23 AM
Coords if you want to be lazy, or make a procedure finding the colors split into an ATPA then sort etc. and then right click and choose Exchange.

rotchy1
03-16-2012, 05:26 AM
ok, ill give it a shot, and just curious, do you know if the srl includes for the grand exchange are working?

Sex
03-16-2012, 05:31 AM
No clue. I don't really follow the include since I don't bot or script :p.

Geo
03-16-2012, 05:32 AM
ok, ill give it a shot, and just curious, do you know if the srl includes for the grand exchange are working?

Most of the stuff in grandexchange.simba is outdated.

rotchy1
03-16-2012, 05:34 AM
darn haha looks like ill have to make them from scratch :/ but thanks for the info :D

Sex
03-16-2012, 05:38 AM
darn haha looks like ill have to make them from scratch :/ but thanks for the info :D

Nah bro, what you should do is fix GrandExchange.simba and then send a pull request :).

rotchy1
03-16-2012, 05:46 AM
haha well if i can I will, but im just learning how to write code which brings me to my next question....I found what I think is the correct function to select an option in the right click menu but I cant get it to work

function ChooseOptionEx(Txt, TextType: string): Boolean;
begin
Result := ChooseOptionMultiEx([Txt], TextType, ClickLeft);
end;

How would I go about making this function choose the option "Exchange"?

This is what I tried, but i cant get it to compile..

function OpenGE(Txt: 'Exchange'): Boolean;
begin
Mouse(304, 159, 5, 5, mouse_right);
Result := ChooseOptionMultiEx([Txt], 'All', ClickLeft);
end;

(the Mouse(304, 159, 5, 5, mouse_right); is to right click on the GE person)

Sex
03-16-2012, 07:00 AM
No, you would do something like:
function OpenGE : boolean;
begin
Mouse(304, 159, 5, 5, MOUSE_RIGHT);
Result := ChooseOption('xchange');
end;

rotchy1
03-16-2012, 07:05 AM
ohh, awesome thanks again!