Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Realm of the Mad God Hacks & Cheats › Realm of the Mad God Private Servers › Realm of the Mad God Private Servers Tutorials/Source Code › Loot Notifications!

Loot Notifications!

Posts 1–15 of 16 · Page 1 of 2
wycuhmi
wycuhmi
Loot Notifications!
heyo, so this tutorial will cover how to add loot notifications (works on fsod, nr-core, and maybe loe).

First in wServer/logic/loot/Loots.cs, Ctrl+F for "public class Loot", then inside of that class, add this code
Code:
 private static string[] notifItem = {
            "placeholder item",
            "placeholder item",
            "placeholder item"
};
now (also in Loots.cs), look for "public static void ShowBags", then inside of that void, add this code
Code:
if (notifItem.Contains(i.ObjectId))
                    foreach (var p in enemy.Owner.Players.Values)
                        p.SendHelp(owners[0].Name + " has just gotten (a): '"
+ i.ObjectId + "'!");
You can end off here, but if you want to use a color that isn't orange, go to wServer/realm/entities/player/Player.Chat.cs and add this code
Code:
public void SendNotif(string text)
        {
            _client.SendPacket(new Text()
            {
                BubbleTime = 0,
                NumStars = -1,
                Name = "<Notification>",
                Txt = text
                TextColor = 0x(hexcode)
            });
}
then go back to Loots.cs and change the p.SendHelp from the second instance of code to p.SendNotif

That's it, folks.
#1 · 7y ago
Demon
Demon
Quote Originally Posted by wycuhmi View Post
heyo, so this tutorial will cover how to add loot notifications (works on fsod, nr-core, and maybe loe).

First in wServer/logic/loot/Loots.cs, Ctrl+F for "public class Loot", then inside of that class, add this code
Code:
 private static string[] notifItem = {
            "placeholder item",
            "placeholder item",
            "placeholder item"
};
now (also in Loots.cs), look for "public static void ShowBags", then inside of that void, add this code
Code:
if (notifItem.Contains(i.ObjectId))
                    foreach (var p in enemy.Owner.Players.Values)
                        p.SendHelp(owners[0].Name + " has just gotten (a): '"
+ i.ObjectId + "'!");
You can end off here, but if you want to use a color that isn't orange, go to wServer/realm/entities/player/Player.Chat.cs and add this code
Code:
public void SendNotif(string text)
        {
            _client.SendPacket(new Text()
            {
                BubbleTime = 0,
                NumStars = -1,
                Name = "<Notification>",
                Txt = text
                TextColor = 0x(hexcode)
            });
}
then go back to Loots.cs and change the p.SendHelp from the second instance of code to p.SendNotif

That's it, folks.
Good job!

But instead of making a function for every notification type u can just make a base notification function to handle it:
Code:
public void SendNotification(string name, string text, int namecolor = 0xFFFFFF, int color = 0xFFFFFF)
etc
#2 · 7y ago
wycuhmi
wycuhmi
ah gotcha. thanks for your feedback!
#3 · 7y ago
wycuhmi
wycuhmi
bump //10chars
#4 · 7y ago
DE
dewewe1
now (also in Loots.cs), look for "public static void ShowBags", then inside of that void, add this code
Code:
-----------------------------------------------------------------------
if (notifItem.Contains(i.ObjectId))
foreach (var p in enemy.Owner.Players.Values)
p.SendHelp(owners[0].Name + " has just gotten (a): '"
+ i.ObjectId + "'!");
-----------------------------------------------------------------------
in loots.cs "public static void ShowBags" Dont Show up
#5 · 7y ago
SE
SeXZeFPS
Quote Originally Posted by dewewe1 View Post
now (also in Loots.cs), look for "public static void ShowBags", then inside of that void, add this code
Code:
-----------------------------------------------------------------------
if (notifItem.Contains(i.ObjectId))
foreach (var p in enemy.Owner.Players.Values)
p.SendHelp(owners[0].Name + " has just gotten (a): '"
+ i.ObjectId + "'!");
-----------------------------------------------------------------------
in loots.cs "public static void ShowBags" Dont Show up
It might just depends on what source that you have.
#6 · 7y ago
wycuhmi
wycuhmi
@dewewe1 what source are you using, i may be able to help you
#7 · 7y ago
MA
Magiertoasti
public static void ShowBags Dosent shows up
I am using Cakes Domain and in Loots.cs dosent is any thing like public static void ShowBags just private static void ShowBag(Enemy enemy, string[] owners, int bagType, Item[] items)
#8 · 7y ago
DE
dewewe1
Quote Originally Posted by Magiertoasti View Post
I am using Cakes Domain and in Loots.cs dosent is any thing like public static void ShowBags just private static void ShowBag(Enemy enemy, string[] owners, int bagType, Item[] items)
im also using cakes domain (fsod)
#9 · 7y ago
SE
SeXZeFPS
Quote Originally Posted by Magiertoasti View Post
I am using Cakes Domain and in Loots.cs dosent is any thing like public static void ShowBags just private static void ShowBag(Enemy enemy, string[] owners, int bagType, Item[] items)
It probably uses this in a for loop?
#10 · 7y ago
FlutterM4rk
FlutterM4rk
copy pasting valor code is just like lol
also, this is pretty inefficient as it does a foreach loop of all players in the world like 20 times when a boss dies, it's better to just queue messages and send them every 3rd tick, with a for loop instead of the foreach loop
#11 · 7y ago
Demon
Demon
Quote Originally Posted by FlutterM4rk View Post
copy pasting valor code is just like lol
also, this is pretty inefficient as it does a foreach loop of all players in the world like 20 times when a boss dies, it's better to just queue messages and send them every 3rd tick, with a for loop instead of the foreach loop
Valor must be a garbage source if it had that quality of code. And not really; qeueing messages is unnessary and could create delay; especially in each third itteration.

