1 ถ้าผมจะ Return ค่าเป็นค่าสีเขียนยังไงหรอครับ
Func _getcharhp($x)
_getcharhp($x) = PixelGetColor(($x / 100 * 114 + 69), 67)
EndFunc ;==>_getcharhp
2 ถ้าเขียนฟังชั่นแยก แล้วกำหนดค่าแบบนี้ แก้ยังไงให้ถูกครับ
Func _getchartarget()
If PixelGetColor(788, 80) = 0xF6966E Then
_getchartarget() = 1
Else
_getchartarget() = 0
EndIf
EndFunc
3 ผมใช้ Hotkey แต่มัน error อ่ะครับ
HotKeySet("{F9}", "toggleBotRun")
Func togglebotrun()
If $bot_run == 0 Then
run_bot()
Else
stop_bot()
EndIf
EndFunc
----------------------------------------
HotKeySet("{F5}", "GetHPMP")
Func GetHPMP()
$charpothp = _getcharhp(GUICtrlRead($pothpdelay))
$charpotmp = _getcharmp(GUICtrlRead($potmpdelay))
$charhealhp = _getcharhp(GUICtrlRead($healhpdelay))
$charresthp = _getcharhp(GUICtrlRead($resthpdelay))
$charrestmp = _getcharmp(GUICtrlRead($restmpdelay)
EndFunc
อ้างจาก Script อันบนสุดนะครับ
4. Function พวก loadconfig นี่ใช้ยังไงหรอครับของผมมัน error อ่ะครับ
Func loadconfig()
GUICtrlSetData($skill[0], IniRead($myconfig_file, "skill", "skill0", "none"))
GUICtrlSetData($skill[1], IniRead($myconfig_file, "skill", "skill1", "none"))
GUICtrlSetData($skill[2], IniRead($myconfig_file, "skill", "skill2", "none"))
ฝากด้วยครับ
Func _getcharhp($x)
_getcharhp($x) = PixelGetColor(($x / 100 * 114 + 69), 67)
EndFunc ;==>_getcharhp
2 ถ้าเขียนฟังชั่นแยก แล้วกำหนดค่าแบบนี้ แก้ยังไงให้ถูกครับ
Func _getchartarget()
If PixelGetColor(788, 80) = 0xF6966E Then
_getchartarget() = 1
Else
_getchartarget() = 0
EndIf
EndFunc
3 ผมใช้ Hotkey แต่มัน error อ่ะครับ
HotKeySet("{F9}", "toggleBotRun")
Func togglebotrun()
If $bot_run == 0 Then
run_bot()
Else
stop_bot()
EndIf
EndFunc
----------------------------------------
HotKeySet("{F5}", "GetHPMP")
Func GetHPMP()
$charpothp = _getcharhp(GUICtrlRead($pothpdelay))
$charpotmp = _getcharmp(GUICtrlRead($potmpdelay))
$charhealhp = _getcharhp(GUICtrlRead($healhpdelay))
$charresthp = _getcharhp(GUICtrlRead($resthpdelay))
$charrestmp = _getcharmp(GUICtrlRead($restmpdelay)
EndFunc
อ้างจาก Script อันบนสุดนะครับ
4. Function พวก loadconfig นี่ใช้ยังไงหรอครับของผมมัน error อ่ะครับ
Func loadconfig()
GUICtrlSetData($skill[0], IniRead($myconfig_file, "skill", "skill0", "none"))
GUICtrlSetData($skill[1], IniRead($myconfig_file, "skill", "skill1", "none"))
GUICtrlSetData($skill[2], IniRead($myconfig_file, "skill", "skill2", "none"))
ฝากด้วยครับ