Results 1 to 3 of 3

Thread: Problem trading with shop keeper

  1. #1
    Join Date
    Jun 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Problem trading with shop keeper

    in my script it says

    FindObj ( x, y, 'Shop', Store_Owner, 10 );
    GetMousePos ( x, y );
    Mouse( x, y, 0, 0, False )
    Until ( ChooseOption ( x, y, 'Trade' ) )

    but instead of trading with the shopkeeper, it randomly chooses any other trade option and tries to trade with other people... any idea how to make it trade with just shopkeeper?

  2. #2
    Join Date
    Jun 2007
    Location
    Tampa, FL
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)
    Quote Originally Posted by chamilton View Post
    in my script it says

    FindObj ( x, y, 'Shop', Store_Owner, 10 );
    GetMousePos ( x, y );
    Mouse( x, y, 0, 0, False )
    Until ( ChooseOption ( x, y, 'Trade' ) )

    but instead of trading with the shopkeeper, it randomly chooses any other trade option and tries to trade with other people... any idea how to make it trade with just shopkeeper?
    that was of finding the shop owner seems prone for errors. Im kind of new with scripting but i would try getting a unique color from the shop keeper's clothing, and then use FindColorTolerant(x,y,ColorofClothing,MSX1,MSY1,MS X2,MSY2,Tolerance);
    Also im not familiar with GetMousePos(x,y) but i dont think it moves the mouse, and that is diffenetly not human like and would ban you. so i would use MMouse(x,y,1,1)

    And lastly, i think is really wierd is that your using a repeat loop in which has
    until ChooseOption
    When you use Repeat and until, you would say repeat yadayada until soemthing equals something, or a boolean, not a command. so that part of the code does not make scence.
    So the code i would write is
    Begin
    FindColorTolerance(x,y,color,MSX1,MSY1,MSX2,MSY2,3 );
    if(not(FindColorTolerance(x,y,color,MSX1,MSY1,MSX2 ,MSY2,3))) then
    begin
    Tries:=0;
    repeat
    Wait(400 + random(50));
    Tries := Tries + 1;
    If Tries=20 then
    Begin
    Writeln('Cant find ShopKeeper');
    NextPlayer(false);
    end;
    until FindColorTolerance(x,y,color,MSX1,MSY1,MSX2,MSY2,3 );
    MMouse(x,y,3,3);
    Mouse(x,y,2,2,false);
    flag;
    wait(387 + random(154));
    ChooseOption(x,y,'Trade');
    end;
    end;
    The extra stuff i added was failsafes, which i can't explain, you should learn it in TUTs
    and make sure to Assign Tries as an integer with the code Tries: Integer; somewhere in your script.
    Hope i helped some

  3. #3
    Join Date
    Jun 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it workes finding the shopkeeper, its the trading part that doesnt work. as soon as it right-clicks, it randomly chooses one of the trade options and trys to trade with players since they are all standing around shopkeeper so when you right-click they show up too.

    FindObj ( x, y, 'Shop', Store_Owner, 10 );
    GetMousePos ( x, y );
    Mouse( x, y, 0, 0, False )
    Until ( ChooseOption ( x, y, 'Trade' ) )


    and also, the GetMousPos sets the coordinates to click on, if you just leave in (x,y)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Bee Keeper Random Solver!
    By Drakan in forum Research & Development Lounge
    Replies: 14
    Last Post: 03-03-2009, 12:14 PM
  2. drop trading/money trading
    By josh81193 in forum RuneScape News and General
    Replies: 5
    Last Post: 03-10-2008, 12:11 PM
  3. big problem with trading auto'ed good to main's
    By red eyes 20 in forum RS has been updated.
    Replies: 19
    Last Post: 11-22-2007, 08:10 AM
  4. problem with trading
    By corl455 in forum OSR Help
    Replies: 0
    Last Post: 10-20-2007, 10:15 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
  •