Results 1 to 12 of 12

Thread: Depositing And A Quick Mouse Click

  1. #1
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Depositing And A Quick Mouse Click

    Hey ok I got two questions which should be answered easily.

    1.) When I get a random and gives me like 500gp, and then my script deposits it, it only deposits 1gp, but I would like it to right click and deposit all. This is it so far.
    SCAR Code:
    if(FindDTM(BankLog, X, Y, MIX1, MIY1, MIX2, MIY2))then
        Mouse(x, y, 5, 5, False);
        Wait(50+random(50));
        ChooseOption('-All');
        Wait(50+Random(50));
        Deposit(2, 28, False);

    2.) My walking procedure walks sorta weird and I would like it to click just abit lower than where it always click so it will enter a bank. Heres what Im talking about. Red is where it goes, blue is where I want it to click(a bit lower).

    And I know I got to fix my mouse coords, but I tried anywhere from -10000, to 10000. Here is the procedure.
    SCAR Code:
    if FindBank('db') then
          Wait(200+Random(150));
          Mouse(x, y, 5, 5, True);

    Wow alot for two simple questions. :P

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    for your second question make it,

    SCAR Code:
    mouse(x, y+10, 5, 5, true)

    and for the first one, make it 'll' instead of '-All', makes it easier for scar to recagnize ( and i don't think scar can even recognise "-" symbols )


    that came out really confusing, so if you want me to clarify it more, just pm me.
    “Ignorance, the root and the stem of every evil.”

  3. #3
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by blumblebee View Post
    for your second question make it,

    SCAR Code:
    mouse(x, y+10, 5, 5, true)

    and for the first one, make it 'll' instead of '-All', makes it easier for scar to recagnize ( and i don't think scar can even recognise "-" symbols )


    that came out really confusing, so if you want me to clarify it more, just pm me.
    Nope I understood all of that. Lol for the y I was trying like 100 and stuff

    And for the -all or whatever, thats for depositing the logs, this is the part I need help with.

    SCAR Code:
    ChooseOption('-All');//<-----deposit all logs
        Wait(50+Random(50));
        Deposit(2, 28, False);//<-----deposits everything thats left(excluding axe)
      //then like mouse(x,y,false)
      //choose option 'all'

  4. #4
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmmm make it deposit(2, 28, true); i think that'll make it work.
    “Ignorance, the root and the stem of every evil.”

  5. #5
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by blumblebee View Post
    hmmm make it deposit(2, 28, true); i think that'll make it work.
    Yeah I tried that first but it didnt work so i tried false and it didnt change anything. Also for the first question, I tried what you said, and it still clicks in the same place, then i tried 50, 75, 100000, and it still clicked the same place(btw its sorta where the bankers stand, but closer to the outside so it goes there instead)

  6. #6
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Are you sure it didn't work? That true in the deposit statement is supposed to make it pick the Deposit All option.

  7. #7
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by d1s3l View Post
    Yeah I tried that first but it didnt work so i tried false and it didnt change anything. Also for the first question, I tried what you said, and it still clicks in the same place, then i tried 50, 75, 100000, and it still clicked the same place(btw its sorta where the bankers stand, but closer to the outside so it goes there instead)
    haha then your dtm isn't made properly (well as i would have made it). my advice, make a new dtm just of the three banker dots, then use mouse(x, y+15, 5, 5, true) or something of that sort.
    “Ignorance, the root and the stem of every evil.”

  8. #8
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by senrath View Post
    Are you sure it didn't work? That true in the deposit statement is supposed to make it pick the Deposit All option.
    Ok I'll try it out now. Also, it said this?

    Well Ill be, it worked!

    But Im still having the walking probelm. I noticed when i left it at like 10000 it did this:

    Walking to top of bank, found banker, then once it went into the bank, my mouse moved off rs and to my taskbar, I think because my y was so high, but shouldnt it click that much down FOR walking, not after done walking?

  9. #9
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by d1s3l View Post
    Ok I'll try it out now. Also, it said this?

    {************************************************* ******************************
    procedure Deposit(slot, toslot, thetype: Integer);
    by: WT-Fakawi/PPLSUQBAWLZ/Stupid3ooo/Town
    Description: Deposits from Slot to ToSlot.
    vType True = Deposit All. vType False = Deposit one by one.
    Any integer is deposit with Deposit X. (except for 5 and 10)
    ************************************************** *****************************}
    It's actually this:
    procedure Deposit(SlotFrom, SlotTo: Integer; vType: Variant);

    They never updated that top part of the description. Anyway, what it means is that if you put False in the last spot, it will try and deposit each item one by one. If you put True, it will use the Deposit All option. If you put in a number, it will use the Deposit X option (unless you put in 5 or 10, in which case it will use Deposit 5 or Deposit 10).

  10. #10
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by senrath View Post
    It's actually this:
    procedure Deposit(SlotFrom, SlotTo: Integer; vType: Variant);

    They never updated that top part of the description. Anyway, what it means is that if you put False in the last spot, it will try and deposit each item one by one. If you put True, it will use the Deposit All option. If you put in a number, it will use the Deposit X option (unless you put in 5 or 10, in which case it will use Deposit 5 or Deposit 10).
    Lol thanks for clarifying So do you know whats wrong with the other problem?

  11. #11
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by d1s3l View Post
    Lol thanks for clarifying So do you know whats wrong with the other problem?
    Not really. What is the DTM you are using? I'd like to see if it gives me the same problem.

  12. #12
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by senrath View Post
    Not really. What is the DTM you are using? I'd like to see if it gives me the same problem.
    Oh never mind I fixed it.
    What I did was put the function into my script, but make it a procedure and edit the x and y in that, and then call it when my inventory is full
    Thanks to everyone who helped!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Click the mouse without moving it?
    By orange in forum OSR Help
    Replies: 5
    Last Post: 08-08-2008, 10:13 PM
  2. Mouse doesn't click DTM
    By Richard in forum OSR Help
    Replies: 7
    Last Post: 02-10-2008, 10:07 PM
  3. mouse click + tpa error
    By xelfarcherdv in forum OSR Help
    Replies: 5
    Last Post: 01-05-2008, 08:50 PM

Posting Permissions

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