Jump to content
  • 0
Sign in to follow this  
Waken

Another clif_disp_overhead but decreasing range

Question

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  :lol:

Edited by Wingel

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.