Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int acsid = this->map->world->accesory_config["GoldPickupId"];
- int iks;
- int igrek;
- if(this->map->world->eif->Get(from->paperdoll[Character::Accessory]).id == acsid){
- if(dropid == 1){
- iks = 1;
- igrek = 1;
- PacketBuilder reply(PACKET_ITEM, PACKET_GET);
- reply.AddShort(dropuid); // UID
- reply.AddShort(1);
- reply.AddThree(dropamount);
- reply.AddChar(from->weight);
- reply.AddChar(from->maxweight);
- character->Send(reply);
- }
- }else{
- iks = this->x;
- igrek = this->y;
- }
- builder.AddShort(drop_winner ? drop_winner->PlayerID() : from->PlayerID());
- builder.AddChar(drop_winner ? drop_winner->direction : from->direction);
- builder.AddShort(this->index);
- builder.AddShort(dropuid);
- builder.AddShort(dropid);
- builder.AddChar(iks);
- builder.AddChar(igrek);
- builder.AddInt(dropamount);
- builder.AddThree(amount);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement