Ok, so I guess the offsets are fine, just need to add a failsafe for the misclick. Thanks guys![]()
This is coming from a person who hasn't scripted in a good year and a half, but couldn't you basically do..
FindLadder [Function]
(Safe-Checking) Find Dungeon symbol on the minimap.
If (can not find dungeon symbol) repeat a different, read, DIFFERENT ladder-checking function (possibly a bitmap).
If still can not find dungeon symbol, log.
Thing is this is an AIO script, with functions designed to adapt to every location with just a few tiles or IDs changed. I use the same function for Door, Ladder, and other (such as the trapdoor in the edgeville mine) object handling, so right now it basically just searches for the defined Tile and ID once, and clicks it if it's there. What I'm probably going to do is define whether or not it is required (for instance, most doors have a chance of being open, so it is not always necessary to open them) to handle, and try enough times to do so as it fits.
By the way, with reflection it's much easier and more reliable to make a DidWeClimbLadder function, by simply checking for a tile near you (the tiles of a dungeon and the spot 'above' it are drastically different)![]()
Going to start on it nowIt shouldn't take me too long unless something comes up.
Other than the object finding and seemingly the VEM path (I'll try remaking it), is there anything else I need to fix?
Updated
V1.3 (8/12/09)
- Added Object Failsafes, shouldn't fail now
- Redid VEM Path
- Fixed the fake rocks
EDIT: Also added the Login check.
EDIT: My test at MGM (stopped by random...Yes, 27 minutes and I got a random)
I'm not sure what's up with the Profit/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\ Tad's MultiMiner /\/\/\/\/\/\/\/\/\/\/\/\/\/\/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
/\/\/\ Time Running: 27 Minutes and 56 Seconds /\/\/\
/\/\/\ Ores Banked: 112 /\/\/\
/\/\/\ Coal: 112 /\/\/\
/\/\/\ Profit Gained: -112 /\/\/\
/\/\/\ Profit/Hour: -241 /\/\/\
/\/\/\ EXP Gained: 5600 /\/\/\
/\/\/\ EXP/Hour: 12028 /\/\/\
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
| Player | Active | Oretypes | Mine | Lev | Ores Mined | Time Run|
|-------------------------------------------------------------------------|
| 0 | True | coal | MGM | 66 | 112 | 00:27:43|
|-------------------------------------------------------------------------|![]()
did you add a failsafe for the CGM door?![]()
downloaded and running right now, will post proggie if it does or does not screw up, whenever it goes inactive.
Ok there is a problem with the walking to CGM sometimes not very often but a few times today it just randomly stops the script and says:
Something went wrong during WalkToMine. Next Player.
NextPlayer
SwitchToPlayer(PlayerNo: 0, Active: False);
All Players are inactive, terminating script.
Successfully executed
and here is a picture of where it always gets stuck:
![]()
That exact spot (give or take a couple tiles)? Must be something with the path then, I'll get a new one, one min.
And the door, when I add a failsafe for one, it adds a failsafe for all, because they use a global functionYes, I did.
I just watched it run to the crafting guild and it opened the door to walk in but then it opened it again and walked back out, then it tried to run to the rocks but it couldnt because it wasnt in the guild :S
EDIT: Just watched it leaving the crafting guild with a full load and it opens the door to walk out then when its out it opens the door and walks back in then opens the door and walks back out then goes to the bank.
Last edited by pl0xmypl0x; 08-13-2009 at 04:48 AM.
Guys, redownload. I inputted a better check for if you handled the door/ladder.
Also put in a new path for the CGM. However, I tried something different this time. It should NEVER fail. And I mean NEVER. However, I can't tell if it's more botlike or more humanlike, give me your opinion.
In the new download all bugs you guys pointed out to me SHOULD be fixed![]()
I like the new walking, i think its much more human like![]()
First bug with the Mining-Guild Mine. If the Dwarf gets in the way of the ladder (there's only one tile he can be on), the script will hover over him for awhile, then talk to him, then click on the ladder because the screen shifted (to move to talk to him).
Otherwise, awesome script!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\ Tad's MultiMiner /\/\/\/\/\/\/\/\/\/\/\/\/\/\/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
/\/\/\ Time Running: 1 Hours, 32 Minutes and 38 Seconds /\/\/\
/\/\/\ Ores Banked: 417 /\/\/\
/\/\/\ Coal: 417 /\/\/\
/\/\/\ Gems: 3 /\/\/\
/\/\/\ Profit Gained: -417 /\/\/\
/\/\/\ Profit/Hour: -270 /\/\/\
/\/\/\ EXP Gained: 20850 /\/\/\
/\/\/\ EXP/Hour: 13505 /\/\/\
/\/\/\ Times Breaked: 0 /\/\/\
/\/\/\ Minutes Breaked For: 0 /\/\/\
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
| Player | Active | Oretypes | Mine | Lev | Ores Mined | Time Run|
|-------------------------------------------------------------------------|
| 0 | True | coal | MGM | 71 | 417 | 01:32:02|
|-------------------------------------------------------------------------|
It's still running but i have it take a break after every 15 loads for about 20 minutes, that's somewhat believable right? In any case here is the proggy, i'll probably stop it later cause i don't like leaving my computer on, so i'll post an updated proggy then, but so far no bugs encountered.
The problem with the crafting guild mine door is still thereheres a pic:
![]()
yep i have seen it do it 3 times, it walks from the bank opens the door walks in then opens the door and walks back out :S then it tries to get to the ore.
There are currently 1 users browsing this thread. (0 members and 1 guests)