From cc02d87c0722eecf309c9da8f81d823c4d98e56f Mon Sep 17 00:00:00 2001 From: protimus Date: Wed, 4 Apr 2012 01:45:10 +0000 Subject: Re-add hotkey bar defines for pre-renewal. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15831 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/mmo.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/common/mmo.h') diff --git a/src/common/mmo.h b/src/common/mmo.h index 3b049fc6e..7268982d7 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -56,9 +56,16 @@ //Note that newer clients no longer save hotkeys in the registry! #define HOTKEY_SAVING -//The number is the max number of hotkeys to save -// (38 = 9 skills x 4 bars & 2 Quickslots)(0x07d9,268) -#define MAX_HOTKEYS 38 +#if PACKETVER < 20090603 + // (27 = 9 skills x 3 bars) (0x02b9,191) + #define MAX_HOTKEYS 27 +#elif PACKETVER < 20090617 + // (36 = 9 skills x 4 bars) (0x07d9,254) + #define MAX_HOTKEYS 36 +#else + // (38 = 9 skills x 4 bars & 2 Quickslots)(0x07d9,268) + #define MAX_HOTKEYS 38 +#endif #define MAX_MAP_PER_SERVER 1500 // Increased to allow creation of Instance Maps #define MAX_INVENTORY 100 -- cgit v1.2.3-70-g09d2