In general looping through 10-20 players a single world instance isn't even tasking for the program at all. Only thing you would need to be careful about would be more of the lower level things and how the are processed.
#12 · 7y ago
PH
philipovrell
Hello Mr!

I have a few Question!

Where can i find public static void ShowBags in Fsod source? i can't find it
#13 · 7y ago
DarknessRealmsPs
DarknessRealmsPs
Quote Originally Posted by wycuhmi View Post
heyo, so this tutorial will cover how to add loot notifications (works on fsod, nr-core, and maybe loe).

First in wServer/logic/loot/Loots.cs, Ctrl+F for "public class Loot", then inside of that class, add this code
Code:
 private static string[] notifItem = {
            "placeholder item",
            "placeholder item",
            "placeholder item"
};
now (also in Loots.cs), look for "public static void ShowBags", then inside of that void, add this code
Code:
if (notifItem.Contains(i.ObjectId))
                    foreach (var p in enemy.Owner.Players.Values)
                        p.SendHelp(owners[0].Name + " has just gotten (a): '"
+ i.ObjectId + "'!");
You can end off here, but if you want to use a color that isn't orange, go to wServer/realm/entities/player/Player.Chat.cs and add this code
Code:
public void SendNotif(string text)
        {
            _client.SendPacket(new Text()
            {
                BubbleTime = 0,
                NumStars = -1,
                Name = "<Notification>",
                Txt = text
                TextColor = 0x(hexcode)
            });
}
then go back to Loots.cs and change the p.SendHelp from the second instance of code to p.SendNotif

That's it, folks.
i got error in

public void SendNotif(string text)
{
_client.SendPacket(new Text()
{
BubbleTime = 0,
NumStars = -1,
Name = "<Notification>",
Txt = text
TextColor = 0x(hexcode)
});
}

SOURCE:FSOD
#14 · 7y ago
zylixel
zylixel
Quote Originally Posted by DarknessRealmsPs View Post
i got error in

public void SendNotif(string text)
{
_client.SendPacket(new Text()
{
BubbleTime = 0,
NumStars = -1,
Name = "<Notification>",
Txt = text
TextColor = 0x(hexcode)
});
}

SOURCE:FSOD

Have you tried changing the hexcode
#15 · 7y ago
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Similar Threads

  • Loot notifications?By Skatzi in Realm of the Mad God Help & Requests
    6Last post 13y ago
  • loot notificationBy recloud in Realm of the Mad God Help & Requests
    15Last post 12y ago
  • Realm Relay Loot NotifsBy Nisuxen in Realm of the Mad God Tutorials & Source Code
    13Last post 11y ago
  • [HEXED TO 16.2] RotMG In-Game Mod selector (new update) LOOT NOTIFICATIONSBy Mmozoc in Realm of the Mad God Hacks & Cheats
    56Last post 12y ago
  • Loot Notification HelpBy evilcitrus in Realm of the Mad God Help & Requests
    2Last post 12y ago

Tags for this Thread

None