viewing paste Unknown #5717 | Diff

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
void clif_maptypeproperty2(struct block_list *bl,enum send_target t) {
#if PACKETVER >= 20130000 /* not entirely sure when this started */
        uint8 buf[8];
 
        WBUFW(buf,0)=0x99b; //2
        WBUFW(buf,2)=0x28; //2
 
        WBUFB(buf,4) = RBUFB(buf,4)|0x01; //party
        WBUFB(buf,4) = RBUFB(buf,4)|0x02; //guild
        WBUFB(buf,4) = RBUFB(buf,4)|((map_flag_gvg2(bl->m))?0x04:0); //siege
        WBUFB(buf,4) = RBUFB(buf,4)|0x08; //mineffect
        WBUFB(buf,4) = RBUFB(buf,4)|0x10; //nolockon
        WBUFB(buf,4) = RBUFB(buf,4)|((map[bl->m].flag.pvp)?0x20:0); //countpk
        WBUFB(buf,4) = RBUFB(buf,4)|0; //nopartyformation
        WBUFB(buf,4) = RBUFB(buf,4)|((map[bl->m].flag.battleground)?0x80:0); //battleground
        //1
 
        WBUFB(buf,5) = RBUFB(buf,5)|0x01; //noitemconsumption
        WBUFB(buf,5) = RBUFB(buf,5)|0x02; //cart
        WBUFB(buf,5) = RBUFB(buf,5)|0x04; //summonstarmiracle
//      WBUFB(buf,5) = RBUFB(buf,5)|0x08; //sparebit[0]
//      WBUFB(buf,5) = RBUFB(buf,5)|0x10; //sparebit[1]
//      WBUFB(buf,5) = RBUFB(buf,5)|0x20; //sparebit[2]
//      WBUFB(buf,5) = RBUFB(buf,5)|0x40; //sparebit[3]
//      WBUFB(buf,5) = RBUFB(buf,5)|0x80; //sparebit[3]
        //1
 
        WBUFW(buf,6) = 0; //sparebit [5-15], + extra[4]
        //2
 
 
        ShowInfo("packetlen=%d,%d,%d\n",packet_len(0x99b),sizeof(buf));
        clif_send(buf,packet_len(0x99b),bl,t);
#endif
}
Viewed 423 times, submitted by lighta.