Results 1 to 9 of 9

Thread: Need Help And Suggestions For First Script

  1. #1
    Join Date
    Jan 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need Help And Suggestions For First Script

    Hey,

    I'm working on my first script. One that I'm pretty sure has never been published before. It's a silk buyer. I don't know if anyone knows this, but if you buy silk from the silk merchant in alkharid for only 3gp each, you can sell it to the silk merchant in Ardy for 60gp each. That's a 57gp profit per silk, and there's no worrying about whether or not prices will drop. Anyways, this is my first script, and I'm having some problems with it. The bank functions don't work for me, so I've had to make my own. I haven't integrated multi-player yet, I'm waiting for later versions. I plan on implementing anti-randoms and bans, but I'm gonna wait till the script has it's full bare structure. Logging in works ok, then 95% of the time it doesn't have a problem finding the bank. Then getting to the silk seller is where I really need help. I've never actually gotten all the way there. Please take a look at my script, maybe run it, and maybe try to help? Anyone who gives any help or suggestions ends up in my credits when I publish this. And considering this is probably the first of it's kind, I think that'd be pretty cool. Anyways, here's the script. Thanks.

    SCAR Code:
    program BuzzysSilkBuyer;
    {.include SRL/SRL.scar}

    //1. Start logged out in  the third to last bank slot in Alkharid Bank with nothing in inventory.
    //2. Setup lines  16-18
    //3. Press run, compile time may take awhile so sit tight.

    var
    Loads: Integer;
    MoneySpent: Integer;
    SilkBought: Integer;
    Silktemp: Integer;

    const
    UserName= '';
    Password= '';
    LoadsToDo= 10000;

    procedure LogIn;  //can you tell this logs you in?
    begin
    Mouse(459, 291, 0, 0, true);
    Typesend(UserName);
    wait(100+random(50));
    Typesend(Password);
    Mouse(311, 324, 0, 0, true);
    wait(5000+random(3000));
    Mouse(391, 350, 4, 4, true);
    wait(2000+random(2000));
    end;

    procedure GetCash; //only works if your right next to the bank window
    begin
    MakeCompass('n');
    HighestAngle;
    if(FindColortolerance(x,y,6119269,177, 115,205, 187,20))then
    Mouse(x,y,1,1,false);
    Mouse(x,y+40,3,4,true);
    wait(3000+random(1000));
    Mouse(93, 78,2,1,false);
    wait(1000+random(500));
    Mouse(77,165,1,1,true);
    wait(1500+random(500));
    typesend('81');  //you need 81 coins for 27 silk at 3gp ea
    mouse(486, 41,2,3,true)
    wait(1500+random(500));
    end;

    procedure GotoSeller;  //haven't gotten to fully work yet
    begin
    setrun(true);
    if(FindColor(x,y,4292432,668, 58,689, 118))then
    Mouse(x,y,1,1,true);
    wait(3500+random(500));
    if(FindColor(x,y,1858609,661, 18,689, 39))then
    mouse(x,y,1,1,true);
    wait(5000+random(1000));
    if(FindColor(x,y,1146779,681, 76,697, 86))then
    mouse(x,y,1,1,true);
    wait(8000+random(2000));
    Mouse(668, 27,3,4,true);
    wait(8000+random(2000));
    if(FindColor(x,y,7082653,626, 30,663, 64))then
    end;

    procedure BuySilk;  //can't get to click seller, but otherwise works.
    begin
    silktemp:= 0;
    repeat
    silktemp:= silktemp + 1;
    if(FindColortolerance(x,y,12413886,175, 105,517, 338,20))then
    mouse(x,y,1,1,true);
    wait(3000+random(1000));
    Mouse(302,447,10,3,true);
    wait(1000+random(750));
    Mouse(245, 396, 10, 1, true);
    wait(1000+random(750));
    Mouse(302, 447, 10, 3, true);
    wait(1000+random(750));
    Mouse(302, 447, 10, 3, true);
    wait(1000+random(750));
    Mouse(309, 428, 10, 2, true);
    wait(1000+random(750));
    Mouse(302, 447, 10, 3, true);
    wait(1000+random(750));
    Mouse(302, 447, 10, 3, true);
    until(silktemp >=27);
    end;

    begin
    SetupSRL;
    LogIn;
    GetCash;
    GotoSeller;
    BuySilk;
    end.

    I know that there's plenty of things left to do, but I'm really just focusing on the path to the silk seller from the bank at the moment. I'm making this in Divi , just thought I'd say something because I haven't tried it in 2.03. Please try to help.

    Thanks,
    Buzzy

    Ps. For the banking to work, you have to be in the 3rd to last bank slot. Thanks.

  2. #2
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    first off dont use coordinates they are very unreliable use DTM's and Bitmaps. there a few good tutorials on them. as for getting there use RadialWalk and symbols to walk.

    RadialWalk tutorial

  3. #3
    Join Date
    Jul 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well all I can say is that is a REALLY good idea and if and when I get my second membership (maybe a full year this time for my main ) I might put this into use and of course credit you because I honestly had no idea about this, I have already gotten the functions to open the bank and to deposit the silk to work perfectly, might even write the RadialWalk tonight (I think I finally fixed it for my aircrafter too!) So the only thing I don't know how to do is get him to talk to the silk guy because I have zero clue how to even find him with any functions...

  4. #4
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    lol dont credit me credit whoever wrote that tutorial.

  5. #5
    Join Date
    Jul 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ROFL I meant Buzzy that originally came up with the silk idea because I have already been using RadialWalk tutorials to solve my issues with my aircrafter, which are slowly starting to go away, thankfully. So I felt it would only be right to credit him for the idea if I go and make it myself...

  6. #6
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    ohhh whoops i thought you were buzzy lol my mistake i didnt really look at who originally posted.

  7. #7
    Join Date
    Jan 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I've been looking over radial walk tutorials and I'm sorry but I can't seem to get them to work. If anyone could write the procedures to get the character to and from the silk seller, you would obviously get more scripting credit than me considering that is probably the most challenging part of writing this script. I've been looking over some better ways to write the script, and I've implemented DeclarePlayers into it. This will help for later use when I plan to add multi-players and anti-bans and randoms. I'm also looking for a way to add a sleeping feature. Thanks everyone who has helped me, I'm sure this won't be the first script for this.

  8. #8
    Join Date
    Jul 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well I have written the banking procedures and WAS writing the walking to the silk seller, I can give you that since it seems like you want to complete this project on your on, you can PM me if you want to see what I have done so far... I can also help you with the radialwalking because I now have it understood and working (except for the road south of falador (Makes no sense to me XD))

  9. #9
    Join Date
    Jan 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    To anyone who wants to help,

    I don't know much scar and srl scripting so if you want to take this into your own hands, feel free.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Any Suggestions for script?
    By mysticalman in forum OSR Help
    Replies: 2
    Last Post: 02-27-2008, 06:15 AM
  2. Help With Script and in need of Suggestions
    By !bezo! in forum OSR Help
    Replies: 2
    Last Post: 08-23-2007, 12:43 PM
  3. Script help/suggestions
    By uber jesus in forum OSR Help
    Replies: 2
    Last Post: 02-11-2007, 02:11 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
  •