Jump to content

  •  

Nagad

Member Since 04 Jun 2015
Offline Last Active Apr 05 2017 10:09 AM
-----

Topics I've Started

Chat with timestamp

28 July 2015 - 08:18 AM

Can someone adapt this old source code for eAthena that implements the timestamp for chat messages (for party/guild chat)?? Would be really cool to have it for any chat (even the normal one)

 

clif.c

 

Party Chat:

void clif_parse_PartyMessage(int fd, struct map_session_data *sd){    char *mes;    int len, prefixlenparty; // ++    char prefixparty[255]; // ++    time_t t = time(NULL); // ++        strftime(prefixparty, 10, "[%H:%M] ", localtime(&t)); // ++    len = RFIFOW(fd,2) - 4;    mes = (char*)RFIFOP(fd,4);    mes_len_check(mes, len, CHAT_SIZE);    if (is_charcommand(fd, sd, mes) != CharCommand_None ||        is_atcommand(fd, sd, mes) != AtCommand_None)        return;    if    (sd->sc.count && (            sd->sc.data[SC_BERSERK].timer!=-1 ||            (sd->sc.data[SC_NOCHAT].timer!=-1 && sd->sc.data[SC_NOCHAT].val1&MANNER_NOCHAT)        ))        return;    if (battle_config.min_chat_delay)    {    //[Skotlex]        if (DIFF_TICK(sd->cantalk_tick, gettick()) > 0)            return;        sd->cantalk_tick = gettick() + battle_config.min_chat_delay;    }        strcat(prefixparty,mes); //++    prefixlenparty = strlen(prefixparty)+1;// ++    party_send_message(sd, prefixparty, prefixlenparty); // ++}

 

Guild Chat:

 

void clif_parse_GuildMessage(int fd,struct map_session_data *sd){    char *mes;    int len, prefixlenguild; //++    char prefixguild[255]; // ++    time_t t = time(NULL); // ++        strftime(prefixguild, 10, "[%H:%M] ", localtime(&t)); //++    len = RFIFOW(fd,2) - 4;    mes = (char*)RFIFOP(fd,4);    mes_len_check(mes, len, CHAT_SIZE);    if (is_charcommand(fd, sd, mes) != CharCommand_None ||        is_atcommand(fd, sd, mes) != AtCommand_None)        return;    if (sd->sc.count && (        sd->sc.data[SC_BERSERK].timer!=-1 ||        (sd->sc.data[SC_NOCHAT].timer!=-1 && sd->sc.data[SC_NOCHAT].val1&MANNER_NOCHAT)    ))        return;    if (battle_config.min_chat_delay)    {    //[Skotlex]        if (DIFF_TICK(sd->cantalk_tick, gettick()) > 0)            return;        sd->cantalk_tick = gettick() + battle_config.min_chat_delay;    }    strcat(prefixguild,mes); //++    prefixlenguild = strlen(prefixguild)+1; // ++    guild_send_message(sd, prefixguild, prefixlenguild); //++}

 


Exp values bugged??

27 July 2015 - 03:33 PM

I just noticed on my database that there are characters 99/70 with low exp.

 

How is it possible??

 

My server has 20x rates, everything is official so you have to kill mobs to level up.

 

So even the Ranking chart on fluxcp has wrong values and people think that are chars created by GMs, but is not true! :S


Little problem with Interface buttons positioning

26 July 2015 - 11:13 PM

Hey Guys :)

 

I modified the [color=rgb(20,24,35);font-family:helvetica, arial, sans-serif;]battle/booking/navigation/rec/quest buttons in magenta 1x1 pixel buttons, but now I have this problem:[/color]

 

[color=rgb(20,24,35);font-family:helvetica, arial, sans-serif;]Posted Image[/color]

 

[color=rgb(20,24,35);font-family:helvetica, arial, sans-serif;]As you can see, the "Bank" button is a little bit out of position because (I guess) there are all the 1x1 pixel buttons in the middle between the option button.[/color]

 

[color=rgb(20,24,35);font-family:helvetica, arial, sans-serif;]Any idea how to fix that??[/color]

 

[color=rgb(20,24,35);font-family:helvetica, arial, sans-serif;]ps: I do NOT want to diff my exe (I already now how to do that but I want to keep it "pure", that's why I modified the buttons) [/color]


||00Soul linker job name

23 July 2015 - 10:18 AM

See the image below, this happens with Soul Linker only... any idea how to fix it?? :)


@whosell

17 July 2015 - 08:26 PM

I found this one http://herc.ws/board...ile/58-whosell/ (Last Updated: May 30 2014 06:03 AM) but the warning says "This file has been reported as broken because: This file is incompatible with the latest revision of Hercules."

 

Can someone update this? :(