This commit lands workaround on MM weight problem (V4 - server side assisted)
Overweight solution for bots (script part) - v4. TMWA change tmwa!284 (merged) must be merged BEFORE this MR.
Differences vs v3:
- Renamed per-character variable as suggested by @HoraK-FDF - seems to be more consistent.
Differences vs v2:
- Relies on server's provided MaxWeightOverride param to have fewer side effects. Most notably MaxWeight could get reset to its usual value on some cases like betsanc.
Differences vs v1:
- Would NOT do do anything unexpected on other servers unless configured.
- Allows "arbitrary" weight limits override, per nickname.
- Does NOT makes hardcoded assumptions on nick or weight anymore.
- Reusable for other trade bots if desired.
- Acts a bit like ACL, most of it done by server itself, doing nothing by default.
- Still oneliner ;)
Usage: @setvar MAXWEIGHT_OVERRIDE 0 10000000 ManaMarket Since its per-character variable, user must be online. This example sets limit to 10 tons for ManaMarket :)
Upd: relevant constants for scripts also added. Now puzzle looks complete on script side of things.
Edited by Hello TMW