[Release] ShipwreckBot(No Custom Client)

09/16/2014 23:12 trolleras9#1
Hey all!!!
Since the event has started, i saw people asking for a shipwreckbot. I was working on npcbot but the "base script" was already ready. So i made some changes in range and bitmaps in order to shoot wrecks.
For one more time, i have to mention that more than half of the procedures belong to xRiDDi, so part of the credits go to him.
The bot is almost ready. Everything is working good, however if you find any bug report it here in order to be fixed as fast as possible.
What does it do?
-Shoots Shipwrecks
-Ranges them from random positions
-Repairs on 25%, 50% or 75% of hp , on closest corner
-AutoDefinition for everything.
-Relogs after sunk.
-Closes system messages and relogs after restart
-Avoids Island
-Logs out in corner when time has passed

Known Bugs or missing functions
-A small amount of shipwrecks is not recognized.
-No harpoon bugger atm.

Settings
-Zoom 30%.
-Resolution 800x600(Higlhly recommended).
-Everything out of seachart.
-EVERYTHING must be fully visible.
-Settings to low.
-Up key is w.
-Deactivate pets(thanks delemojo:D)

CHANGE MAPCOL IN FIRST LINES ACCORDING TO YOUR MAPS OR ELSE BOT WILL BOT WORK!!
You need scar 3.22

if you find any shipwreck that is not clicked send me a printscreen in order to add it.

PHP Code:
V1.0
-Initial Release

V1.1
-Fixed important bug in rep button definition
-Added green maps supportjust change MapCol(explained in script)
-
Added a non-recognized shipwreck
-Fixed click shipwreck bug(when found some special shipwrecks)

V1.2
-Added 15-20 map support(dark maps)
-
Fixed some serious problems in ranging in green maps
-Now RepButton is not freed and when you go to repairbot will not crash

V1.21
-Fixed DIB handle error caused by range boxesthat made the script crash

V1.3
-Added 2 non-recognized shipwrecks
-Decreased tolerance to avoid spam clicks

V1.4
-Added 5 non-recognized shipwrecks

V1.5
-Added island avoidance
-Added 1 non recognized shipwreck
-Now relogs after restart

V1.6
-Added TimeCheck(After how much time to log out)
-
Increased tolerances in positions and repcheck due to bugs in some screens
-Added backup way to define seamap
-Added backup way to detect repair 
VirusTotal V1.6--->[Only registered and activated users can see links. Click Here To Register...]
09/16/2014 23:31 jonmikeltxu#2
Can you add a harpoon buger? jijiji

Thanks great job!
09/17/2014 07:54 delemojo#3
Didnt tested it yet but I believe in ur work so Awesome job :awesome: :D
09/17/2014 20:25 hghghhjk#4
Left up corner of seamap is not visible!!
Successfully executed
Help^^
09/17/2014 21:13 trolleras9#5
Quote:
Originally Posted by hghghhjk View Post
Left up corner of seamap is not visible!!
Successfully executed
Help^^
are you using 800x600?
if yes is left up corner visible?
if you cant solve it, use manual define
09/17/2014 21:36 delemojo#6
ok now I tested it and it works prty good :)
Got stuck on a Wrack casue the pet allways went over it ^^ But I just turned Pets off :P

~
09/17/2014 23:23 trolleras9#7
#V1.1 Added
Thanks delemojo, added it in first post settings
09/18/2014 05:39 tarek mohamed#8
Left up corner of seamap is not visible!!
Successfully executed
even after i did the manual set for the seamap cords !!!
09/18/2014 05:55 asewrgaerhgrg#9
hello trolleras9, can u make it for maps 16-20 ( color sea ) :-)
09/18/2014 06:01 Peter3838#10
Left up corner of seamap is not visible!!
Successfully executed?
09/18/2014 14:29 trolleras9#11
#V1.2 Added, DO NOT USE PREVIOUS VERSIONS DUE TO SERIOUS BUGS
Quote:
Originally Posted by tarek mohamed View Post
Left up corner of seamap is not visible!!
Successfully executed
even after i did the manual set for the seamap cords !!!
Quote:
Originally Posted by Peter3838 View Post
Left up corner of seamap is not visible!!
Successfully executed?
are you using 800x600 resolution?
is your left up corner of seamap visible?
[Only registered and activated users can see links. Click Here To Register...]
the part in blue circle must be fully visible

Quote:
Originally Posted by asewrgaerhgrg View Post
hello trolleras9, can u make it for maps 16-20 ( color sea ) :-)
added;)
09/18/2014 14:53 XfightXX#12
[Runtime Error] : Exception: Can't allocate the DIB handle in line 574 in script :(
09/18/2014 15:25 trolleras9#13
Quote:
Originally Posted by XfightXX View Post
[Runtime Error] : Exception: Can't allocate the DIB handle in line 574 in script :(
2 causes in my opinion.
1)You have low memory and windows dont let scar to get more memory.
2)problems in search areas of range.
restart script and let it run.
if it occurs again send me the error message one more time. i want to see if it happens only in range function

#V1.21 Added
At last, DIB handle error found and fixed!!
Download the new version
09/18/2014 17:18 XfightXX#14
Quote:
Originally Posted by trolleras9 View Post
2 causes in my opinion.
1)You have low memory and windows dont let scar to get more memory.
2)problems in search areas of range.
restart script and let it run.
if it occurs again send me the error message one more time. i want to see if it happens only in range function

#V1.21 Added
At last, DIB handle error found and fixed!!
Download the new version
Thanks, but now no error messages and don't see/click any shipwreck :( and click on grey dragons on map 15/20 [Only registered and activated users can see links. Click Here To Register...]
09/18/2014 19:17 trolleras9#15
Quote:
Originally Posted by XfightXX View Post
Thanks, but now no error messages and don't see/click any shipwreck :( and click on grey dragons on map 15/20 [Only registered and activated users can see links. Click Here To Register...]
can you tell me at which coordinates is the dragon? i left my bot to shoot some wrecks and everything was fine.
probably it has to do with tolerance.
give the coordinates of 15/1 or 15/2(i only have 15 level ship) and i will try to fix it as soon as possible