Author Topic: Using scanner to get a list of corpses  (Read 3753 times)

0 Members and 1 Guest are viewing this topic.

Offline GreyWalkerTopic starter

  • Newbie
  • *
  • Posts: 5
  • Activity:
    0%
  • Reputation Power: 1
  • GreyWalker has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Using scanner to get a list of corpses
« on: May 09, 2019, 01:05:43 PM »
0
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)
        {
        }
}
« Last Edit: May 09, 2019, 02:01:05 PM by GreyWalker »

Tags: