How do I make this right? oO

Discussion in 'Scar/Simba Help' started by TimminyCricket, Sep 23, 2009.

How do I make this right? oO
  1. Unread #1 - Sep 23, 2009 at 5:22 AM
  2. TimminyCricket
    Joined:
    Sep 16, 2009
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0

    TimminyCricket Newcomer

    How do I make this right? oO

    Hey again.

    Code:
    program New;
    var
       x,y: Integer;
       xx,yy: Integer;
       xxx,yyy: Integer;
       xxxx,yyyy: Integer;
       xxxxx,yyyyy:Integer;
    
    begin                               //We will start upstairs to buy stouts
    repeat
    wait(1000)
    MoveMouse(173,130)
    wait(500)
    FindColor(x, y, 13553358, 0,0,513,364);
    MoveMouse(x,y);
    ClickMouse(x,y,true);
    wait(10000)
    MoveMouse(107,56)
    ClickMouse(107,56,True);
    wait(5000)
    MoveMouse(496,41);
    If(FindColor(xx, yy, 2853837, 460,231,500,258))then //Problem here, won't register if full
    begin                                              //Banking Task
    wait(500)
    FindColor(xxx,yyy,10605, 0,0,513,364);
    MoveMouse(xxx,yyy)
    ClickMouse(xxx,yyy,true);
    wait(10000)
    MoveMouse(461,45)
    wait(500)
    MoveMouse(497,104);
    ClickMouse(497,104,true);
    wait(10000)
    FindColor(xxxx,yyyy,131072,0,0,513,364);
    MoveMouse(xxxx,yyyy);
    ClickMouse(xxxx,yyyy, true);
    wait(10000);
    MoveMouse(428,293);
    ClickMouse(438,293,true);
    wait(500);
    MoveMouse(412,30);
    ClickMouse(412,30,true);
    FindColor(xxxxx,yyyyy,40694,0,0,513,364);
    MoveMouse(xxxxx,yyyyy);
    ClickMouse(xxxxx,yyyyy,true);
    wait(5000)        ;
    MoveMouse(459,43);
    wait(500);
    MoveMouse(391,165);
    ClickMouse(391,165,true);
    wait(10000);
    MoveMouse(128,149);
    ClickMouse(128,149,true);
    end else;
    until(false);
    end.
    
    So, to explain quickly, this is what happens.
    Character buys stouts till full, then goes and banks, and returns to buy stouts again.

    My problem I think is in checking to see if it is full or not.
    I've used 'If(FindColor...))then.
    This does not seem to work, is there a better way to do this, thanks for the help. :)
     
  3. Unread #2 - Sep 23, 2009 at 9:37 AM
  4. radiclerobby
    Joined:
    Mar 9, 2008
    Posts:
    720
    Referrals:
    0
    Sythe Gold:
    0

    radiclerobby Apprentice
    Banned

    How do I make this right? oO

    to check if the inventory is full?? if so then this procedure . if(invfull) then

    that will check if the inventory is full or not

    if not for inventory then for what id like to help
     
  5. Unread #3 - Sep 23, 2009 at 6:01 PM
  6. TimminyCricket
    Joined:
    Sep 16, 2009
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0

    TimminyCricket Newcomer

    How do I make this right? oO

    It's for RSC, not for RS2, so I don't think that command works.

    Thought I could just check if the last spot in inv is taken then run the banking procedure. :S
     
< Auto flax spinner | Click once? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site