Current version: 1.61
Current status: NOT WORKING! - REASON: DOESNT WORK WITH RS3
It's been awhile since I last posted anything on these forums, haven't really had any time due the school. Altough I've been lurking checking these forums every once in a while, so that I know what is going on.
This script is a complete rewrite of my first script released here, which now is buried somewhere in the first script subforum. I am aware that randoms have been shut off for a while now, yet I haven't removed findNormalRandoms from my script, it doesn't hurt to have them? Does it?
So, without anymore interruptions, the script itself.
Description:
Cooks fishes at Al-Kharid, currently supports only F2P fishes.
Features:
- Uses TPA for walking, DDTM as backup method
- Accurate range finding
- Supports all the fishes! (Thanks to iamorange12)
Instructions:
- Have player either in bank or in range, doesn't matter, but you can also start (lodestone symbol should not be visible!) anywhere.
- Set your XP counter to all or to cooking, otherwise XP calculating won't work
- Make sure that SRL is fully updated
- Fill out necessary information
- Use these constants or numbers (are also in the script) in integers[PLAYER_ITEM]:
Simba Code:
ITEM_FISH_SHRIMP = 0;
ITEM_FISH_CRAYFISH = 1;
ITEM_FISH_ANCHOVIES = 2;
ITEM_FISH_SARDINE = 3;
ITEM_FISH_HERRING = 4;
ITEM_FISH_TROUT = 5;
ITEM_FISH_SALMON = 6;
ITEM_FISH_PIKE = 7;
ITEM_FISH_TUNA = 8;
ITEM_FISH_LOBSTER = 9;
ITEM_FISH_SWORDFISH = 10;
ITEM_FISH_MACKEREL = 11;
ITEM_FISH_COD = 12;
ITEM_FISH_MANTA_RAY = 13;
ITEM_FISH_ROCKTAIL = 14;
ITEM_FISH_SEA_TURTLE = 15;
ITEM_FISH_CAVEFISH = 16;
ITEM_FISH_SHARK = 17;
ITEM_FISH_MONKFISH = 18;
ITEM_FISH_BASS = 19;
- Setup necessary player information.
Simba Code:
const
takeBreaks = true;
saveDebug = true;
paintSmart = true;
procedure DeclarePlayers();
begin
HowManyPlayers := 1; //Change to amount of players wanted
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0; //0 is the first player as it goes like this 0, 1, 2..
with Players[0] do
begin
Name := ''; // Username
Pass := ''; // Password
Nick := ''; // Nickname, 3-4 letters (Used for progress reports)
Active := True; // Using this player?
Member := false;
Pin := ''; // Leave blank if you dont have a bank pin
(*~ Number of the xp counter you wish to use (1, 2 or 3) ~*)
Integers[PLAYER_XP_BAR] := 1;
(*~ Fish to cook, look above this procedure to find out what to put here ~*)
Integers[PLAYER_ITEM] := ITEM_FISH_SALMON; // Food to cook
(*~ Timing and such ~*)
Integers[PLAYER_TOTAL_TIME] := 500; // Total time (in minutes), put 0 if you want to go forever
Integers[PLAYER_BREAK_AFTER] := 120; // Breaking or switching after x minutes
Integers[PLAYER_BREAK_TIME] := 20; // Time to break, +- random 3 minutes
end;
end;
- Push play, and wait for SMART load
- Follow couple first loops to see if there is any issues
Reports:
Version 1.53 testing, RS update stopped it... (Also longest one!)
Progress Report:
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.53 |
| - Total runtime: 06:57:54 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : *** |
| - Time played : 06:14:40 |
| - Fish : Lobster |
| - Cooked : 5335 |
| - Experience : 640200 |
| - EXP/H : -79371 |
| - Breaks : 3 |
|________________________________|
\________________________________/
Progress Report:
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.43 |
| - Total runtime: 01:49:11 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : idq |
| - Time played : 01:49:10 |
| - Fish : Trout |
| - Experience : 95830 |
| - EXP/H : 52661 |
| - Breaks : 1 |
|________________________________|
\________________________________/
Progress Report:
[]: ________________________________
[]: /________________________________\
[]: | AK Cooker by Smidqe |
[]: |________________________________|
[]: |________________________________|
[]: | - Version: 0.01 |
[]: | - Total runtime: 01:31:05 |
[]: |________________________________|
[]: |________________________________|
[]: | Player: 0 |
[]: | - Nickname : idq |
[]: | - Time played : 01:31:04 |
[]: | - Fish : Lobster |
[]: | - Experience : 178080 |
[]: | - EXP/H : 117307 |
[]: | - Breaks : 0 |
[]: |________________________________|
[]: \________________________________/
How to report bugs:
- Describe the bug, is it walking related or object finding related, giving information regarding the issue is important.
- Include the debug log!
- If the debug log is long, then include from the second to last progress report to last line.
- If the bug is related to walking include a picture that script has taken. REMEMBER to cover your account name!
Bugs:
There shouldn't be anything
- findRangeMM doesn't always work (can't really help this, moving players and symbols cause this to fail).
- waitConversion cut's short for some reason and never finishes!
Credits:
Progress Report:
| ~ Credits: |
| ~ WT-Fakawi: DDTM anchoring tutorial, and functions used here, |
| look DDTMRelocate, grabColor and initDDTM |
| ~ MSI and its writers: For the filewriting function, |
| look writeDebug and setupScript |
| ~ Community: For such an atmosphere where you really |
| want to learn |
Version history:
- 1.0: Initial release
- 1.1: Added clickNorth to player setup, I apparently forgot it :p
- 1.2: findOptionMulti added, cleaned initBank and findRange, hopefully fixed out of range error caused because main color wasn't found, fixed bug if the item wasn't selected due to lag or something. Also couple minor failsafes to mainloop.
- 1.3: Now you can start anywhere, also added relocatePlayer and lostWalk incase a character gets somewhere where it should not be. Couple minor modifications to mainloop.
- 1.4: Fixed broken DTM for lobster, fixed DDTM creating too early, somewhat rewrote the locateObject, added a better finding of bank booth. This version will probably be the last version, unless there are something major broken.
- 1.41: Fixed checkUptext, a noticiable increase in speed during banking. Also made finding the range depend solely on chooseOption, uptext was quite unreliable.
- 1.42: Couple failsafes to mainloop (walking), fixed a bug if player had a 'Range' in their name script would use it, fixed if bankers weren't visible the script would log out.
- 1.43: Fixed for walking too far, fixed trout dtm, fixed lostwalk. Fixed breaking if using one player setup. Better debugging for the lost walk and also minor adjustments here and there.
- 1.44: Removed box manipulation from findRangeMM as it was possible that it would mess up the walking.
- 1.5: Major rework on the findRangeMM. Couple failsafes on mainloop, also couple minor modifications throughout the whole script. Also a fix for looping through the the DDTM creating (my bad). Commented all findNormalRandoms. Made reason to a TStringArray because it would not stay on one character if using multiplayer.
- 1.51: Hopefully fixed finding DDTM in wrong place. Minor modifications to DDTMRelocate and couple additions to debugging (especially to lostWalk)
- 1.52: Reduced the width in findBankersMM, hopefully it fixed a walking problem. Script also takes a screenshot if it encountered an error.
- 1.53: Fixed walking. Finally removed all findNormalRandoms from the script. Added a failsafe for walking, since the flag could mess up the findBankersMM. Fixed breaking, there's a small mishap! Also added SRL_SixHourFix (I didn't use it before since I don't bot over 6 hours). Changed the exp/h calculation slightly, as it resulted in negative exp amount...
- 1.531: Fixed taking breaks if takeBreaks was false
- 1.532: Fixed waitConversion resulting false if no DTMs were not found.
- 1.6: Major rewrite on many functions yet kept the functionality. Increased tolerance for object colors, and added different sorting method for bank booth. Mainloop also rewritten. Changed integers[PLAYER_ITEM] to integer. Also, added member fishes, thanks to iamorange12 by making the DTMs.
- 1.61: Added EXP amounts to member fishes, change while findDTM() to while findColor(), hopefully that fixes everything!
Downloads:
- 1.0: 12
- 1.1: 43
- 1.2: 13
- 1.3: 40
- 1.4: 3
- 1.41: 3
- 1.42: 29
- 1.43: 5
- 1.44: 3
- 1.5: 36
- 1.51: 4
- 1.52: 13
- 1.53: 24
- 1.531: 7
- 1.532: 30