#Loot Roll System (Updated for V0.2)

1 messages · Page 1 of 1 (latest)

plain canopy
#

https://github.com/Reckimus/Loot-Roll-System
Need/Greed Roll System for Erenshor
A BepInEx mod that adds a World of Warcraft–style Need/Greed/Pass loot roll to Erenshor.
When a loot window opens and you’re in a group, everyone (player + Sim party members) rolls.
The winner automatically receives the item; corpses are cleaned up so you can’t re‑loot.

Features
⚖️ Need / Greed / Pass UI (N, G, P keys – 15s timeout → Greed).
🤖 Auto rolls for Sims (upgrade-aware; optional loot rules). (Fallback injects directly into Sim inventory if their bags are “full”.)
🧹 Corpse cleanup: Items removed from loot window/corpse after award.
🗣️ Sim chatter: Random win/lose lines.
📏 LootRules system: force pass on junk, need on upgrades, can‑use checks, stat-based upgrades.
Installation
Install BepInEx 5 (x64) in your Erenshor folder (same place as Erenshor.exe).
Drop the compiled LootRoll.dll in Bepinex/Plugins Folder

GitHub

Need before Greed Rolling. Contribute to Reckimus/Loot-Roll-System development by creating an account on GitHub.

faint moat
#

Omg thank you for this! I love it!

rigid atlas
#

How do you set the optional loot rules? Right now, we have to roll on every single item that drops. Would also be nice to have it add items to existing stacks in your bag

plain canopy
#

I plan to update and expand it much further once brian releases the next big update , cause the trash items passing defaulting to player auto looting also annoys me

knotty grotto
#
Stack trace:
NeedGreed.RollManager.IsGrouped () (at <10f52b8edd944b2387a8ba3a480eec14>:0)
NeedGreed.RollManager.EnqueueRolls (System.Collections.Generic.List`1[T] slots, LootWindow wnd, LootTable table) (at <10f52b8edd944b2387a8ba3a480eec14>:0)
NeedGreed.Patch_LootWindow_LoadWindow.Postfix (LootWindow __instance, System.Collections.Generic.List`1[T] LootItems, LootTable _incoming) (at <10f52b8edd944b2387a8ba3a480eec14>:0)
(wrapper dynamic-method) LootWindow.DMD<LootWindow::LoadWindow>(LootWindow,System.Collections.Generic.List`1<Item>,LootTable)
LootTable.LoadLootTable () (at <e75a28fc50484f0683f70636d7ed896a>:0)
LootManager.Autoloot.Postfix (Character __instance) (at <9f1cedd82ca4431fbe1d38ac9f938446>:0)
(wrapper dynamic-method) Character.DMD<Character::DoDeath>(Character)
Character.Update () (at <e75a28fc50484f0683f70636d7ed896a>:0)```

Getting this error, don't really understand but is it because there was a new class added to the game?
blissful horizon
#

yes

plain canopy
#

Hasn't been updated for 02 yet

#

Kid visiting colleges for tours so time has been limited lately

knotty grotto
#

No worries, idea seemed really cool honestly so just wanted to give it a go. Feels like a much better system than having to check your sims if you've got any gear upgrades for them etc

plain canopy
#

Will try and do a full sweep this week and get everything not currently updated , updated for current version

knotty grotto
#

That'd be amazing, no pressure though. Only bought the game yesterday and blasting through it

plain canopy
knotty grotto
plain canopy
#

gearing is still up to them and player to select. rewrite is alot more lightweight than previous version but will be slowly updated over next week or two as time allows

knotty grotto
#

So they can decide to need it and then just not wear it if they win? Oh man this feels like I'm back in wow

#

😂

#

so what actually happens to the loot if they decide not to equip it? this person just won a funeral garb, looks like an upgrade for them but it just poofs

plain canopy
#

gasp it seems it did not save to the Simplayers item list. Ill fix that real quick (hopefully) let me get some duct tape

#

Ahhh my B i see what i did wrong, i saved to their StoredItemList and not the HeldItemList so it wasnt saving to the SimPlayerSaveData

knotty grotto
#

hahah that explains it, thought I was checking the wrong sims or slots lmao

plain canopy
#

most my sims are fairly bis so hard to get them to change items on their own

knotty grotto
#

yeah ofc gimme a min

plain canopy
#

Loot Roll System (Updated for V0.2)

knotty grotto
#

can confirm goes into storage now, awesome 😄

shadow tide
#

Sweet!

#

Looks like loot manager addon loots everything too fast, it gives me everything before this mod has a chance to roll on it. If a simplayer wins it I still get to keep it

knotty grotto
#

Yeah had the same issue, I stopped auto looting and seems to work fine

#

Not sure if it's intended to be this way btw but the sims seem to always roll the same, either all pass/greed/need, so someone who can't even wear it can win it

plain canopy
#

atm its intended. As most players in a mmo just greed everything and need on what they really want. but its still being tweaked

plain canopy
lost warren
#

sims still seem to be rolling need for some things they can't use / aren't upgrades. is this intended?

ashen herald
#

anytime i try to move the UI it flies off the screen

#

you gotta like slowly but steadily move it because of the way the game is coded with LMB for camera control

#

would love a button to reset the UI

#

or atleast be able to configure the default UI location with X Y Z

plain canopy
#

Are u moving it by the top header like you would a web browser or center of ui

#

I ll readjust it to just disable camera controls when mouse over tho

ashen herald
#

top header

ashen herald
#

ngl this mod should just be built into the game its annoying to have to give ur sim players items

#

but the mod is also unusable because i cant compare equipment due to the thing being in the way i play on a 1920x1080 display

willow elm
#

Only if we could still set it back to master loot - I do not want to re-live the trauma of WoWs need/greed system with PuGs 😅

vapid hull
#

Sims literally ninja loot your ass since they always 'need' an item that is an "upgrade" even if they cannot equip said item.

ashen herald
#

if the mod was just built into the game and the Can Equip = true and is better = true then need otherwise greed or pass

#

Ill come back to this game once this system is properly integrated into the game

#

i wanna play the best version possible of erenshor

valid ferry
#

The window keeps on disappearing can’t figure out how to get it back

plain canopy
#

Ill try to take a look at this week. Im sure some of the more recent updates have broken the loot windowing

crude karma
#

@plain canopy There has been some significant improvements on loot distribution in playtest. Check that out before you do anything with mod. Might change some things for this mod

plain canopy
#

Ive been trying to push things off til raids were full released but I should prolly start doing small updates so I dont get overwhelmed trying to do everything all at once