Hfff luxon - pixelsearch() prob.

03/17/2008 18:16 theoldsamurai#1
Hi guy's

i am working on the HFFF Luxon bot, but i have a problem. I want to get the color of the name of NPC.

eg :

[Only registered and activated users can see links. Click Here To Register...]

I use with autoIt the function PixelSearch and a tool to capture the color of pixel pointed.

Quote:
coord = PixelSearch(0, 0, 1000, 1000, 0x002E5B)
if Not @error Then
MsgBox(0, "X and Y are:", coord[0] & "," & coord[1] )
EndIf

But it does not work... Someone could test ? Or give me the true color code ? or any solution ? :rolleyes:



thx all and good job.




Samouraiz.
03/17/2008 18:34 Azunai#2
coord = PixelSearch(0, 0, 1000, 1000, 0x002E5B)
i think you should decrease the "search range"
try:
coord = PixelSearch(0, 0, 1000, 100, 0xff0000) ; red pixel :D 0xRED RED GREEN GREEN BLUE BLUE
so 0xFF0000 is pure red ;)
03/17/2008 18:49 theoldsamurai#3
Thanks for ur answer Bitchbi.

The range used in my function is for example. In really, i assign to the coord var an array returned by the WinGetClientSize() function.

Your code run without any problem. I think my problem is finding the right color code.


It is possible that the option ADVANCED EFFECT (on guild wars graphics options) affect and produce random color in real-time ?
03/17/2008 18:59 MasteR GunneR#4
Sorry, but I don't get it ...

what's the point of knowing the color? If you wanna talk to him to get the quest/reward (and that's imo the only reason to talk to him) you just need to go some steps left and use the standard "v" -> "space" combo.

btw: I'd remove my ingame name on the screen ;)
03/17/2008 19:20 theoldsamurai#5
OMG how did i forget this.... you ROX!


Quote:
btw: I'd remove my ingame name on the screen ;)
now, me too :D
03/17/2008 19:40 Azunai#6
Quote:
It is possible that the option ADVANCED EFFECT (on guild wars graphics options) affect and produce random color in real-time
sure it is :D

I'd disable all sensless graphic effekts while botting :P