if (character_ptr->bounty > 0) { from->AddItem(1,character_ptr->bounty); PacketBuilder builder(PACKET_ITEM, PACKET_GET); builder.AddShort(0); builder.AddShort(1); builder.AddThree(character_ptr->bounty); builder.AddChar(from->weight); builder.AddChar(from->maxweight); from->player->client->SendBuilder(builder); std::string msgtext = from->name +" has claimed " + character_ptr->name + "'s bounty for " + util::to_string(character->bounty) + " coins!"; this->world->ServerMsg(msgtext); character_ptr->bounty = 0; }