From d6c2252f5c3c30cdb531227867414861ccfb434d Mon Sep 17 00:00:00 2001 From: haunter Date: Fri, 1 May 2026 17:50:39 +0300 Subject: [PATCH] stash reward fix 2 --- bot_modules/04c_execute_bootcamp_trade.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot_modules/04c_execute_bootcamp_trade.js b/bot_modules/04c_execute_bootcamp_trade.js index 42c94b7..57d6f73 100644 --- a/bot_modules/04c_execute_bootcamp_trade.js +++ b/bot_modules/04c_execute_bootcamp_trade.js @@ -74,8 +74,10 @@ async function autoBootcampLoop() { action_name: 'stashReward', arguments: {} }, 0, { + success: () => { + botLog(player_id, 'bootcamp', `Reward stashed: ${reward.power_id}`); + }, error: () => { - // If stash fails (e.g. inventory is full), fall back to using it immediately uw.gpAjax.ajaxPost('frontend_bridge', 'execute', { model_url: `PlayerAttackSpot/${player_id}`, action_name: 'useReward', @@ -84,7 +86,6 @@ async function autoBootcampLoop() { botLog(player_id, 'bootcamp', `Reward used (inventory full fallback): ${reward.power_id}`); } }); - await botLog(player_id, 'bootcamp', `Reward stashed: ${reward.power_id}`); } else { uw.gpAjax.ajaxPost('frontend_bridge', 'execute', { model_url: `PlayerAttackSpot/${player_id}`,