Advertisement
Guest User

Untitled

a guest
May 29th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. int acsid = this->map->world->accesory_config["GoldPickupId"];
  2. int iks;
  3. int igrek;
  4. if(this->map->world->eif->Get(from->paperdoll[Character::Accessory]).id == acsid){
  5. if(dropid == 1){
  6. iks = 1;
  7. igrek = 1;
  8. PacketBuilder reply(PACKET_ITEM, PACKET_GET);
  9. reply.AddShort(dropuid); // UID
  10. reply.AddShort(1);
  11. reply.AddThree(dropamount);
  12. reply.AddChar(from->weight);
  13. reply.AddChar(from->maxweight);
  14. character->Send(reply);
  15. }
  16. }else{
  17. iks = this->x;
  18. igrek = this->y;
  19. }
  20. builder.AddShort(drop_winner ? drop_winner->PlayerID() : from->PlayerID());
  21. builder.AddChar(drop_winner ? drop_winner->direction : from->direction);
  22. builder.AddShort(this->index);
  23. builder.AddShort(dropuid);
  24. builder.AddShort(dropid);
  25. builder.AddChar(iks);
  26. builder.AddChar(igrek);
  27. builder.AddInt(dropamount);
  28. builder.AddThree(amount);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement