Fork of upstream mod-guildfunds with local fixes for the Mythica playerbots server.
Find a file
Claude d114e665be
fix: guard the group-loot division by zero
OnLootMoney counts group members within loot reward distance, then divides
gold by that count with no guard. If no member passes the distance check the
count stays 0 and the division raises SIGFPE, taking worldserver down. The
looter normally counts themselves so this is a latent rather than live bug,
but the guard is free.

Also hoists the LootMultiplier check above the member loop, which skips the
whole walk when the module is configured off, and drops the now-redundant
second test in the solo branch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019vTNrJGsprcjdjjjDJD5ZM
2026-09-03 17:21:13 +00:00
.github delete workflows 2024-09-17 16:48:19 -03:00
conf chore. Compatibility with the latest version of the emulator 2024-09-13 23:54:12 -03:00
src fix: guard the group-loot division by zero 2026-09-03 17:21:13 +00:00
include.sh chore. Compatibility with the latest version of the emulator 2024-09-13 23:54:12 -03:00
LICENSE Initial commit 2022-08-03 13:07:47 +02:00
README.md chore. Compatibility with the latest version of the emulator 2024-09-13 23:54:12 -03:00

Features

This module will deposit a certain percentage of money obtained from quests and money looted into the guild bank.

It will not take money from the player, it will just add a bonus to the guild bank.