im working on a servuo as im sure you've seen me post for a little help now n then,,
i had a thought im going to play with later but id like to know if anyone else has tried or think its possible,
i want a couple monsters to be able to loot corpses weather it be player or other npc bodies.
i know they can rummage corpses but iv not seen them actually loot or take items from bodies
just for something different of an idea
thanks guys
 
Any time you see the "rummages" text they are stealing an item. It's a random item, not always the most valuable, but sometimes they'll make off with your best gear if it wasn't blessed or insured.
 
Hmm I have seen once or two it (rummage) but didn't see any items taken from a corpse will look into it more maybe find away for it to rummage more
 
It's in BaseCreature.cs

This section will be of interest to you:

Code:
        private static bool EnableRummaging = true;

        private const double ChanceToRummage = 0.5; // 50%

        private const double MinutesToNextRummageMin = 1.0;
        private const double MinutesToNextRummageMax = 4.0;

        private const double MinutesToNextChanceMin = 0.25;
        private const double MinutesToNextChanceMax = 0.75;

        private long m_NextRummageTime;

The actual rummaging happens in the section that starts with

Code:
        public virtual bool Rummage()
 
Thanks falkor you're a legand will look at it in a few
Post automatically merged:

i looked into this and tested this a few different ways i removed any insurance items not blessed now i see it looks like his looting or rummaging but nothing gets taken from the corpses :( ill keep working on it :D
 
Last edited:
Back