Results 1 to 8 of 8

Thread: CFletch

  1. #1
    Join Date
    Nov 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default CFletch

    This is the first script I made, it would be helpful if you looked over the code for mistakes that I undoubtedly made. I'll be adding more features, but wanted to get it out there in case I'm making really bad code or something.

    ____________________


    CFletch v0.1

    Features:
    - Multiple players
    (you suggest)

    Support for:
    - Cutting logs
    (you suggest)

    Instructions:
    - Install SMART if you don't have it
    - Start in varrock west bank, have a knife in your inventory and normal logs visible in your bank
    - Fill out your account info at the top of the script
    - Run the script

    Known bugs:
    None yet, report anything you see

    Notes:
    Cutting logs does make a decent profit. It may take some time to buy logs guide price, do not go too much higher. Arrow shafts usually sell instantly, and are easy to sell over guide price.

    Credit to Silent Spy for his scripts, which I used as a reference to add multiplayer support and other code
    Last edited by cahker; 12-11-2011 at 09:36 PM.

  2. #2
    Join Date
    Feb 2011
    Location
    Earth
    Posts
    1,784
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Well to comment on the code, you do not seem to have multiplayer support correct, there needs to be a
    Simba Code:
    Players[0].Name := ''; // Username[SIMBA]
    Players[0].Pass := ''; // Password
    Players[0].Active := True; // True if you are using this player
    Players[0].Pin := ''; // Leave blank if the player doesn't have a bank pin
    Players[0].Integers[1] := 10000; // Number of loads
    [/SIMBA]
    for every Player, increasing the [#] by 1 for each.

    You also did not call FindNormalRandoms correctly, it should look like this
    Simba Code:
    if FindNormalRandoms then
        if not LoggedIn then
          Exit;

    If you had wanted to add multiplayer support, then this would be changed from
    Simba Code:
    InPin(Players[0].Pin);
    to
    Simba Code:
    InPin(Players[CurrentPlayer].Pin);

    Also, the place where you freed your DTM's is ineffective, and will eventually lead to a memory build-up, You should call InitDTMs before you do FindDTM, then after you have the location(x,y) of the DTM, call FreeDTMS.

    Other than that, great job on your first script!

    Currently: Working on Defending&Attacking in my Castle-Wars Script
    Project Rebuild: 90M/170M

  3. #3
    Join Date
    Nov 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright, changed some of the code and uploaded it again. Calls FindNormal Randoms correctly, and uses multiplayer correctly. (I didn't have multiple members accounts to test).

    I'm not exactly sure what you mean about the DTMs. Do you just put the free DTM after every findDTM, they can be called afterwards again?

  4. #4
    Join Date
    Feb 2007
    Posts
    287
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    This worked for a few loads than just stopped when trying to take logs out of the bank, I tried updating the dtm too and no luck

    also seems to be an error with the script occasionally not clicking on the knife too (might have been lag)

    EDIT: made a really good dtm for the logs and it seems to be working now. '78DA630C616160E0616440069EE60A601A26CA180154238AA A86818109558D2F508D380135294035BCB8D580588C094035E C04D47802D570E0570300BD2E0335'
    Last edited by quazzymodem; 12-15-2011 at 06:26 AM.

  5. #5
    Join Date
    Nov 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'll be updating this soon, add support to fletch almost any item, add failsafes, and make progress reports. I'm pretty busy with finals.

  6. #6
    Join Date
    Feb 2007
    Posts
    287
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Sounds great cahker, I actually edited your script for my own purposes doing what you just described, im having a few issues with making the script use the knife in my toolbelt though. let me know if you would like to see my edits.

  7. #7
    Join Date
    Dec 2011
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    works good, but my bot is making shart and i wanna make bows

  8. #8
    Join Date
    Nov 2011
    Posts
    77
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well I changed the DTM for logs so it will work for all but now it just hovers over logs and doesn`t withdraw them.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •