Results 1 to 3 of 3

Thread: waitoptionmulti

  1. #1
    Join Date
    Nov 2011
    Location
    United states
    Posts
    516
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default waitoptionmulti

    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.

    Simba Code:
    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;

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by getdropped69 View Post
    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.

    Simba Code:
    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
    Simba Code:
    if OptionsExist(['lock'],false) then
      ChooseOption('lock')
    else
    if OptionsExists(['pen'],false) then
      ChooseOption('pen');

  3. #3
    Join Date
    Nov 2011
    Location
    United states
    Posts
    516
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    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
    Simba Code:
    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% almost can complete a dungeon XD The optionsexists is what I was looking for thank you so much for the help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •