Initial commit

This commit is contained in:
Ubuntu
2026-06-19 00:00:16 -04:00
commit 73701ff86e
7100 changed files with 1952988 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
using Server;
using Server.Items;
using Server.Mobiles;
namespace Bittiez.CustomLoot
{
public static class CustomLoot
{
public static void Initialize()
{
EventSink.CreatureDeath += EventSink_CreatureDeath;
}
private static void EventSink_CreatureDeath(CreatureDeathEventArgs e)
{
/*if (e.Creature == null) return;
//Add 1 gold to all horses.
if (e.Creature is Mongbat)
{
e.Corpse.AddItem(new Gold(1));
}*/
/* if (e.Creature.Str > 10000) //Is it a strong creature? ¯\_(ツ)_/¯
{
if (Server.RandomImpl.NextDouble() > 0.2) //~ 80% chance
{
e.Corpse.AddItem(new HertiageSovereign(100));
}
}
if (e.Killer != null)
if (e.Killer.LastKiller != e.Creature) //Did the player die to this creature? If not, lets give him a bonus
{
e.Corpse.AddItem(new HeritageSovereign(5));;
}*/
}
}
}