SRL Archive - OSR Help

waitoptionmulti


Getdropped

2012-08-02 02:16:10

ok so i'm just having a code block right now…. so I want it to find the waitoption and not click it because it is execute differently after it chooses one of the wait options and i need to know which one it chooses to continue… is there like a find wait option function or something or what would be the best way of going about this….

Here is what I was trying to do but wouldnt work because the waitoptionmulti will choose the waitoptions and wont return which it chooses.

ClickMouse2(false);
if WaitOptionMulti(['nlock'], 200) then//this would be the find part
WaitOptionMulti(['nlock'], 200);//this would choose it if found
if WaitOptionMulti(['pen'], 200) then
begin
WaitOptionMulti(['pen'], 200) ;
//all of my other stuff
end;

riwu

2012-08-02 02:21:01

From: getdropped69
ok so i'm just having a code block right now…. so I want it to find the waitoption and not click it because it is execute differently after it chooses one of the wait options and i need to know which one it chooses to continue… is there like a find wait option function or something or what would be the best way of going about this….

Here is what I was trying to do but wouldnt work because the waitoptionmulti will choose the waitoptions and wont return which it chooses.

ClickMouse2(false);
if WaitOptionMulti(['nlock'], 200) then//this would be the find part
WaitOptionMulti(['nlock'], 200);//this would choose it if found
if WaitOptionMulti(['pen'], 200) then
begin
WaitOptionMulti(['pen'], 200) ;
//all of my other stuff
end;

WaitOptionMulti directly find AND choose the option for u, if u want to just check for the existence of the option (but not click them) use OptionsExist.

If you want to do different actions based on what appears then do
if OptionsExist(['lock'],false) then
ChooseOption('lock')
else
if OptionsExists(['pen'],false) then
ChooseOption('pen');

Getdropped

2012-08-02 02:27:38

From: riwu
WaitOptionMulti directly find AND choose the option for u, if u want to just check for the existence of the option (but not click them) use OptionsExist.

If you want to do different actions based on what appears then do
if OptionsExist(['lock'],false) then
ChooseOption('lock')
else
if OptionsExists(['pen'],false) then
ChooseOption('pen');


Just an answer before you edited I must have missed typed it I want it to choose the first one then if not found it would choose the second one lol really tired 2:25 am ~3 days STRAIGHT into wedungeon % done = 85% :p almost can complete a dungeon XD The optionsexists is what I was looking for thank you so much for the help ;)