sailor macro help

Newbie Spellweaver
Joined
Jan 17, 2008
Messages
14
Reaction score
0
IF YOU ARE LOOKING FOR A SAILOR MACRO SEE THE 6TH POST.

There have been a ton of posts on this topic but most of them are out of date by now, I'm hoping this thread will end up with some usefull information to get started making macros in general and sailor macros in particular.

Here are a few questions this newb would like answered to get us/me started.

Q.1. Whats an easy way to extract the coordinates and hex color of a pixel for use in a macro?

Q.2. Is this still a valid method for a sailor macro or have NF started varying the colors on the new sailor tab a little with each roll?

Q.3. Are there programs out there that match images rather than pixel colors?

Q.4. What options are there for macro scripting programs? I have seen Quick Macro mentioned a few times but what are the other options?

Q.5. What were the biggest hurtles that you had to overcome when you started writing macros?

Thanks for your time.
 
Last edited:
Q.1. Whats an easy way to extract the coordinates and hex color of a pixel for use in a macro?
> Microsoft Paint works a treat for getting coords from screenshots, and QMacro's "pick color" function works quite well for getting the hex codes too.

Q.2. Is this still a valid method for a sailor macro or have NF started varying the colors on the new sailor tab a little with each roll?
> lol, that would take effort on their part.

Q.3. Are there programs out there that match images rather than pixel colors?
> QMacro has this as well. You could get it to look for the 5x10 or whatever pixels that are for a "2", but in my experience that takes way too long in regards to CPU time. Basically, why check for 50 pixels matching when 1 or 2 will do?

Q.4. What options are there for macro scripting programs? I have seen Quick Macro mentioned a few times but what are the other options?
> If you know what you're doing, you could write it in VB, C, Pascal, whatever. QMacro is actually based on VB code, so if you're proficient in that already you may as well just use that.

Q.5. What were the biggest hurtles that you had to overcome when you started writing macros?
> Learning the hard way that sufficient delays in your code are essential to overcome the inevitable lag spikes you get on the US servers.

Good luck :)
 
Waveknight?! I'm having problems!

This is part of the script I am trying to run in NF

77 IfColor 438 259 f7fbf7 0
78 seamanAcc = True
79 IfColor 446 264 f7fbf7
80 acc = 11
81 EndIf
82 IfColor 445 264 f7fbf7
83 acc = 12
84 EndIf
85 EndIf

I have checked and double checked the co-ords and colors and i have run the same script set up for the desktop and it works there but no dice in NF. There it gets to line 77 when 438 259 is definatly f7fbf7 and comes back with False. In fact it skips out at all the lines for seamanAcc, seamanRel, seamanTrp... when they should be coming back true. Whats this crap about some antimacro color system they are useing? could it be to blame? and if so whats a work around?

Also; is there a qmacro command that will return the color value of a pixel other than the pick tool so that I can narrow down the faults source?
 
Last edited:
I don't know where you got your coords from, but I've just checked them and all 3 are wrong mate.

Try downloading BoShot and set it to take .BMPs at 100% quality. You can use these screenshots in paint to get the coords/colors of the necessary pixels.

Also, for better speed, try using something like :

IfColor (check for "1x")
IfColor (check for "x2")
*set variable to "11"*
*set "keep" variable to "true"*​
EndIf
IfColor (check for "x1")
*set variable to "12"*
*set "keep" variable to "true"*​
EndIf​
EndIf
 
Thats fixed it, useing paint that is... for some reason the pick utility in qmacro was reading me out 4 pixels to the left. Working now thanks for your help.
 
Here is a new sailor macro for qmacro, I'm useing global variables to pass information between functions here and i know its bad practice so if you know how to return values or set perameters in vb could you post a link or a brief example of the syntax. Thanks

Cut and paste this into Qmacro, set it on a loop and edit checkStats to keep the sailors you want, I leave it running when i go to bed and it burns just over 200,000 points during the night and finds two or three premo sailors(sometimes none at all).

Also virus scan the qmacro folder after you install it and you will find the trogan gen virus, remove it and the program still works fine, dodgy huh. Qmacro 6.20 and a crack for it are attached.

VBS Dim pot, acc, rel, trp, aaw, rep, res, eng, air, fgt, bmr, lPot, lAcc, lRel, lTrp, lAaw, lRep, lRes, lEng, lAir, lFgt, lBmr, badStats, sailorName, timeDelay

