Browse Source

My frist cahnge, hopefully it's not my last...

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@614 54d463be-8e91-2dee-dedb-b68131a5f0ec
ajarn 20 years ago
parent
commit
c0f5237c71
3 changed files with 195 additions and 176 deletions
  1. 3 0
      Changelog.txt
  2. 188 174
      src/char_sql/char.c
  3. 4 2
      src/common/mmo.h

+ 3 - 0
Changelog.txt

@@ -1,4 +1,7 @@
 Date	Added
+12/18
+	* Fixed SQL char creation, it now follows MySQL standards and uses mysql_last_insert_id [Ajarn]
+
 12/10
 	* Fixed parse's for login-server, it actually fails if packet len isn't long enough [Wizputer]
 	* Edit of parses in char-server, -UNTESTED- [Wizputer]

File diff suppressed because it is too large
+ 188 - 174
src/char_sql/char.c


+ 4 - 2
src/common/mmo.h

@@ -54,6 +54,8 @@
 #define MIN_CLOTH_COLOR battle_config.min_cloth_color
 #define MAX_CLOTH_COLOR battle_config.max_cloth_color
 
+#define MIN_CHAR_ID 150000 // shouldn't ever be changed, the client requires this min value [Ajarn]
+
 // for produce
 #define MIN_ATTRIBUTE 0
 #define MAX_ATTRIBUTE 4
@@ -265,8 +267,8 @@ struct guild_castle {
 	int Ghp4;
 	int Ghp5;
 	int Ghp6;
-	int Ghp7;	
-	int GID0;	
+	int Ghp7;
+	int GID0;
 	int GID1;
 	int GID2;
 	int GID3;

Some files were not shown because too many files changed in this diff