SRL Archive - OSR Help

stupid question about 'chooseOption(' ' )'


ogustuce

2012-08-03 21:50:12

im making my summoning script and im trying to make it choose the option 'infuse-all' i wrote it like this


MouseBox(45, 68, 82, 116, 0);
Mouse(x, y, 5, 5, True);
wait(randomrange(200,500));
ChooseOption('infuse-all');
Wait(RandomRange(2500,3500));


i also tried stuff like


ChooseOption('nfuse-al');
ChooseOption('fuse-a');
ChooseOption('-all');
but it doesnt work…. what am i doing wrong? the mouse jut right click, choose no option(like if it doesnt find the right one)

thanks

P1ng

2012-08-03 22:04:29

try and use WaitOptionMulti, much more efficient and will cut down some of the lines of your code

MouseBox(45, 68, 82, 116, 0);
//Mouse(x, y, 5, 5, True); Left clicks?
Mouse(x, y, 5, 5, mouse_Right);
WaitOptionMulti(['nfus', 'se-all'],1500);
Wait(RandomRange(2500,3500));

Make sure it is all the correct case like spacing, capital letters etc.

ogustuce

2012-08-03 22:05:28

didnt work =( i made it


MouseBox(45, 68, 82, 116, 0);
Mouse(x, y, 5, 5, mouse_Right);
WaitOptionMulti(['Infuse-All','Infuse-Al','nfus','nfuse-A','nfuse- Al','nfuse - Al','nfuse -Al', 'se-All','Al'],1500);
Wait(RandomRange(2500,3500))

i dont get why it doesnt clcik the 'infuse-all' option

P1ng

2012-08-04 03:36:00

Are you able to post the whole code/at least the procedure here?
How far through said procedure does it get before it stuffs up and what does it do instead of clicking the option?

ogustuce

2012-08-04 21:18:11

i sent u the procedure

Footy

2012-08-04 21:20:01

Add writeln's throughout the procedure, so u can see where its screwing up.

ogustuce

2012-08-04 21:25:47

ik where it messes up =p. my procedure steps are simple:
1) click the obelisk
2)right click the pouch image
3) left click the option 'Infuse-All' <— thats where it screws up. i doesnt even hover the options (winch are Infuse , Infuse-10, Infuse-All, Infuse-X). when the options pops up, the mouse just move away then left click the pouch image again

CephaXz

2012-08-05 00:23:47

Try using GetChooseOptions to check if it finds the option when you right click.

Getdropped

2012-08-05 01:36:08

From: ogustuce
ik where it messes up =p. my procedure steps are simple:
1) click the obelisk
2)right click the pouch image
3) left click the option 'Infuse-All' <— thats where it screws up. i doesnt even hover the options (winch are Infuse , Infuse-10, Infuse-All, Infuse-X). when the options pops up, the mouse just move away then left click the pouch image again


Edit: ops you wrote:
MouseBox(45, 68, 82, 116, 0);
Mouse(x, y, 5, 5, True);
wait(randomrange(200,500));
ChooseOption('infuse-all');
Wait(RandomRange(2500,3500));

Try:
MouseBox(45, 68, 82, 116, 0);
wait(randomrange(200,500));//just incase you lagg
Mouse(x, y, 5, 5, False);//false
wait(randomrange(200,500));
ChooseOption('infuse-all');
Wait(RandomRange(2500,3500));

could you maybe post your script or the part where this is used to see if it is something else that is affecting it?

P1ng

2012-08-05 02:36:25

Helped via PM, I think this is all sorted now