/* [Ind/Hercules] */ struct packet_maptypeproperty2 { short PacketType; short type; struct { unsigned int party : 1; unsigned int guild : 1; unsigned int siege : 1; unsigned int mineffect : 1; unsigned int nolockon : 1; unsigned int countpk : 1; unsigned int nopartyformation : 1; unsigned int bg : 1; unsigned int noitemconsumption : 1; unsigned int usecart : 1; unsigned int summonstarmiracle : 1; unsigned int SpareBits : 15; } flag; }; void clif_maptypeproperty2(struct block_list *bl,enum send_target t) { #if PACKETVER >= 20130000 /* not entirely sure when this started */ // unsigned char buf[31]; // //// memset(buf, 0, sizeof(buf)); // WBUFW(buf,0)=0x99b; // WBUFW(buf,2)=0x28; // // WBUFB(buf,4) = 1; //party // WBUFB(buf,5) = 1; //guild // WBUFB(buf,6) = (map_flag_gvg2(bl->m))?1:1; //siege // WBUFB(buf,7) = 1; //mineffect // WBUFB(buf,8) = 1; //nolockon // WBUFB(buf,9) = (map[bl->m].flag.pvp)?1:1; //countpk // WBUFB(buf,10) = 1; //nopartyformation // WBUFB(buf,11) = (map[bl->m].flag.battleground)?1:1; //battleground // WBUFB(buf,12) = 1; //noitemconsumption // WBUFB(buf,13) = 1; //cart // WBUFB(buf,14) = 1; //summonstarmiracle // memset(buf+15, 0, 15); // // clif_send(buf,30,bl,t); struct packet_maptypeproperty2 p; p.PacketType = 0x99b; p.type = 0x28; p.flag.usecart = 1; p.flag.party = 1; p.flag.guild = 1; p.flag.siege = map_flag_gvg2(bl->m) ? 1: 0; p.flag.mineffect = 1; p.flag.nolockon = 0; p.flag.countpk = map[bl->m].flag.pvp ? 1 : 0; p.flag.nopartyformation = 0; p.flag.noitemconsumption = 0; p.flag.summonstarmiracle = 0; p.flag.bg = map[bl->m].flag.battleground ? 1 : 0; clif_send(&p,sizeof(p),bl,t); #endif }