Results 1 to 24 of 24

Thread: Selling to general store

  1. #1
    Join Date
    May 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Selling to general store

    So guys, I have made this Oak Cutter + Selling script.
    I have almost finished it, all I need to do now is just make it so it sells the oaks to the store.
    (RIMMINGTON)

    So far I have done:
    1. Cutting etc.
    2. goes to stores.
    3. trades assistant/keeper.
    4. -------Help me please with selling the oaks---------.
    5. goes back to trees.
    6. Loops forever


    Thankyou if you help me!

  2. #2
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Make a DTM of the log, make it search for the log, right click and then choose the option.

    SCAR Code:
    repeat
      if FindDTM(Log, x, y, MIX1, MIY1, MIX2, MIY2) then
      begin
        Mouse(x, y, 5, 5, False);
        ClickOption('10', 3);
      end;
    until(not(FindDTM(Log, x, y, MIX1, MIY1, MIX2, MIY2)));

    Something like that should work...
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  3. #3
    Join Date
    May 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks Santa, Well ive never used DTMs before, but I hope I can do it
    I'll add you to credits if I get it working

  4. #4
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    No problem.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  5. #5
    Join Date
    May 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't understand DTMs :S Sorry, here is a link of what the inventory looks like because it is an auto-woodcutter it sais "Or AXE" (the axe could be unwielded, but I have it wielded atm).
    LINK: http://img264.imageshack.us/my.php?image=invkh3.png

  6. #6
    Join Date
    May 2006
    Location
    Helsinki, Finland (capital)
    Posts
    269
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by SantaClause View Post
    Make a DTM of the log, make it search for the log, right click and then choose the option.

    SCAR Code:
    repeat
      if FindDTM(Log, x, y, MIX1, MIY1, MIX2, MIY2) then
      begin
        Mouse(x, y, 5, 5, False);
        ClickOption('10', 3);
      end;
    until(not(FindDTM(Log, x, y, MIX1, MIY1, MIX2, MIY2)));

    Something like that should work...
    Would that work with searching the Log from the store?

  7. #7
    Join Date
    Jan 2007
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, it only searches within MIX1,MIY1 etc, so it only searches within the inventory.

  8. #8
    Join Date
    May 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Here is my script in the attachment.
    Also here is the log DTM:
    SCAR Code:
    Log := DTMFromString('78DA63F4626260E062644006F58996601A26C' +
           'A680F54C388AA2633401F554D2050CD3F14250C39C186A86A4281' +
           '6AF851CD0976504355E304542382AAA63509CD2E2BA01A5E3437C' +
           '7E9A2A80100E41908CC');
    If somebody can fix it so it sells all the logs in the inventory I will be very appriciated. Thankyou.

  9. #9
    Join Date
    Jan 2007
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it shud work fine with the snippet that santaclause gave you....no?

  10. #10
    Join Date
    May 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  11. #11
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ill help ya... do you have an axe weilded boolean?

  12. #12
    Join Date
    May 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  13. #13
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    do you know how to make one? it would be very helpful, then i could help you out by give you a procedure to sell the logs

  14. #14
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    are you making this script for scar divi 3.11?

  15. #15
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    DTM's are extremely useful in this situation (inventory items). I recommend that you read YoHoJo's tut on creating and using DTM's in the tutorials section (intermediate I think).

  16. #16
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    so what part isnt working now? you used a procedure called AntiBan, which is already an srl core kinda thing.
    Originally Posted by YoHoJo
    I like hentai.

  17. #17
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)
    do what santa said...
    Quote Originally Posted by SantaClause View Post
    Make a DTM of the log, make it search for the log, right click and then choose the option.

    SCAR Code:
    repeat
      if FindDTM(Log, x, y, MIX1, MIY1, MIX2, MIY2) then
      begin
        Mouse(x, y, 5, 5, False);
        ClickOption('10', 3);
      end;
    until(not(FindDTM(Log, x, y, MIX1, MIY1, MIX2, MIY2)));

    Something like that should work...
    and here is a DTM that you need to put in as a var at the top of your script and then make a procedure "DeclareDTMS" so it looks like this

    SCAR Code:
    var
      Log: Integer;

    procedure DeclareDTMS;
    begin
      Log := DTMFromString('78DA632C66626078C1800282BD6419FE03694' +
        '620FE0F048C8D986A20B23012485702D5BC25A026830835354035' +
        '8FF0AB01002EEB0CAB');
    end;
    and remember to put "DeclareDTMS;" in your main loop or somewhere so that it does that procedure

  18. #18
    Join Date
    May 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    rs2pro i have just added all of what you just said into my script, but still it is right clicking 1 log then moving to a different 1 and doesn't select the '10'

    ..Oh and yes, this script is for scar DIVI 3.11

  19. #19
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok... um, try doing this: change the "ClickOption('10', 3);"
    to "ClickOption('10', 1);"
    or "ClickOption('10', 2);"
    i remember reading about what that does, and it has something to do with the clicks...

  20. #20
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea, change it to ClickOption(10, 2) because ClickOption(10, 3) is searching for the text "10" in the CHAT WINDOW. NOT THE INVENTORY.

  21. #21
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Doesn't ChooseOption(x, y, '10') work? It works for me and I'm doing something similar to you.

  22. #22
    Join Date
    Oct 2006
    Posts
    702
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    british did you declare the dtm?
    "For it is not what goes into your mouth that will defile you; rather, it is what comes out of your mouth that defiles you." - Jesus of Nazareth

  23. #23
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    its working now? otherwise add me on msn or send a private message
    ~Hermen

  24. #24
    Join Date
    May 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thankyou everybody that has helped me with this part of my script!
    Just to let you know, my script is going private (So only me and my brother can use it).

    Any body can have the script which is about 5 posts down (script not complete).

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Rimmington Willows Chopper (then sells to general store) SRL 4
    By linkmaster03 in forum RS3 Outdated / Broken Scripts
    Replies: 0
    Last Post: 08-23-2007, 04:24 PM
  2. Varrock General Store Auto Willow Buyer + Banker
    By Lucaio in forum RS3 Outdated / Broken Scripts
    Replies: 22
    Last Post: 05-19-2007, 12:23 PM
  3. General Store & Reselling
    By Synthroids in forum RuneScape News and General
    Replies: 9
    Last Post: 04-30-2007, 10:35 PM
  4. Willow buyer that buys from general store and banks.
    By demenstar in forum RS3 Outdated / Broken Scripts
    Replies: 13
    Last Post: 03-22-2007, 12:39 AM

Posting Permissions

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