Results 1 to 12 of 12

Thread: Trading script not working....

  1. #1
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Trading script not working....

    I got this script written up to the point where it is supposed to move the mouse to the item the player wants to trade....But for some reason it doesn't get that far. Could someone explain to me why not?

    SCAR Code:
    program MerchantMaster;
    {.Include SRL/SRL.scar}
    {.include srl\srl\extended\xtext.scar}
    {.include srl/srl/misc/amount.scar}

    const //fill these out, or it won't work!!!!!
    howmany = 10; //how many of the item you want.
    whatyouwannabuy='lobs'; //what IS the item you want?
    eaprice=200; //Just wondering, how much would you want to buy each?
    Var
    Message1:String; //sets up the buying message


    {------------------------------------------------------------------------------------------}

    procedure BuyTrade; //This starts the procedure of a Buying Trade
    begin
    MoveMouse(470,292);
    Wait(10000);
    if Option2('lobster')then //Type in the object you want to buy in the ''
    end;
    {------------------------------------------------------------------------------------------}

    procedure StartTrade; //This moves the mouse to start the trade
    var cx, cy, Fx, Fy : integer;
    begin
    If (FindColor(Fx, Fy, 8388736, 21, 416, 29, 425))then //if it finds trade in the chat box...
    begin
    Wait(500);
    Mouse(cx+10,cy+3,0,0,True); //it will move the mouse towards it.
    Wait(500);
    BuyTrade
    end;
    end;

    procedure Buyingstatement; //This starts talking using your buying statement.
    var Fx, Fy : integer;
    begin
    wait(1000); //Waits a few seconds before typing again.
    Message1:= 'buying up to '+ IntToStr(howmany) + ' ' + whatyouwannabuy +'! for ' + IntToStr(eaprice) + 'ea!'; //this SHOULD make the typing message work....
    typesend(Message1); //this will make it look like the line above is being typed by a human.
    if (FindColor(Fx, Fy, 8388736, 21, 416, 29, 425)) then
    begin
    StartTrade;
    end;
    end;
    {------------------------------------------------------------------------------------------}

    var Fx, Fy : integer;
    begin ///////////////////////////////////
    repeat //////{ Rinse, Lather, Repeat. }//
    buyingstatement; ///////////////////////////////////
    until(FindColor(Fx, Fy, 8388736, 21, 416, 29, 425)); //until the trade color is found in the last chat line.
    ////////////////////////////////////
    end.
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

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

    Default

    eerm, wheres the procedure where it actually puts ur items up on the tradescreen?=S
    Originally Posted by YoHoJo
    I like hentai.

  3. #3
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol....I didn't get to that point yet.
    I was testing the script to see if it would work, but it doesn't get that far...
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

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

    Default

    so does it click on the purple part of the trade in the chat box?
    Originally Posted by YoHoJo
    I like hentai.

  5. #5
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think It does (It's been a long while since I started working with scar again, but I remembered this script, and remembered I never got it working)
    But it may not. I know the buying statement works, and the buying statement stops when someone trades, but I am not sure If the trade screen is opened.
    I cant test it at the moment....
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

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

    Default

    hmm, hold on, ill help u with some of this.
    Originally Posted by YoHoJo
    I like hentai.

  7. #7
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ah, thanks =)
    Also, ty for the fast replies =P
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

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

    Default

    Code:
    wishes to trade := BitmapFromString(1024, 768, 'z78DAECD821' +
           '0AC0400C04C02F85AA5426D0FBFF934E5C45745D61468465E5CAA' +
           'C0500000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '000007CD75DCF7D6544649C3CEFE9AD040000000000FFD2559D35' +
           'FFFF6F1EBD9500000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '000000000000767B70400000000020E4FFEB86040000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000000' +
           '00000000000000000000000000000000000000000000000000809' +
           'B004DCA23E7');
    use this bitmaps when looking fer the purple thing. or u can use the core function , *inchat* but idk if that works for purple letters.

    please note i magnified the pic by 800% and this is just the letter 'W' in wishes to trade
    Originally Posted by YoHoJo
    I like hentai.

  9. #9
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So could you direct me to where I would put all that? (Sorry, after being away from scar for a while, Im an utter noob).
    Would it go in my start trade procedure?
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

  10. #10
    Join Date
    Jul 2007
    Location
    England
    Posts
    86
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {.include SRL/SRL/Misc/Trade.scar}

    Will most probably have to be included to handle trades.


    These are all the functions inside Trade.scar:

    SCAR Code:
    // * function  GetTraderName:String          // * By Masquerader
    // * function  AcceptTrade:boolean;          // * By Masquerader
    // * procedure Accept                        // * By Masquerader
    // * procedure Decline                       // * By Masquerader
    // * function  Waiting:boolean;              // * By Masquerader
    // * function  PlayerAccepted:boolean;       // * By Masquerader
    // * function  CheckItem:boolean;            // * By Masquerader
    // * Function TrimTradeName(TheString:String):String;  // * By Wizzup?
    // * Function SomeoneTrades: Boolean;                  // * By Wizzup? and WT-Fakawi.
    // * Function HandleTrade: Boolean;                    // * By Wizzup?

    Unfortunately if there is any other problem as well, I cannot help you there as I have not really studied trade handling in my time of learning SCAR.


    -Nitro

  11. #11
    Join Date
    Jun 2007
    Location
    England
    Posts
    262
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Nitro View Post
    SCAR Code:
    {.include SRL/SRL/Misc/Trade.scar}

    SCAR Code:
    // * function  GetTraderName:String          // * By Masquerader
    // * function  AcceptTrade:boolean;          // * By Masquerader
    // * procedure Accept                        // * By Masquerader
    // * procedure Decline                       // * By Masquerader
    // * function  Waiting:boolean;              // * By Masquerader
    // * function  PlayerAccepted:boolean;       // * By Masquerader
    // * function  CheckItem:boolean;            // * By Masquerader
    // * Function TrimTradeName(TheString:String):String;  // * By Wizzup?
    // * Function SomeoneTrades: Boolean;                  // * By Wizzup? and WT-Fakawi.
    // * Function HandleTrade: Boolean;                    // * By Wizzup?
    These functions/procedures should work fine no need for bitmaps I don't think.

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

    Default

    idk =/ just trying to be of some use.
    Originally Posted by YoHoJo
    I like hentai.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Trading good account for a script.
    By Seroko in forum News and General
    Replies: 29
    Last Post: 01-30-2009, 04:05 AM
  2. drop trading/money trading
    By josh81193 in forum RuneScape News and General
    Replies: 5
    Last Post: 03-10-2008, 12:11 PM
  3. Well, Jagex just killed script selling, real world trading.
    By The Claw in forum News and General
    Replies: 33
    Last Post: 12-10-2007, 01:16 PM
  4. My first script: still not working
    By Macho Man67 in forum OSR Help
    Replies: 5
    Last Post: 06-09-2007, 01:23 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
  •