Server
Server copied to clipboard
[Loot] Add #lootsim (Loot Simulator) command
Implemented #lootsim command to simulate running loot benchmarks using live loot table data, using the actual loot logic
#lootsim [npc_type_id] [loottable_id] [iterations] [loot_log_enabled=0]
The simulator will spawn an NPC, run X specified iterations of loot runs against the NPC and print the results in a table afterwards.
Loot logging gets disabled unless otherwise specified because it can be very spammy if you don't for larger samples.
Iterations are clamped to 1k otherwise it takes so long the zone process can hang and your client can disconnect.
Example Output In Game

Full Example With Global Loot
[Sun Aug 14 00:36:55 2022] You say, '#lootsim 1001 10664 1000'
[Sun Aug 14 00:36:55 2022] ------------------------------------------------
[Sun Aug 14 00:36:55 2022] # [Loot Simulator] NPC [Guard Mezzt] (1001) Loot Table ID [10664] Dropped Items [3034] iterations [1000]
[Sun Aug 14 00:36:55 2022] ------------------------------------------------
[Sun Aug 14 00:36:55 2022] # Lootdrop ID [17527] drop_limit [2] min_drop [2] mult [1] probability [100]
[Sun Aug 14 00:36:55 2022] -- [0] item_id [68637] chance [5] rolled_count [102] (10.20%) name [Blood-Glazed Helm]
[Sun Aug 14 00:36:55 2022] -- [1] item_id [68638] chance [5] rolled_count [97] (9.70%) name [Hex-Linked Helm]
[Sun Aug 14 00:36:55 2022] -- [2] item_id [68639] chance [5] rolled_count [101] (10.10%) name [Ikaav-Scale Sleeves]
[Sun Aug 14 00:36:55 2022] -- [3] item_id [68640] chance [5] rolled_count [99] (9.90%) name [Scarified Ukun-Skin Sleeves]
[Sun Aug 14 00:36:55 2022] -- [4] item_id [68641] chance [5] rolled_count [102] (10.20%) name [Blood-Glazed Bracer]
[Sun Aug 14 00:36:55 2022] -- [5] item_id [68642] chance [5] rolled_count [79] (7.90%) name [Hex-Linked Bracer]
[Sun Aug 14 00:36:55 2022] -- [6] item_id [68643] chance [5] rolled_count [97] (9.70%) name [Ikaav-Scale Gloves]
[Sun Aug 14 00:36:55 2022] -- [7] item_id [68644] chance [5] rolled_count [115] (11.50%) name [Scarified Ukun-Skin Gloves]
[Sun Aug 14 00:36:55 2022] -- [8] item_id [68645] chance [5] rolled_count [112] (11.20%) name [Blood-Glazed Boots]
[Sun Aug 14 00:36:55 2022] -- [9] item_id [68646] chance [5] rolled_count [111] (11.10%) name [Hex-Linked Boots]
[Sun Aug 14 00:36:55 2022] -- [10] item_id [68647] chance [5] rolled_count [106] (10.60%) name [Aneuk Contemplation Skull]
[Sun Aug 14 00:36:55 2022] -- [11] item_id [68648] chance [5] rolled_count [105] (10.50%) name [Stone of Pure Discord]
[Sun Aug 14 00:36:55 2022] -- [12] item_id [68649] chance [5] rolled_count [96] (9.60%) name [Weighted War Cloak]
[Sun Aug 14 00:36:55 2022] -- [13] item_id [68650] chance [5] rolled_count [99] (9.90%) name [Ikaav-Scale Cape]
[Sun Aug 14 00:36:55 2022] -- [14] item_id [68651] chance [5] rolled_count [106] (10.60%) name [Transparent Aneuk Mask]
[Sun Aug 14 00:36:55 2022] -- [15] item_id [68652] chance [5] rolled_count [105] (10.50%) name [Veil of Scars]
[Sun Aug 14 00:36:55 2022] -- [16] item_id [68653] chance [4] rolled_count [59] (5.90%) name [Blood-Glazed Collar]
[Sun Aug 14 00:36:55 2022] -- [17] item_id [68654] chance [4] rolled_count [67] (6.70%) name [Ikaav-Scale Collar]
[Sun Aug 14 00:36:55 2022] -- [18] item_id [68656] chance [4] rolled_count [83] (8.30%) name [Scarified Ukun-Skin Shawl]
[Sun Aug 14 00:36:55 2022] -- [19] item_id [68658] chance [4] rolled_count [77] (7.70%) name [Bonecast Rod]
[Sun Aug 14 00:36:55 2022] -- [20] item_id [68660] chance [4] rolled_count [82] (8.20%) name [Muramite Fife of Battle]
[Sun Aug 14 00:36:55 2022] # Lootdrop ID [90443] drop_limit [1] min_drop [0] mult [1] probability [100]
[Sun Aug 14 00:36:55 2022] -- [0] item_id [67586] chance [2] rolled_count [20] (2.00%) name [Ikaav Tongue]
[Sun Aug 14 00:36:55 2022] # Lootdrop ID [91024] drop_limit [1] min_drop [0] mult [1] probability [100]
[Sun Aug 14 00:36:55 2022] -- [0] item_id [67703] chance [100] rolled_count [1000] (100.00%) name [Xounii's Journal Page 2 Right Half]
[Sun Aug 14 00:36:55 2022] ------------------------------------------------
[Sun Aug 14 00:36:55 2022] # [Loot Simulator] Global Loot
[Sun Aug 14 00:36:55 2022] ------------------------------------------------
[Sun Aug 14 00:36:55 2022] # Global Loot Table ID [110209]
[Sun Aug 14 00:36:55 2022] ------------------------------------------------
[Sun Aug 14 00:36:55 2022] # Lootdrop ID [176432] drop_limit [0] min_drop [1] mult [1] probability [2]
[Sun Aug 14 00:36:55 2022] -- [0] item_id [50005] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Plate Bracer]
[Sun Aug 14 00:36:55 2022] -- [1] item_id [50006] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Plate Gauntlets]
[Sun Aug 14 00:36:55 2022] -- [2] item_id [50007] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Plate Boots]
[Sun Aug 14 00:36:55 2022] -- [3] item_id [50008] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Plate Helm]
[Sun Aug 14 00:36:55 2022] -- [4] item_id [50009] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Plate Vambraces]
[Sun Aug 14 00:36:55 2022] -- [5] item_id [50010] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Plate Greaves]
[Sun Aug 14 00:36:55 2022] -- [6] item_id [50011] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Breastplate]
[Sun Aug 14 00:36:55 2022] -- [7] item_id [50012] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Chain Bracer]
[Sun Aug 14 00:36:55 2022] -- [8] item_id [50013] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Chain Gauntlets]
[Sun Aug 14 00:36:55 2022] -- [9] item_id [50014] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Chain Boots]
[Sun Aug 14 00:36:55 2022] -- [10] item_id [50015] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Chain Coif]
[Sun Aug 14 00:36:55 2022] -- [11] item_id [50016] chance [1] rolled_count [1] (0.10%) name [Crude Defiant Chain Sleeves]
[Sun Aug 14 00:36:55 2022] -- [12] item_id [50017] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Chain Leggings]
[Sun Aug 14 00:36:55 2022] -- [13] item_id [50018] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Chain Tunic]
[Sun Aug 14 00:36:55 2022] -- [14] item_id [50019] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Leather Bracer]
[Sun Aug 14 00:36:55 2022] -- [15] item_id [50020] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Leather Gloves]
[Sun Aug 14 00:36:55 2022] -- [16] item_id [50021] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Leather Boots]
[Sun Aug 14 00:36:55 2022] -- [17] item_id [50022] chance [1] rolled_count [1] (0.10%) name [Crude Defiant Leather Cap]
[Sun Aug 14 00:36:55 2022] -- [18] item_id [50023] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Leather Sleeves]
[Sun Aug 14 00:36:55 2022] -- [19] item_id [50024] chance [1] rolled_count [1] (0.10%) name [Crude Defiant Leather Trousers]
[Sun Aug 14 00:36:55 2022] -- [20] item_id [50025] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Leather Tunic]
[Sun Aug 14 00:36:55 2022] -- [21] item_id [50026] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Cloth Wristwrap]
[Sun Aug 14 00:36:55 2022] -- [22] item_id [50027] chance [1] rolled_count [1] (0.10%) name [Crude Defiant Cloth Gloves]
[Sun Aug 14 00:36:55 2022] -- [23] item_id [50028] chance [1] rolled_count [3] (0.30%) name [Crude Defiant Cloth Sandals]
[Sun Aug 14 00:36:55 2022] -- [24] item_id [50029] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Cloth Cap]
[Sun Aug 14 00:36:55 2022] -- [25] item_id [50030] chance [1] rolled_count [2] (0.20%) name [Crude Defiant Cloth Sleeves]
[Sun Aug 14 00:36:55 2022] -- [26] item_id [50031] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Cloth Pantaloons]
[Sun Aug 14 00:36:55 2022] -- [27] item_id [50032] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Cloth Robe]
[Sun Aug 14 00:36:55 2022] -- [28] item_id [50304] chance [1] rolled_count [0] (0.00%) name [Crude Combatant's Shoulderpads]
[Sun Aug 14 00:36:55 2022] -- [29] item_id [50305] chance [1] rolled_count [0] (0.00%) name [Crude Combatant's Cloak]
[Sun Aug 14 00:36:55 2022] -- [30] item_id [50306] chance [1] rolled_count [0] (0.00%) name [Crude Combatant's Shovel]
[Sun Aug 14 00:36:55 2022] -- [31] item_id [50309] chance [1] rolled_count [0] (0.00%) name [Crude Combatant's Belt]
[Sun Aug 14 00:36:55 2022] -- [32] item_id [50314] chance [1] rolled_count [0] (0.00%) name [Crude Adept's Mantle]
[Sun Aug 14 00:36:55 2022] -- [33] item_id [50315] chance [1] rolled_count [0] (0.00%) name [Crude Adept's Cloak]
[Sun Aug 14 00:36:55 2022] -- [34] item_id [50316] chance [1] rolled_count [0] (0.00%) name [Crude Adept's Broom]
[Sun Aug 14 00:36:55 2022] -- [35] item_id [50319] chance [1] rolled_count [0] (0.00%) name [Crude Adept's Cord]
[Sun Aug 14 00:36:55 2022] -- [36] item_id [50500] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Amethyst]
[Sun Aug 14 00:36:55 2022] -- [37] item_id [50501] chance [1] rolled_count [1] (0.10%) name [Crude Defiant Emerald]
[Sun Aug 14 00:36:55 2022] -- [38] item_id [50502] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Ruby Shard]
[Sun Aug 14 00:36:55 2022] -- [39] item_id [50503] chance [1] rolled_count [2] (0.20%) name [Crude Defiant Granite Pebble]
[Sun Aug 14 00:36:55 2022] -- [40] item_id [50504] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Stone Fragment]
[Sun Aug 14 00:36:55 2022] -- [41] item_id [50505] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Turquoise]
[Sun Aug 14 00:36:55 2022] -- [42] item_id [50506] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Mace]
[Sun Aug 14 00:36:55 2022] -- [43] item_id [50507] chance [1] rolled_count [1] (0.10%) name [Crude Defiant Club]
[Sun Aug 14 00:36:55 2022] -- [44] item_id [50508] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Shortsword]
[Sun Aug 14 00:36:55 2022] -- [45] item_id [50509] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Axe]
[Sun Aug 14 00:36:55 2022] -- [46] item_id [50510] chance [1] rolled_count [1] (0.10%) name [Crude Defiant Dagger]
[Sun Aug 14 00:36:55 2022] -- [47] item_id [50511] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Spear]
[Sun Aug 14 00:36:55 2022] -- [48] item_id [50512] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Fists]
[Sun Aug 14 00:36:55 2022] -- [49] item_id [50513] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Quarterstaff]
[Sun Aug 14 00:36:55 2022] -- [50] item_id [50514] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Greatspear]
[Sun Aug 14 00:36:55 2022] -- [51] item_id [50515] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Greatsword]
[Sun Aug 14 00:36:55 2022] -- [52] item_id [50516] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Bow]
[Sun Aug 14 00:36:55 2022] -- [53] item_id [50517] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Spiked Shield]
[Sun Aug 14 00:36:55 2022] -- [54] item_id [50518] chance [1] rolled_count [0] (0.00%) name [Crude Defiant Buckler]
[Sun Aug 14 00:36:55 2022] ------------------------------------------------
[Sun Aug 14 00:36:55 2022] # Global Loot Benchmark End [1000] iterations took [0.560115](s)
[Sun Aug 14 00:36:55 2022] ------------------------------------------------