SRL Archive - First Scripts

Super Chopper Delux


PatDuffy

2011-02-25 21:28:53

Super Chopper Delux


Status: v1.2 Working AND Stable! In need of Testers![LEFT][/LEFT]

[LEFT]New In Version 1.2[/LEFT]
  • Oak Tree Cutting!
  • Improved Player Switching
  • MORE Failsafes!
  • Fixed some errors
  • Code is somewhat more efficient

This is my first complete script, and hopefully the first of many to come. Currently it chops willow logs at Port Sarim, Oak Trees north of Port Sarim(No crowds, 2 trees) and Regular Trees nw of draynor bank, and banks at Draynor. I decided to make this script for the 6th SRL Scripting Competition, and will continue to develop the script until the deadline for submission.

[LEFT]Set-Up Instructions[/LEFT]
  • Open script in Simba
  • Fill out DeclarePlayers procedure
  • Choose a starting location(Be very careful, valid locations are at the top of the script
  • Have axe equipped or in first inventory slot
  • Run the script and post the proggy!

[LEFT]Current Features[/LEFT]
  • Multi-Player
  • Anti-Ban
  • Anti-Randoms
  • Progress Reports
  • Reflection Walking
  • Any Axe Supported(except dragon)
  • Banking
  • Timed Breaks
  • SRL Stats
  • multiple tree types

[LEFT]Future Features[/LEFT]
  • (Possibly?) Firemaking and PowerChopping Support
  • Even more tree types and locations
  • Color Walking

[LEFT]Bugs[/LEFT]
  • Some Timing Errors
  • Sometimes Picks Up Dropped Willow Logs(not really a bad thing)
  • More To Come(With YOUR Help)

Sample Progress Report
[==================================================================]
[ Super Chopper Delux by PatDuffy ]
[==================================================================]
[ Total Time Run: 7 Hours, 50 Minutes and 6 Seconds ]
[==================================================================]
[ Total Number of Regular Logs Cut: 1344 ]
[ Total Number of Oak Logs Cut: 2100 ]
[ Total Number of Loads: 123 ]
[ Total Number of Experience Gained: 112800 ]
[ BanHammer Evaded : 288 ]
[==================================================================]
[ Player 0: lind ]
[ Loads: 75 ]
[ Oak Logs Cut: 2025 ]
[ Player Active: True ]
[==================================================================]
[ Player 1: aey ]
[ Loads: 48 ]
[ Regular Logs Cut: 1344 ]
[ Player Active: True ]
[==================================================================]

Credits
  • All the wonderful tutorial writers
  • The Devs who maintain SRL

Echo_

2011-02-25 21:40:09

This is really nice for your first script, I like the fact that you paid attention to the scripting conventions (most first scripts look pretty messy). If you added color walking as a failsafe, this script would be stellar :)

doublex8

2011-02-25 21:51:04

Why not bank at the deposit box by the Entrana monks? It's muuuuch closer :)

PatDuffy

2011-02-26 12:28:49

From: doublex8
Why not bank at the deposit box by the Entrana monks? It's muuuuch closer :)


When I started the script I forgot about the deposit boxes. I think I'll add an option to bank at draynor or the boxes. Unfortunately I will be away from my computer for the weekend, so ill add it when I fix bugs and add another tree type (possibly color walking too)

PatDuffy

2011-03-03 16:14:34

New In Version 1.1

  • Better Multiplayer Support
  • Multiplayer Progress Reports
  • Cleaner Looking Reports
  • More Failsafes
  • Faster Object Finding
  • Checks to see if already chopping
  • SRL Stats!
  • New Tree Type!(Regular)


It's much more stable which I hope convinces more people to try it out and give me some feedback;)

IPwnz

2011-03-13 22:24:34

Looking through your code, why not check the player's location by doing a tile check instead of looking for symbols since you're using Reflection?
I would add a boolean to see if players want to use the autotyper in AntiBan or not.
When you begin a procedure, you can combine the lines into this:
if (not(LoggedIn)) or SwitchPlayers then
Exit;
I would add a check to see if the player ever needs to rest for a bit instead of just always setting them to run.
You can simplify your Tile walking by just putting the Tile array into WalkTile, the extra line where you label it Tile is unnecessary.
Instead of rewriting your path backwards to run back and forth to the trees, try using InvertPath();
Change this:
Players[CurrentPlayer].Active := False;
NextPlayer(True);
to
NextPlayer(False);

Overall I like your script techniques, I think you'll do just fine here. :) Sorry if anything sounds snippy, I was just writing as I came across any issues. :redface:

PatDuffy

2011-03-13 23:25:38

That was the type of help I needed Ipwnz. Fortunately I discovered a few of these errors myself and just didn't officially release v1.2. I could definitely do some more cleaning up in the script.

I tried to do the InvertPath() in the new version, but I couldn't get it to work properly. The FindLocation procedure definitely needs work, just this afternoon I thought that it could misidentify a location(such as logging in lost near regular trees,wanting to chop willows) in this case I think currently it would force the player to chop regular trees.

I hadn't thought of adding a choice to use the talking anti-bans or not, I will look into this

1337w33d

2011-03-14 07:20:04

Your script runs well - good constant pace and the failsafes you have seem to work well. Neat easily readable standards, good notes, etc. Reading through/running it now. One question, in the future are you planning on adding Oak log support? Running my army with this right now. I'll let you know how it goes after the script ends! (:

Edit: Found a minor issue you may interpret; When the player has a full inventory the script won't detect it until it attempts to chop another tree and the inventory is full message appears. It's not really a big issue, only time it really made a difference was when all the trees were chopped and were on wait to respawn, the player had some downtime while the script was searching for trees.

Edit2: My friend stopped the script and didn't save the proggy ): I used my SRL-Stats account on the script though, if it's any consolation. - Script also got my characters 31+ wc

-Still running my army (:

PatDuffy

2011-03-14 07:32:13

Actually the newest version I'm releasing very soon has oak support and is much more stable. I would do it now but I'm not home.

PatDuffy

2011-03-14 19:01:26

Updated with Version 1.2

Added Oak Trees and fixed some minor/major errors. Script is much more stable now :)