Jump to content

Dirpy

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Dirpy

  1. Hello! 

    I have been using the 2022-04-06.ragexe and I found this bug, when a player gets disguised it seems to work properly from the player perspective:

    image.png.10232762d0041de81501876f3c50df2f.png

    But when another person sees it and hovers the cursor over it, it looks like this from his/her perspective:

    image.png.aa70293945a8de9a147bf6b6d0086cd5.png

    Makes targeting the disguised player really difficult. Has anyone else had this issue?

  2. 22 hours ago, pajodex said:

    Look for this on src/map/atcommand.cpp:

     

    /*==========================================
     * @me by lordalfa
     * => Displays the OUTPUT string on top of the Visible players Heads.
     *------------------------------------------*/
    ACMD_FUNC(me)
    {
    	char tempmes[CHAT_SIZE_MAX];
    	nullpo_retr(-1, sd);
    
    	memset(tempmes, '\0', sizeof(tempmes));
    	memset(atcmd_output, '\0', sizeof(atcmd_output));
    
    	if (sd->sc.cant.chat || (sd->state.block_action & PCBLOCK_CHAT))
    		return -1; //no "chatting" while muted.
    
    	if (!message || !*message || sscanf(message, "%255[^\n]", tempmes) < 0) {
    		clif_displaymessage(fd, msg_txt(sd,1302)); // Please enter a message (usage: @me <message>).
    		return -1;
    	}
    
    +	if ( sd->fakename[0] )
    +		sprintf(atcmd_output, msg_txt(sd,270), sd->fakename, tempmes);	// *%s %s*
    +	else 
    		sprintf(atcmd_output, msg_txt(sd,270), sd->status.name, tempmes);	// *%s %s*
    	clif_disp_overhead(&sd->bl, atcmd_output);
    
    	return 0;
    
    }

    Where the '+' are the lines you need to add incase you didnt know.

    Thank you very much sir! 

  3. Hello! 

    I would like some help to modify the @me command to make it @fakename friendly, displaying the current display name instead of the real name. I have been trying modifying the command but i cannot seem to make it work, this is the line:

     

    Quote

     

    ACMD_FUNC(me) {

    char tempmes[CHAT_SIZE_MAX]; nullpo_retr(-1, sd);

    memset(tempmes, '\0', sizeof(tempmes));

    memset(atcmd_output, '\0', sizeof(atcmd_output)); if (sd->sc.cant.chat || (sd->state.block_action & PCBLOCK_CHAT)) return -1; //no "chatting" while muted.

    if (!message || !*message || sscanf(message, "%255[^\n]", tempmes) < 0) {

    clif_displaymessage(fd, msg_txt(sd,1302)); // Please enter a message (usage: @me <message>).

    return -1;

    }

    sprintf(atcmd_output, msg_txt(sd,270), sd->status.name, tempmes); // *%s %s*

    clif_disp_overhead(&sd->bl, atcmd_output);

    return 0;

    }

    The idea is for @me to show @fakename (if there is one enabled) or the current display name instead of the real name of the character.

    Still getting the hang of this so i would appreciate the help!

×
×
  • Create New...