SRL Archive - OSR Help

[HELP] right clicking a moving npc


dr kickassss

2012-01-31 10:03:49

Hi ,


FindColorsSpiralTolerance(MSCX, MSCY, Demon, 922670, MSX1, MSY1, MSX2, MSY2, 7); 

I have been using the above statement to left click the demon bulter and it works :)
I was wondering how to use it to right click the demon and choose the second option " fetch from bank…. "

Nataurs

2012-01-31 10:12:29

MMouse(x, y, 5, 5, false);
ChooseOption('etch');

dr kickassss

2012-01-31 10:21:53

so would this work ?

if (FindColorsSpiralTolerance(MSCX, MSCY, Demon, 922670, MSX1, MSY1, MSX2, MSY2, 7)) then
begin
MMouse(x, y, 5, 5, false);
ChooseOption('etch');
end;


for will I have to get TPA bounds ?