From 725875a4244f036bb1e40d646eb7ae7587a27166 Mon Sep 17 00:00:00 2001 From: haunter Date: Fri, 24 Apr 2026 21:59:02 +0300 Subject: [PATCH] fix 4 --- GrepolisRemoteControl.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GrepolisRemoteControl.user.js b/GrepolisRemoteControl.user.js index f27bd63..446b582 100644 --- a/GrepolisRemoteControl.user.js +++ b/GrepolisRemoteControl.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Grepolis Remote Control // @namespace http://tampermonkey.net/ -// @version 3.6.4 +// @version 3.6.5 // @description Polls grepo.haunter-pets.top for remote commands and executes them in-game (Multi-Player) // @author Dimitrios // @match https://*.grepolis.com/game/* @@ -817,10 +817,10 @@ // Auto Bandit Camp: if enabled, attack/claim when ready if (farmSettings.bandit_camp_enabled) { try { - const player_id = uw.Game?.player_id; + // player_id already declared above in pollAndExecute scope const currentTownId = uw.Game?.town_id; if (!player_id || !currentTownId) { - log('⚔️ Bandit Camp: No player_id or town_id found in Game globals.'); + log(`⚔️ Bandit Camp: Missing globals — player_id=${player_id} town_id=${currentTownId}`); } else { // Build hash param — it's embedded in the page URL or game globals const hash = uw.Game?.csrf_token || uw.Game?.h || uw.Game?.hash || '';