From 43bf4d6d3b9252017a34e197ceea6f647a30c3de Mon Sep 17 00:00:00 2001 From: "Hello=)" Date: Sun, 14 Jul 2024 14:49:39 +0300 Subject: This commit lands workaround on MM weight problem. Naive approach using stats failed. But even more direct way works. This sets MaxWeight on MM login to 10 000 000 aka 10 000 kg aka 10 tons. I think 10 tons "should be enough for everyone". I've actually tested it works by heavily loading ManaMarket replica on local server with itens. --- world/map/npc/functions/global_event_handler.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/world/map/npc/functions/global_event_handler.txt b/world/map/npc/functions/global_event_handler.txt index 5274fa05..6664da36 100644 --- a/world/map/npc/functions/global_event_handler.txt +++ b/world/map/npc/functions/global_event_handler.txt @@ -20,6 +20,7 @@ OnPCLoginEvent: callfunc "VaultLogin"; // Mirror Lake Protocol biddings callfunc "VaultLogout"; // Clean some stuff, to be safe // add more here + if (strcharinfo(0, BL_ID) == "ManaMarket") set MaxWeight, 10000000; // Let ManaMarket bot to carry 10 tons set @login_event, 2; end; -- cgit v1.2.3-70-g09d2