Jump to content
  • 0
Sign in to follow this  
purityz

clif_parse_GetCharNameRequest

Question

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 by purityz

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

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.