Results 1 to 7 of 7

Thread: Have noticed one thing at rs

  1. #1
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default Have noticed one thing at rs

    Hi, I have creating one script...
    So I created one function which takes items from bank etc.
    Simba Code:
    function takeFromBank(ItemName: string; howMuch: integer; noted: Boolean):boolean;
    var
    x, y, itemBmp, regular: integer;
    begin
       wait(600+random(150));
       if (howMuch=0) then
       begin
         howMuch:=(999+random(5000));
       end;
       if (noted = false) then
       begin
         Notes(false);
       end else
       begin
       if (noted = true) then
         Notes(true);
       end;

       case ItemName of
       'iron ore':
         begin
           itemBmp := BitmapFromString(6, 5, 'meJwTldEXkzOSkDcFIlEZfSYGBlGwiKSiBQQB2XARKWUrCIJogYjIqDlIq9jCuUAE5AIRABseDJ0=');
           if((FindBitmapToleranceIn(itemBmp, x, y, MsX1, MsY1, MsX2, MsY2, 10))) then
           begin
             mouse(x, y, 3, 3, false);
             wait(300+random(150));
             WaitOption('w-X', 500);
             wait(800+random(150));
             TypeSendEx(IntToStr(howMuch), true);
             wait(500+random(150));
             WriteLn('Rado rado iron');
           end;
         end;
       'coal':
         begin
           itemBmp := BitmapFromString(6, 5, 'meJwTEheXkJeXUlICkkDExMAgKi0NEYEgIBsuIqumBkEQxRARBU1NIIJrgYgo6egAAMGUCqw=');
           if((FindBitmapToleranceIn(itemBmp, x, y, MsX1, MsY1, MsX2, MsY2, 10))) then
           begin
             mouse(x, y, 3, 3, false);
             wait(300+random(150));
             WaitOption('w-X', 500);
             wait(800+random(150));
             TypeSendEx(IntToStr(howMuch), true);
             wait(500+random(150));
             WriteLn('Rado coal');
           end;
         end;
       end;
       FreeBitmap(itemBmp);
    end;

    So if I use

    Simba Code:
    takeFromBank('coal', 3, false); // takes 100%
      takeFromBank('coal', 3, true);// Do not takes 90%
      takeFromBank('iron ore', 3, True); // takes 100%
      takeFromBank('iron ore', 3, false);  // takes 100%

    If I do Tolarance 15, looks like works well, but by that, I guess if you click "note" "unnote" button at bank it slightly changes colours, so no need to login, logout... maybe thats one of new tricks from jagex? or it was like this before, and I'm kinda noobie? [ Though strange that with iron everything works well even with 10 tolerance, both bitmaps are exact same place of item, and coords. ]

  2. #2
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    This is good, though you would have to set up one for each Item, which is a drag anyway.

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  3. #3
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by Rezozo View Post
    This is good, though you would have to set up one for each Item, which is a drag anyway.
    drag away? dont get it
    edit: I'm not very very good at English though..

  4. #4
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    Lol yea, for drag, meant it is a pain/bore. This would be good if someone could, potentially, input all the most used items, and send a pull request to make it official!

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  5. #5
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Also if you withdraw an item, it changes colours. I know this because of the OGL stuff. I withdraw an item and its colour ID's change but as soon as you deposit it back, the colour goes back to what it was.

    Jagex uses this alpha blending thing which is what causes the colour change :l
    I am Ggzz..
    Hackintosher

  6. #6
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Also if you withdraw an item, it changes colours. I know this because of the OGL stuff. I withdraw an item and its colour ID's change but as soon as you deposit it back, the colour goes back to what it was.

    Jagex uses this alpha blending thing which is what causes the colour change :l
    but if i use iron, it works perfectly, coal not, probably because "main" colour of items. iron doesn't change drastic so it still worked at that point

    EDIT 500 post.

  7. #7
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    ^^^Gratz on the 500.
    As for color change, how much tolerance is acceptable for the item then? There must be a balance between getting it stuck on some other item, and picking the same one only for it to change to an unsupported(by set parameter) color.

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

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
  •