Quote:
Originally Posted by theminkman
I can fix it for $, contact me on Discord
|
Stop asking for money, this is questioning section, not a black market. It ain't even that hard to pay for...
Code:
// S->C
if (packet.Opcode == 0x30C8)
{
UInt32 COSUniqueID = _pck.ReadUInt32();
int RefItemID = _pck.ReadInt32();
this.PetsSummoned++;
}
else if (packet.Opcode == 0x30C8)
{
UInt32 COSUniqueID = _pck.ReadUInt32();
byte flag = _pck.ReadUInt8();
if (flag == 1)
{
this.PetsSummoned--;
}
}
// C->S
if (packet.Opcode == 0x70B1)
{
if (this.PetsSummoned > 0)
{
this.SendNotice("You cannot open a stall while having pets summoned.");
continue;
}
}
You can even make it pet-type-dependent, but you will need item and character data at your filter to check.