Rochaven

Initiate
Doesn't the command [grab or [loot come in Xanthos ? Family is doing champ spawns and fussing about having to pick up each single pile of gold, which sidenote ( i think is funny), However mama dont and if mama isnt happy, no one is happy =) Thinking i just need to find it and set to true maybe,{shoots in dark} ....... and i already see it coming............fire away HANK lol 😎
 
Your first suggestion nailed it on the head, just couldnt understand how a "criminalactionn" code could of been or is related to the CheckLoot error but i be dang, its tied in. Works great now, thanks for the help =)
 
Nissi I just saw this post- have you figured out the problems? The MOTD can be disabled not used or for both errors you should post in Script Support for more help 🙂
Edit for the operator error check the 2nd post here
http://www.runuo.com/community/threads/errors-in-xanthos-motd-cs.103289/

Thanks for the response, i could not figure it out, but found an alternative. I started using the MasterLooterBackpack, seems to do the job, just trying to figure some of the options out.
 
FYI: Xanthos was using an older version of code, and I think Flags used to be an Integer value, and was changed to ClientFlags, so the correct translation of his code was to change the integer to ClientFlags.None or whatever the correct value was to compare. Not looking at the actual code now, but it was something like that.
 
Some claim systems have a "claim all corpses" or "claim empty corpses" option setting. I admit I didn't look to see if this one includes that choice but that's usually the issue for claims "sometimes" working.
 
This is what I am seeing.
Polar Bear, it won't claim the corpse. Even though it is empty
1584809151905.png

Then on other MOB's it won't claim them with items on them. So I'm guessing it isn't related to the items on the corpse.
1584809370714.png
I'm a rookie at trying to decipher C# so that is why I'm stumped. Interesting though.

If anyone has any ideas it would be appreciated.
 
So it is this method

C#:
Expand Collapse Copy
        private static bool CorpseIsLootable( Mobile from, Corpse corpse, bool notify )
        {
            if ( null == corpse )
                return false;
            bool result = false;
            string notification = "";
            if ( corpse.Owner == from )
                notification = "You may not claim your own corpses.";
            else if ( corpse.Owner is PlayerMobile && !ClaimConfig.LootPlayers )
                notification = "You may not loot player corpses.";
            else
            {
                BaseCreature creature = corpse.Owner as BaseCreature;
                if ( null != creature && creature.IsBonded )
                    notification = "You may not loot the corpses of bonded pets.";
                else if ( null != creature && creature.Fame <= ClaimConfig.FreelyLootableFame )
                    result = true;
                else
                    result = corpse.CheckLoot( from ) && !( corpse.IsCriminalAction( from ) );
            }
            if ( false == result && notify )
            {
                from.PlaySound( 1074 );     // no
                from.SendMessage( notification );
            }
            return result;
        }

Did you change your ClaimConfig? Like lowered the FreelyLootableFame thing?
If not you should see if creature is even set, and not null. And dont you also get a notification with the "no!"?
 
Partially figured it out. It wasn't loading right. Still not claiming everything.

Any suggestions on how to debug it? I'm a noob on coding. Sounds like you have a ton of experience doing it.
 
Last edited:

Donations

Total amount
$50.00
Goal
$500.00

Shards

Back