use a filter
Code:
if(pack.Opcode == 0x7010)
{
byte act = pack.ReadByte();
if(act == teleportid || act == totownid)
{
string charname = pack.ReadAscii();
if(WearingJob(charname))
{
// return dc or do whatever you want :3
}
}
}
Code:
bool WearingJob(string charname)
{
/* run sql query check if slot 8 in inventory is not empty (ItemID is not 0) */
return true;
}