Results 1 to 14 of 14

Thread: Function

  1. #1
    Join Date
    Oct 2008
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Function

    Hey, I am wondering if there is a function that clicks on a shop keeper and selects trade?

    Or would i just need to use FindObjTPA?

    Thanx

    Also if i have to use the findobjTPA then after i click false how would i choose trade? thanx!

  2. #2
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    ChooseOption(); Is the procedure used to choose and option from the menu. You would want to use ChooseOption('rade'); or something similar.

    FindObjTPA() Works great! Use it if you don't know anything more advanced (FindObjTPA is not for the newbeginners either but is much easier to understand than TPA's)

  3. #3
    Join Date
    Oct 2008
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if FindDTM(???, e, f, MSX1, MSY1, MSX2, MSY2) then
    Mouse(e, f, 3, 3, false);
    Wait(350 + (random(150)));
    ChooseOption(All);

    It left clicks then just hangs without clicking deposit all?

    Do you know why?

  4. #4
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Are you sure that you used ChooseOption correctly?
    In your example (ChooseOption(All);) you forgot to add '-signs to the params.
    ChooseOption('All'); Should work.

    Even better would be to use ChooseOption('eposi'); Why? Because there are more characters that has to match for the function to click.

    FindDTM is something else than FindObjTPA. Read about DTMs and it's uses here: http://www.villavu.com/forum/showthread.php?t=51105

  5. #5
    Join Date
    Oct 2008
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes i added the '' signs.

    still does not work? do i have to add a mouse(x,y) after chooseoption('')?

  6. #6
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    No, ChooseOption(); should click by itself. The only reason why it doesn't click must be because it did not find the text 'All'... Weird.. Try this script:

    SCAR Code:
    {.include SRL/SRL.Scar}

    begin
      SetupSRL;
      Mouse(MSCX-20, MSCY-20, 40, 40, False);
      WriteLn(BoolToStr(ChooseOption('alk')));
    end.

    Tell me what it says in the debugbox

  7. #7
    Join Date
    Oct 2008
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post

    Tell me what it says in the debugbox
    It says

    Successfully compiled (1584 ms)
    SRL Compiled in 0 msec
    False
    Successfully executed

  8. #8
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Hmm.. Where in the runescape world are you? Is it possible to walk to the middle of the screen? If so then the problem may be that your font is not correct, or your SRL is acting childish.

    Try installing SRL one more time and if the problem still encours then reinstall SCAR and SRL.

  9. #9
    Join Date
    Oct 2008
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Everything else i have used in scar has works, i duno?
    Last edited by joshdabest01; 12-01-2009 at 12:45 PM.

  10. #10
    Join Date
    Oct 2008
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by joshdabest01 View Post
    Everything else i have used in scar has works, i duno?
    I also tried dropping it, dropping it works but depositing wont?

    any other work around method?
    Last edited by joshdabest01; 12-01-2009 at 12:47 PM.

  11. #11
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    This is really weird.. :/
    Has any other scripts you've run worked for you? (I guess so, since you wrote "Everything else i have used...')

    I honestly have no idea what to do.. What SRL version are you using? You should be using #39. Reinstall SRL.


    EDIT: So it works when using ChooseOption to drop??? Try to use only "low" chars (NOT CAPITALIZED LIKE THIS) and see if that works.

  12. #12
    Join Date
    Oct 2008
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    This is really weird.. :/
    Has any other scripts you've run worked for you? (I guess so, since you wrote "Everything else i have used...')

    Yes all other scripts work.

    I honestly have no idea what to do.. What SRL version are you using? You should be using #39. Reinstall SRL.


    I am using #39

    EDIT: So it works when using ChooseOption to drop??? Try to use only "low" chars (NOT CAPITALIZED LIKE THIS) and see if that works.
    Yes when i have it in my inventory it will drop, but when i open up the deposit box and left click then it wont choose all? i tried all with lowercase already.

    Any other ideas?

    Could i make a FindobjTPA? and do it like that?

    So like false click on the item then findTPA and click true?

    as a work around?

  13. #13
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    You could make a bitmap and search for that.. but the best would be to find out why the ChooseOption wont work on "epos" for you.. :/ Works for me

  14. #14
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    edit out.
    Ce ne sont que des gueux


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
  •