* Added field for the change slot feature to character select list packet for 2011-09-28aRagexeRE and newer.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14977 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ai4rei
2011-10-16 09:06:42 +00:00
parent ddd5609af3
commit 7b4a76f4bd
4 changed files with 12 additions and 2 deletions

View File

@@ -1591,7 +1591,7 @@ int count_users(void)
// Writes char data to the buffer in the format used by the client.
// Used in packets 0x6b (chars info) and 0x6d (new char info)
// Returns the size
#define MAX_CHAR_BUF 136 //Max size (for WFIFOHEAD calls)
#define MAX_CHAR_BUF 140 //Max size (for WFIFOHEAD calls)
int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
{
unsigned short offset = 0;
@@ -1658,6 +1658,10 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
#if PACKETVER >= 20110111
WBUFL(buf,128) = p->robe;
offset += 4;
#endif
#if PACKETVER >= 20110928
WBUFL(buf,132) = 0; // change slot feature (0 = disabled, otherwise enabled)
offset += 4;
#endif
return 106+offset;
}