Another clif_disp_overhead but decreasing range

Waken

New member
Messages
52
Points
0
Age
30
Location
Barcelona
Discord
ωαкεη#4242
Github
waken22
Emulator
Client Version
20150513
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 
default_laugh.png

 
Last edited by a moderator:
Change (AREA_SIZE-1) to (AREA_SIZE-12)

 
its better to use foreachinrange instead of foreachinarea in this case

foreachinrange can be set by any number instead of the default AREA_SIZE ... which is actually configure at confbattleclient.conf)

http://upaste.me/789e10797db5b0132

hmmm I forgot to make a patch .... hahaha ... nvm

 
Back
Top