Results 1 to 11 of 11

Thread: Need help on my first script - item buyer

  1. #1
    Join Date
    May 2007
    Location
    in a pineapple under the sea
    Posts
    1,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Need help on my first script - item buyer

    This is my first script and it is an item buyer.

    Im going to try to make it buy anything of a certain color like feathers, logs, runes, gems, then bank the non-stackables.

    Im very new at scripting so help would be appreciated.

    The npc trade is JAD's he said people were welcome to use it in their programs.

    Please help me!

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    here is a fixed version, if that is what you were looking for, i just looked at the script without reading your post and noticed it was sort of unorganized.
    so far all it does though is to login and find the shop keeper, it isnt going to buy anything or sell anything yet.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  3. #3
    Join Date
    May 2007
    Location
    in a pineapple under the sea
    Posts
    1,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Thanks!

    Thank you for your help Garrett

    Im trying to learn how to make it buy or sell stuff.

    But thanks anyway for fixing and cleaning it up

  4. #4
    Join Date
    May 2007
    Location
    in a pineapple under the sea
    Posts
    1,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    {================================================= ===========|
    | Timothegreat's Item Buyer 0.1 |
    |================================================= ===========|
    | Setup your players and hit Run! |
    |================================================= ===========|
    | Modified by Timothegreat, npc clicker made by: JAD |
    | |
    | READ THIS: START IN THE GENERAL STORE YOU WISH TO BUY FROM | |
    |================================================= ===========}

    program itembuyer;
    {.Include SRL\SRL.SCAR}
    {.include SRL\SRL\Skill\Fighting.scar}

    //----------------------------------------------------------------------------//
    // --> SCRIPT SETUP <-- //
    //----------------------------------------------------------------------------//

    const DoorFailSafes = True; // Use FailSafes for the Doors/Gates?
    MouseSpd = 13; // MouseSpeed

    //----------------------------------------------------------------------------//
    // --> VARIABLES <-- //
    //----------------------------------------------------------------------------//


    //----------------------------------------------------------------------------//
    // --> PLAYER SETUP <-- //
    // //
    // NO MORE THEN 4 PLAYERS!!!!!!!!! //
    //----------------------------------------------------------------------------//
    procedure DeclarePlayers;
    var x:integer;
    begin

    HowManyPlayers:= 4;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0;


    Players[0].Name :='user'; // Name //
    Players[0].Pass :='pass'; // Password //

    Players[1].Name :='user'; // Name //
    Players[1].Pass :='pass'; // Password //

    Players[2].Name :='user'; // Name //
    Players[2].Pass :='pass'; // Password //

    Players[3].Name :='user'; // Name //
    Players[3].Pass :='pass'; // Password //

    for x:=0 to HowManyPlayers-1 do
    begin
    Players[x].Active := True;
    Players[x].Loc := 'Ready to Run';
    end
    end;

    Procedure Logitin;
    begin
    DeclarePlayers;
    LoginPlayer;
    end;

    Procedure Findthekeeper(color : integer)
    Begin
    For i:=0 To 10 Do
    Begin
    Case Random(1) of //This Case Changes the start point of the spiral
    0: Begin //so the mouse wont just spazz on a certain color
    X:=X+Random(100)
    Y:=Y+Random(100)
    End;
    1: Begin
    X:=X-Random(100)
    X:=X-Random(100)
    End;
    End;
    If FindColorSpiral(x,y,COLOR,MSX1,MSY1,MSX2,MSY2) Then//Looks for the
    Begin //shopkeeper
    MMouse(x,y,4,4) //starting from
    If IsUpTextMulti('Talk to','Talk','eeper') Then //a differnt
    Begin //center point
    Mouse(x,y,0,0,False) //each time.
    ChooseOption(x,y'Trade') //Chooses Trade
    Break; //Breaks out of loop if found.
    End;
    End;
    End;

    {-----------------------------MAIN LOOP-----------------------------}

    begin
    logitin;
    FindTheKeeper(3952229) // change the color to the shop keeper color (now fixed)
    end.
    This is the basis of the script it says

    Failed when compiling
    Line 68: [Error] (14874:1): Semicolon (';') expected in script C:\Documents and Settings\Owner.YOUR-C01B374DEF\Desktop\Scripts\Timothegreat's itembuyer0.1fixed3garrett3.scar

    Can anyone help on this and also help with item buying or selling? Thx in advance

  5. #5
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    is that the exact same as what i had? just a second...

    EDIT: it compiles now, sorry about that

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  6. #6
    Join Date
    May 2007
    Location
    in a pineapple under the sea
    Posts
    1,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Update!

    I now have an updated version of this script so please, if you can, help me.

    This is supposed to buy certain items from the varrock gen store then bank them.

    Im a very new scripter, so help would be appreciated. Thx.

    Attached is the updated version.

    Edit: Also there is an error in garrets newest.

    [Runtime Error] : Exception: Access violation at address 006A8E54 in module 'scar.exe'. Read of address 00000034 in line 314 in script C:\Program Files\SCAR 3.06\includes\srl\srl\core\Text.scar
    [SIZE="4"][CENTER][URL="http://www.youtube.com/watch?v=5YsGJz3j4os"]LOL u mad bro?[/URL][/CENTER][/SIZE]

  7. #7
    Join Date
    May 2007
    Location
    in a pineapple under the sea
    Posts
    1,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    can anyone help me??
    [SIZE="4"][CENTER][URL="http://www.youtube.com/watch?v=5YsGJz3j4os"]LOL u mad bro?[/URL][/CENTER][/SIZE]

  8. #8
    Join Date
    May 2007
    Location
    in a pineapple under the sea
    Posts
    1,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Im looking for someone who knows how to make a banking procedure for this script.

    It buys items from the general store in varrock and i want it to bank in the east or west bank.
    [SIZE="4"][CENTER][URL="http://www.youtube.com/watch?v=5YsGJz3j4os"]LOL u mad bro?[/URL][/CENTER][/SIZE]

  9. #9
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    ok, do you ever compile your scripts? it had about 50 errors, not even joking, every procedure was done wrong, what is mousec? it took me 20 minutes or so i think to fix this up. Sorry, but you never made the effort to fix it, you used findcolor wrong, did you read a tut? sorry, but this isnt great. it compiles now, but i dont want to do anymore work, see if someone else will do the walking and banking

    EDIT: oh ya, plz dont triple post

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  10. #10
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Well, first you'd have to learn radialwalking; check out the intermediate and advanced tutorial sections for a couple nice tutorials on it.

    Once you can get yourself to a bank, it's relatively easy to open up the bank and deposit your items. Look in Bank.scar (or in the manual) for some helpful SRL banking functions.
    Interested in C# and Electrical Engineering? This might interest you.

  11. #11
    Join Date
    May 2007
    Location
    in a pineapple under the sea
    Posts
    1,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    anyone else have anything to add?
    [SIZE="4"][CENTER][URL="http://www.youtube.com/watch?v=5YsGJz3j4os"]LOL u mad bro?[/URL][/CENTER][/SIZE]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. GE Item Buyer + Advertiser
    By Bad Processor in forum First Scripts
    Replies: 7
    Last Post: 11-01-2008, 12:47 AM
  2. buyer script
    By unl in forum OSR Help
    Replies: 5
    Last Post: 08-19-2008, 12:38 PM
  3. Hermpie's Adventures Item Buyer [Ardounge] [Yanixs Idea, thanks]
    By ShowerThoughts in forum RS3 Outdated / Broken Scripts
    Replies: 38
    Last Post: 08-15-2008, 05:43 PM
  4. First (feather buyer) script
    By Jacobdm0 in forum First Scripts
    Replies: 2
    Last Post: 07-16-2007, 10:28 PM
  5. MY first script! (auto arrow buyer!)
    By 3Garrett3 in forum RS3 Outdated / Broken Scripts
    Replies: 3
    Last Post: 02-27-2007, 01:05 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
  •