Sub Main
badStats = True
MoveTo 895 722
Gosub genRand
Delay timeDelay
LeftClick 1
Gosub genRand
Delay timeDelay
MoveTo 659 420
Gosub genRand
Delay timeDelay
Gosub findStats
Gosub checkStats
While badStats
lPot = pot
lAcc = acc
lRel = rel
lTrp = trp
lAaw = aaw
lRep = rep
lRes = res
lEng = eng
lAir = air
lFgt = fgt
lBmr = bmr
LeftClick 1
Gosub genRand
Delay timeDelay
Gosub findStats
If pot = lPot And acc = lAcc And rel = lRel And trp = lTrp And aaw = lAaw And rep = lRep And res = lRes And eng = lEng And air = lAir And fgt = lFgt And bmr = lBmr
Delay 1500
Gosub findStats
EndIf
Gosub checkStats
EndWhile
SayString sailorName
MoveTo 552 420
Gosub genRand
timeDelay = timeDelay + 4500
Delay timeDelay
LeftClick 1
Return main

EndScript

Sub genRand
Randomize
timeDelay = ((Rnd * 500) + 1250)
Return genRand

Sub findStats
IfColor 451 245 f7fbf7 0
pot = 15
Else
IfColor 449 246 f7fbf7 0
pot = 14
Else
IfColor 448 250 f7fbf7 0
pot = 13
Else
IfColor 451 251 f7fbf7 0
pot = 12
Else
IfColor 451 248 f7fbf7 0
pot = 10
Else
pot = 11
EndIf
EndIf
EndIf
EndIf
EndIf
IfColor 451 259 f7fbf7 0
acc = 7
Else
IfColor 451 264 f7fbf7 0
acc = 8
Else
IfColor 449 262 f7fbf7 0
acc = 9
Else
IfColor 448 262 f7fbf7 0
acc = 10
Else
IfColor 450 260 f7fbf7 0
acc = 11
Else
acc = 12
EndIf
EndIf
EndIf
EndIf
EndIf
IfColor 451 273 f7fbf7 0
rel = 7
Else
IfColor 451 278 f7fbf7 0
rel = 8
Else
IfColor 449 276 f7fbf7 0
rel = 9
Else
IfColor 448 276 f7fbf7 0
rel = 10
Else
IfColor 450 274 f7fbf7 0
rel = 11
Else
rel = 12
EndIf
EndIf
EndIf
EndIf
EndIf
IfColor 451 287 f7fbf7 0
trp = 7
Else
IfColor 451 292 f7fbf7 0
trp = 8
Else
IfColor 449 290 f7fbf7 0
trp = 9
Else
IfColor 448 290 f7fbf7 0
trp = 10
Else
IfColor 450 288 f7fbf7 0
trp = 11
Else
trp = 12
EndIf
EndIf
EndIf
EndIf
EndIf
IfColor 451 301 f7fbf7 0
aaw = 7
Else
IfColor 451 306 f7fbf7 0
aaw = 8
Else
IfColor 449 304 f7fbf7 0
aaw = 9
Else
IfColor 448 304 f7fbf7 0
aaw = 10
Else
IfColor 450 302 f7fbf7 0
aaw = 11
Else
aaw = 12
EndIf
EndIf
EndIf
EndIf
EndIf
IfColor 451 315 f7fbf7 0
rep = 7
Else
IfColor 451 320 f7fbf7 0
rep = 8
Else
IfColor 449 318 f7fbf7 0
rep = 9
Else
IfColor 448 318 f7fbf7 0
rep = 10
Else
IfColor 450 316 f7fbf7 0
rep = 11
Else
rep = 12
EndIf
EndIf
EndIf
EndIf
EndIf
IfColor 451 329 f7fbf7 0
res = 7
Else
IfColor 451 334 f7fbf7 0
res = 8
Else
IfColor 449 332 f7fbf7 0
res = 9
Else
IfColor 448 332 f7fbf7 0
res = 10
Else
IfColor 450 330 f7fbf7 0
res = 11
Else
res = 12
EndIf
EndIf
EndIf
EndIf
EndIf
IfColor 451 343 f7fbf7 0
eng = 7
Else
IfColor 451 348 f7fbf7 0
eng = 8
Else
IfColor 449 346 f7fbf7 0
eng = 9
Else
IfColor 448 346 f7fbf7 0
eng = 10
Else
IfColor 450 344 f7fbf7 0
eng = 11
Else
eng = 12
EndIf
EndIf
EndIf
EndIf
EndIf
IfColor 451 357 f7fbf7 0
air = 7
Else
IfColor 451 362 f7fbf7 0
air = 8
Else
IfColor 449 360 f7fbf7 0
air = 9
Else
IfColor 448 360 f7fbf7 0
air = 10
Else
IfColor 450 358 f7fbf7 0
air = 11
Else
air = 12
EndIf
EndIf
EndIf
EndIf
EndIf
IfColor 451 371 f7fbf7 0
fgt = 7
Else
IfColor 451 376 f7fbf7 0
fgt = 8
Else
IfColor 449 374 f7fbf7 0
fgt = 9
Else
IfColor 448 374 f7fbf7 0
fgt = 10
Else
IfColor 450 372 f7fbf7 0
fgt = 11
Else
fgt = 12
EndIf
EndIf
EndIf
EndIf
EndIf
IfColor 451 385 f7fbf7 0
bmr = 7
Else
IfColor 451 390 f7fbf7 0
bmr = 8
Else
IfColor 449 388 f7fbf7 0
bmr = 9
Else
IfColor 448 388 f7fbf7 0
bmr =10
Else
IfColor 450 386 f7fbf7 0
bmr = 11
Else
bmr = 12
EndIf
EndIf
EndIf
EndIf
EndIf
Return findStats

