Resource icon

Custom Loot [No core modifications required] 1.0.0

No permission to download

What is this?

This is a very simple, easy to use way to add your customized loot to monsters in game.
Why is this different from other loot systems? It requires 0 core modifications, simply drag and drop.

Installation

Drag CustomLoot.cs into your Scripts/Custom/ folder.
Edit CustomLoot.cs with your custom loot.


Instructions

I have included 3 examples of possible loot scenarios in the file, but you can customize this in any way you want:
C#:
            //Add 1 gold to all horses.
            if (e.Creature is Horse)
            {
                e.Corpse.AddItem(new Gold(1));
            }
C#:
            if (e.Creature.Str > 300) //Is it a strong creature? ¯\_(ツ)_/¯
            {
                if (Server.RandomImpl.NextDouble() > 0.2) //~ 80% chance
                {
                    e.Corpse.AddItem(new BraceletOfHealth());
                }
            }
C#:
            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 Gold(100));
                }


If you need any help adding your loot/loot scenarios let me know here.
Author
Bittiez
Downloads
85
Views
1,396
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Bittiez

Back