Cài đặt Steam
Đăng nhập
|
Ngôn ngữ
简体中文 (Hán giản thể)
繁體中文 (Hán phồn thể)
日本語 (Nhật)
한국어 (Hàn Quốc)
ไทย (Thái)
Български (Bungari)
Čeština (CH Séc)
Dansk (Đan Mạch)
Deutsch (Đức)
English (Anh)
Español - España (Tây Ban Nha - TBN)
Español - Latinoamérica (Tây Ban Nha cho Mỹ Latin)
Ελληνικά (Hy Lạp)
Français (Pháp)
Italiano (Ý)
Bahasa Indonesia (tiếng Indonesia)
Magyar (Hungary)
Nederlands (Hà Lan)
Norsk (Na Uy)
Polski (Ba Lan)
Português (Tiếng Bồ Đào Nha - BĐN)
Português - Brasil (Bồ Đào Nha - Brazil)
Română (Rumani)
Русский (Nga)
Suomi (Phần Lan)
Svenska (Thụy Điển)
Türkçe (Thổ Nhĩ Kỳ)
Українська (Ukraine)
Báo cáo lỗi dịch thuật
SendMode Input
#singleInstance, force
SetTitleMatchMode, 3
#IfWinActive Counter-Strike 2
;offset pixels for triggerbot color search (1 pixel because sniper's scope takes up 1 pixel)
offsetX := 1
offsetY := 1
;triggerbot delay in ms
trigger_delay := 30
;color tolerance
tolerance := 10
key_shoot := "LButton"
key_pause_script := "RCtrl"
key_end_script := "End"
key_hold_trigger := "Insert"
autofire := false
previouslyCrouched := false
previouslyTrigger := false
lastColor := 0x000000
HotKey, *%key_shoot%, shoot
HotKey, *%key_pause_script%, pause_script
HotKey, *%key_end_script%, end_script
HotKey, *%key_hold_trigger%, hold_trigger
return
hold_trigger:
MouseGetPos, spotX, spotY
spotX := spotX + offsetX
spotY := spotY + offsetY
if(previouslyTrigger){
PixelGetColor, color, %spotX%, %spotY%, RGB
splitColor(color, r1, g1, b1)
splitColor(lastColor, r2, g2, b2)
if((r1 > r2 + tolerance || r1 < r2 - tolerance) || (g1 > g2 + tolerance || g1 < g2 - tolerance) || (b1 > b2 + tolerance || b1 < b2 - tolerance)){
Sleep %trigger_delay%
Random, tempRand, 30, 50
Click down
Sleep %tempRand%
Click up
}
lastColor := color
}else{
PixelGetColor, lastColor, %spotX%, %spotY%, RGB
previouslyTrigger := true
}
Sleep 20
}
previouslyTrigger := false
return
shoot:
if(autofire){
While GetKeyState(key_shoot, "P"){
Random, tempRand, 30, 50
Click down
Sleep %tempRand%
Click up
Sleep %tempRand%
}
}else{
Click down
KeyWait, %key_shoot%
Click up
}
return
pause_script:
Suspend
return
end_script:
ExitApp
return
splitColor(color, ByRef r, ByRef g, ByRef b)
{
r := color >> 16 & 0xFF
g := color >> 8 & 0xFF
b := color & 0xFF
}
ExitApp
return