Sub checkStats
If acc = 11 And rel = 12
sailorName = "RldGunner"
badStats = False
EndIf
If acc = 12 And rel = 11
sailorName = "Gunner"
badStats = False
EndIf
If acc = 12 And rel = 12
sailorName = "SuperGunner"
badStats = False
EndIf
If trp = 12 And rel >= 11
sailorName = "Torpedo"
badStats = False
EndIf
If aaw = 12 And rel >= 11
sailorName = "AA-Gunner"
badStats = False
EndIf
If rep = 12 And res >= 10 And eng >= 10
sailorName = "Repairer"
badStats = False
EndIf
If res = 12 And rep >= 10 And eng >= 10
sailorName = "Restorer"
badStats = False
EndIf
If eng = 12 And rep >= 10 And res >= 10
sailorName = "Engineer"
badStats = False
EndIf
If air = 12 And fgt = 11
sailorName = "AirFighter"
badStats = False
EndIf
If air = 11 And fgt = 12
sailorName = "Fighter"
badStats = False
EndIf
If air = 12 And fgt = 12
sailorName = "SuperFighter"
badStats = False
EndIf
If air = 12 And bmr = 11
sailorName = "AirBomber"
badStats = False
EndIf
If air = 11 And bmr = 12
sailorName = "Bomber"
badStats = False
EndIf
If air = 12 And bmr = 12
sailorName = "SuperBomber"
badStats = False
EndIf
If acc >= 10 And rel >= 10 And trp >= 10 And aaw >= 10 And rep >= 10 And res >= 10 And eng >= 10 And air >= 10 And fgt >= 10 And bmr >= 10
sailorName = "Seaman"
badStats = False
EndIf
Return checkStats
 

Attachments

Last edited:
Im a noob when it comes to this, but i seem to have this working fine-even added some variables to find ops, thanks Boffin ive been looking for a macro for a while and this one is by far the easiet one ive found and used
 
Hello Great Player of NF!!! Look I found the small Step by Step on a other forum on how to use Qmacro and I have downloaded the latest version which the instruction are kinda off, Can somebody give me a step by step on how to use the Qmac Please! Man I would like a roller for the dam sailors......plz!!!:throw::confused_
 
Sorry this is so easy to use. NF123

Just dl the tool copy and paste what Boffin wrote and then save.

Then open NF, be sure u are in your harbour and press f10. close the window and look there is magic on your desktop..


Sorry for my bad english.
 
I downloaded bofins attached files and I got the files while i had NF but I got a message saying " You need to have Navy Field file, if not please download at internet page Navy Field.com" but i had navy field this is very confusing. So i uninstaled Navy Field and re downloaded it I still got the same reply... Please help me

thank you
Mary
 
I've tried to use the macro but it won't work for some reason?I clicked on new macro and copied and pasted the macro. I set it to loop until the stop hot key was selected. The macro works fine when im not in navyfield but it does not work inside of navyfield? Ive tried using it on an official server btw. Any suggestions?
 
if you are useing vista you have to run qmacro as an admin... aside from that add a delay 10000 at the beginning and debug it, hit the play button and switch windows to navyfield. After 10 seconds it should start moving the mouse etc, if it works in debug you just have to play with the settings a bit more otherwise i dont know.

One more thing... check the enable window tab, if you open navyfield and alt tab to qmacro there should be a "NavyFIELD" item in that menu, try selecting it and run the macro again.
 
i have been running bofins script for a while and it seems like ever since the event last weekend this script doesnt seem to find crap. Also i have always had a problem with elite bombers, it ways it finds them but the stats are like 8/9. anyone else having these problems. if so an updated scripts would be greatly appreciated.
 
Back