Hello guys. I want to create another clif_disp_overhead for decreasing distance to 2 cells with a command. (For whisper in roleplaying server, I am looking for a @me command, wich can be heard only in 2 blocks around)
I have no error in compilation, but it doesn't work in the game... Doesn't respect distances.
why that source code doesn't work?
I think here is the problem in AREA_CHAT_SU, but.... i don't know why, the AREA_SIZE of the chat is -1
case AREA_CHAT_SU: map->foreachinarea(clif->send_sub, bl->m, bl->x-(AREA_SIZE-1), bl->y-(AREA_SIZE-1), bl->x+(AREA_SIZE-1), bl->y+(AREA_SIZE-1), BL_PC, buf, len, bl, AREA_CHAT); case AREA_CHAT: map->foreachinarea(clif->send_sub, bl->m, bl->x-AREA_SIZE, bl->y-AREA_SIZE, bl->x+AREA_SIZE, bl->y+AREA_SIZE, BL_PC, buf, len, bl, type); break;
Sorry for my bad english