clif_parse_GetCharNameRequest

purityz

New member
Messages
12
Points
0
do client send this packet only one time?

because I create some event that will tell everyone if someone point a cursor at them. (hide and seek)

I got something like

void clif_parse_GetCharNameRequest(int fd, struct map_session_data *sd){  int id = RFIFOL(fd,packet_db[RFIFOW(fd,0)].pos[0]);  struct block_list* bl;  //struct status_change *sc;  if( id < 0 && -id == sd->bl.id ) // for disguises [Valaris]    id = sd->bl.id;  bl = iMap->id2bl(id);  if( bl == NULL )    return;  // Lagged clients could request names of already gone mobs/players. [Skotlex]if (bl->type==BL_PC && sd->mapindex==mapindex_name2id("prontera")){  ShowInfo("%s Found %s",sd->status.name,iMap->charid2nick(id));   }  if( sd->bl.m != bl->m || !check_distance_bl(&sd->bl, bl, AREA_SIZE) )    return; // Block namerequests past view range  clif->charnameack(fd, bl);}


problem is message only show one time (first time that player point cursor at other).

can we make clif_parse_GetCharNameRequest trigger everytime player point mouse at someone?

or do I need client edit (is that possible?)

thank you.

edit::

and I notice that if player move out of sigh or relogin clif_parse_GetCharNameRequest will trigger again.

 
Last edited by a moderator:
Back
Top