LightbulbNk Check Pixel

Posts 1–2 of 2 · Page 1 of 1
Nk Check Pixel
Pixel Checker

Disclaimer :
This tool is used with the Adventure Bot : https://www.mpgh.net/forum/showthread.php?t=1490986

Info & Tuto :

To make it work :
  • Press "i" and disable everything except "Dungeons".
  • Then set the game to windowed mode.
  • Maximize this window.
  • Find one or more dungeons ingame.
  • Open your character page.
  • Start the tool from the GUI or directly from the file.
  • Bring your cursor to the middle of the dungeon star.
  • Press 1 to pause the script and automatically copy these values
  • Replace the ones in the code with those you just copied
    Code:
    Dungeon1 := PixelColorSimple(1560, 122, hWnd) <- Here are the first 2 values
    Dungeon2 := PixelColorSimple(1560, 194, hWnd) <- Same here with vertical offset
    Dungeon3 := PixelColorSimple(1560, 266, hWnd) <- And here too
    if (Dungeon1 = "0xFEF89A"||Dungeon2 = "0xFEF89A"||Dungeon3 = "0xFEF89A")<- And here are the color codes
  • if you want to detect multiple dungeons, find a 3* dungeon and repeat with each dungeon :



Feel free to comment with your resolution and a working combination of "X, Y, Color" to help others !

AHK Script :
Code:
CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
hWnd := WinExist("ahk_exe Trove.exe")
IsPaused := 0
loop
{
	MouseGetPos X, Y 	
	Color := PixelColorSimple(X, Y, hWnd)
	ToolTip,  X : %X%   Y : %Y%   Resolution : %A_ScreenWidth%x%A_ScreenHeight%   Color : %Color%`n %Trove_ID% `nPress num1 to pause and copy values`nPress num0 to exit
	Sleep 50
}
;Hotkeys
Numpad1::
	if(!IsPaused){
		IsPaused := 1
		Clipboard := X . ";" . Y . " " . Color
		MsgBox, Coords/PixelColor copied
	}else{
		IsPaused := 0
	}
	Pause,,1 
Return
Numpad0::ExitApp

;Thanks to lexikos for the pixel color lib

PixelColorSimple(pc_x, pc_y, hWnd)
{
	SysGet, WindowTitleHeight, 4
	SysGet, WindowBorderWidth, 45
	pc_hDC := DllCall("GetDC", "UInt", hWnd)
	pc_fmtI := A_FormatInteger
	SetFormat, IntegerFast, Hex
	pc_c := DllCall("GetPixel", "UInt", pc_hDC, "Int", pc_x+WindowBorderWidth, "Int", pc_y-WindowTitleHeight, "UInt")
	pc_c := pc_c >> 16 & 0xff | pc_c & 0xff00 | (pc_c & 0xff) << 16
	pc_c .= ""
	SetFormat, IntegerFast, %pc_fmtI%
	DllCall("ReleaseDC", "UInt", hWnd, "UInt", pc_hDC)
	return pc_c
}


Virus scans :
https://virusscan.jotti.org/filescanjob/xt3fuf8b7t
https://www.virustotal.com/gui/file/...00fe/detection
NkPxChk_mpgh.net.rar669 B · 51 downloads Clean
//Approved (ahk script)
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?