if (direction >= 0 && direction <= 3)
{
this->player->character->Attack(direction);
}
Under ^^^^ Place this script VVVVVV
if (this->player->character->mapid == 5 && this->player->character->x == 40 && this->player->character->y == 47 || this->player->character->mapid == 5 && this->player->character->x == 41 && this->player->character->y == 46 ||
this->player->character->mapid == 5 && this->player->character->x == 42 && this->player->character->y == 47 || this->player->character->mapid == 5 && this->player->character->x == 41 && this->player->character->y == 48)
{
this->player->character->Attack(direction);
this->player->character->AddItem(440, 1);
reply.SetID(PACKET_ITEM, PACKET_GET);
reply.AddShort(0); // UID
reply.AddShort(440);
reply.AddThree(1);
reply.AddChar(this->player->character->weight);
reply.AddChar(this->player->character->maxweight);
CLIENT_SEND(reply);
}