ScriptUO

Scripting Resources & Utilities => Stealth Client => Topic started by: GreyWalker on May 09, 2019, 01:05:43 PM

Title: Using scanner to get a list of corpses
Post by: GreyWalker on May 09, 2019, 01:05:43 PM
I'm trying to get a list of coprses around my player using the scanner.  ive looked at a few of the other C# scripts around on the site.
How do i find out what the ushort of a corpse is so I can add it into the corpse method i have below instead of 0x2805

Ive tried to use stealth to find objects and object types but these values change for ever corpse around my player.

I hope im making sense.

Code: [Select]
private void BtnLoot_Click(object sender, EventArgs e)
{
    var corpses = Scanner.Find(typeof(Corpse), 0x0, false);
}

[QuerySearch(new ushort[] { 0x2805 })]
public class Corpse : Item
{
       public Corpse(Serial serial)
            : base(serial)
        {
        }
}