From 30280bc2797cc79abb19cb7ec905a1f5d9b22095 Mon Sep 17 00:00:00 2001 From: Boris Date: Sat, 10 May 2025 20:12:11 +0200 Subject: [PATCH] Next Update --- trucknim.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/trucknim.py b/trucknim.py index fca2064..a270645 100644 --- a/trucknim.py +++ b/trucknim.py @@ -73,6 +73,11 @@ powerBox_Y = 831 powerBox_Width = 65 powerBox_Heigth = 22 +min_shards = 3 +min_shards_for_kor_chat = 3 +isServer = False +serverString = '#1004' + foundTrucks = [] pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe' @@ -135,7 +140,7 @@ def share_Truck(count,isServer): if j == 0 and i == 1: clickShare(shareItem_X+shareOffset,shareItem_Y+shareOffset) continue - if j == 0 and i == 2 and count > 3: + if j == 0 and i == 2 and count >= min_shards_for_kor_chat: clickShare(shareItem_X+shareOffset,shareItem_Y+shareOffset) continue continue @@ -264,9 +269,12 @@ def analyse_static_Truck(foundTrucks): print(count) - if count > 2: + if isServer: + isServer = serverString in truckstring + + if count >= min_shards: #click(shareTruck_X,shareTruck_Y,True) - share_Truck(count,False) + share_Truck(count,isServer) time.sleep(0.5) keyboard.send('esc') time.sleep(1)