Repository navigation
Merge upstream auqw/Scripts Skua (74 commits) - #43
Merged
Merged
Conversation
SetClass() resolved the best solo/farm/dodge class from the pools, then immediately called Core.ReadCBO() again, which overwrote the resolved classes with the CBO values. Joe's class choices never took effect. Also fixed in CoreFarmerJoe: - ResolveClass kept the current class whenever it was a valid pool entry, so an early pick like Mage was never upgraded to Master Ranger, Scarlet Sorceress, Archfiend, etc. It now always takes the highest-priority owned class (pools are already ordered best-first). - The skip check only re-ran on level up, so classes acquired at level 100 (VHL, YnR, Dragon of Time...) were never selected. It now skips only when the resolved classes are unchanged. CoreBots.EquipClass: - using*Generic flags were captured once at script start, so a class set at runtime was ignored as "generic" if the CBO slot was Generic. They are now refreshed on each call. - The "already equipped" early return now also checks that the equipped class matches the slot's class name, so a runtime upgrade is equipped.
… SetClass - EquipClass skips only if the slot is generic, its class is actually worn, or the class isn't owned (re-equips after UseBossClass swaps, equips a class once it's acquired); dropped lastEquipTarget - SetClass skip also requires each resolved class to be owned and rank 10, so later acquisitions and interrupted rank-ups are retried. - IsGenericClass is public static and shared with FarmerJoe.
… CBO choices Caught a bug. In an earlier SetClass, Joe picked Master Ranger from the pool and stored it in Core.FarmClass. I unlocked Scarlet Sorceress, and SetClass ran again. ReadCBO left the slot alone, so Core.FarmClass still said “Master Ranger”. My ResolveClass treated that as a class I chose myself in CBO. So it printed that wrong hint and stayed on Master Ranger instead of upgrading.
After a disconnect the client restarts the script while it is still logging back in. SetOptions then saw the player logged out and stopped with the "Please log-in" message box. The message box blocks until someone clicks it, and the relogin that finishes a few seconds later finds the script "already running" and never starts it again: the bot sits idle until a human looks (an hour in the run that showed it). With auto relogin on, SetOptions now waits up to 2 minutes for the login (and 30 s for the world to load) before the existing message. Without auto relogin nothing changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up. The relogin wait now runs before the existing spirit-state loop, so a slow world load keeps that loop's own retry instead of a fixed 30 s wait, and SetOptions returns without the log-in message box when the script is being stopped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The client's relogin turns Bot.Options.AutoRelogin off while it retries (ScriptServers.Relogin/EnsureRelogin set it to false and restore it afterwards), and that is exactly when it restarts the script. On the next disconnect the wait was skipped and the script went straight to the "Please log-in" message box again: [14:25:33] (StopBot) Bot stopped due to Auto-Relogin failure. [14:25:49] (SetOptions) Please log-in before starting the bot. [14:26:00] [Relogin] Connected successfully to Artix. World loaded. [14:26:00] Script already running. The wait now runs whenever the player isn't logged in. Starting a script while logged out just gives the user 2 minutes to log in before the same message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A relogin attempt can look logged in when the script starts and fail seconds later. The wait ran before the load loop, so it was skipped; the loop then exited when the attempt failed and went straight to the message box: [15:17:44] (SetOptions) Bot Started [15:17:54] [Relogin] Attempt 1/5 failed on Artix. Watchdog aborting attempt. [15:17:54] (SetOptions) Please log-in before starting the bot. [15:18:02] [Relogin] Connected successfully to Artix. World loaded. The wait now sits right before the logged-out check and lasts until the player is both logged in and loaded (2 minutes at most). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Added Legion req skip
FarmerJoe: fix class selection never applying + EquipClass generic/skip fixes
Fix Forge Maleno null and membership handling, stop the Harvest Day merge runner between shops, and register the new orchestrator. Preserve the existing PowerShell FFDec extraction and leave CoreBots unchanged.
This reverts commit ff7113d.
Brings in upstream through 9a30b93 (Nov 8). CoreBots.cs takes upstream's IsGenericClass and generic-flag fix in EquipClass, and keeps the fork's inventory-only class lookup (7955ae8): AQW client 5.0 can't bank classes. The same rule replaces the bank lookups upstream's new code added to EquipClass's skip check and to CoreFarmerJoe's Settled and ResolveClass; those lines merged without a conflict. scripts.json is regenerated with `scripts_json.py sync --all`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This brings in 74 upstream commits, through
9a30b938b(Nov 8). It uses a real merge commit, like #40 and #42.Conflict resolutions
CoreBots.csEquipClass, 4 casesIsGenericClass, andusing*Genericonly blocks while the slot is genericBot.Inventory.Contains(7955ae8a9: AQW client 5.0 can't bank classes)scripts.jsonscripts_json.py checkpasses.Fork decisions restored without a conflict
Upstream's new code looked for classes in the bank again, and git merged it cleanly.
Not changed:
ResolveClass'spool.FirstOrDefault(x => Core.CheckInventory(x))is the fork's existing line.BankAllUnusedClassesandTools/BankAllClasses.csstay deleted.inPublicRoom()now always returnstrue(ee96156a5), soBot.Map.Jumpalways autocorrects. The fork had no change there, so it's taken as is.Evidence
The one failure exists before this merge too: the file fails the same way on
origin/Skua, because it uses Windows-onlySystem.Windows.Forms. Not run on a Skua Engine.Merge Danger
Door: two-way
Merge it as a merge commit, not a squash, so the next sync gets the right base.
Blast Radius: wide
CoreBots.csandCoreStory.csare shared by many Scripts.EquipClass, the login wait inSetOptionsandinPublicRoom()changed the most.Reviewed with sol-loop: 1 round with openai/gpt-6.1-sol on high. Sol verdict: approved
🤖 Generated with Claude Code