Issue information

Issue ID
#4043
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Feb 6, 2010 19:52
Last Post
Hercules Elf Bot
Apr 5, 2012 8:32
Confirmation
N/A

Hercules Elf Bot - Feb 6, 2010 19:52

Originally posted by [b]genblackfox[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4043

Whisper will be cut off the first 4 characters in 2009-11-24aRagexeRE Client and after

http://www.eathena.ws/board/index.php?auto...mp;showbug=3942 Original Source

I've find the solution to solve it!
QUOTE
int clif_wis_message(int fd, const char* nick, const char* mes, int mes_len)
{
#if PACKETVER < 20091104
WFIFOHEAD(fd, mes_len + NAME_LENGTH + 4);
WFIFOW(fd,0) = 0x97;
WFIFOW(fd,2) = mes_len + NAME_LENGTH + 4;
safestrncpy((char*)WFIFOP(fd,4), nick, NAME_LENGTH);
safestrncpy((char*)WFIFOP(fd,28), mes, mes_len);
WFIFOSET(fd,WFIFOW(fd,2));
#else
WFIFOHEAD(fd, mes_len + NAME_LENGTH + 8);
WFIFOW(fd,0) = 0x97;
WFIFOW(fd,2) = mes_len + NAME_LENGTH + 8;
safestrncpy((char*)WFIFOP(fd,4), nick, NAME_LENGTH);
//WFIFOL(fd,28) = 0; // unknown; if nonzero, also displays text above char<--I delete it
safestrncpy((char*)WFIFOP(fd,32), mes, mes_len);
WFIFOSET(fd,WFIFOW(fd,2));
#endif
return 0;
}


This post has been edited by genblackfox: Feb 6 2010, 11:56 AM

Hercules Elf Bot - Dec 20, 2011 3:59

Originally posted by [b]Ind[/b]
was fixed in a previous eA revision