Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

Read if creature is monster - that's working #192

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Place that code in creature.cs

public bool IsMonster
{
   get
   {
      int monsterid = client.Memory.ReadByte(address +
Addresses.Creature.DistanceId);
      if (monsterid >= 1074000000)
      {
         return true;
      }
      else
      {
         return false;
      }
   }
}

With that we can read if creature is monster and that works.

Original issue reported on code.google.com by muttd...@gmail.com on 20 Jan 2010 at 9:36

GoogleCodeExporter commented 9 years ago
That's not defect - enhancement - just forget to change.

Original comment by muttd...@gmail.com on 20 Jan 2010 at 9:36

GoogleCodeExporter commented 9 years ago
I tested it and it's not working. If you want know for sure use the 
CreatureLists
collection.

Original comment by brunodun...@gmail.com on 21 Jan 2010 at 3:42

GoogleCodeExporter commented 9 years ago

Original comment by ian320 on 17 Feb 2010 at 10:20