greetings all - i figured it would be easier to write here instead of fiddling randomly...

i want to find out which mobiles on the server uses a specific body (e.g. body 45).

windows file search is useless since searching for content:"body = 45;" brings up all files with "body", "=", and "45;"

so i tried ingame using [global interface, but can't get the syntax right

[global interface where body == 45 doesnt work
[global interface where body = 45 doesnt work
[global interface where mobile body == 45 doesnt work
[global interface where mobile body = 45 doesnt work
[global interface where body == 0x2D doesnt work
[global interface where body = 0x2D doesnt work
[global interface where mobile body == 0x2Ddoesnt work
[global interface where mobile body = 0x2D doesnt work

even tried the above with "0x2D"

1596802970898.png


you can see what im trying to do, just no luck... anyone able to help?
 
Not sure of the staff command to do this but you can add something like this to an items ondoubleclick to activate the search and report back some details!

Code:
        public override void OnDoubleClick(Mobile from)
        {
            System.Collections.Generic.List<Mobile> getMob = new System.Collections.Generic.List<Mobile>();

            foreach (Mobile mobile in World.Mobiles.Values)
            {
                if (mobile.Body == 45)
                {
                    bool IsListed = false;

                    foreach (Mobile mob in getMob)
                    {
                        if (mob.Name == mobile.Name)
                            IsListed = true;
                    }

                    if (!IsListed)
                    {
                        from.SendMessage($"{mobile.Name} : {mobile.Map} : {mobile.Location}");
                        getMob.Add(mobile);
                     }
                }
            }
        }
 
Last edited by a moderator:
[global interface where mobile bodyvalue = 45
[global interface where mobile bodyvalue = 0x2D

Body is a class not an number. The ToString makes it look like just an number
 
Back