purityz 0 Posted September 9, 2013 (edited) 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. Edited September 9, 2013 by purityz Quote Share this post Link to post Share on other sites
0 Ind 945 Posted September 10, 2013 to my best memory its the client Quote Share this post Link to post Share on other sites
0 purityz 0 Posted September 10, 2013 to my best memory its the client thank you master Ind. anyways is they a ways to trick a client to resend this packet? Quote Share this post Link to post Share on other sites
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
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.
Edited by purityzShare this post
Link to post
Share on other sites