Browse Source

- Fixed a typo in guildrelay.txt (bugreport:4213)
- Forced acc.lastlogin to use MySQL DATETIME format. (bugreport:4193)
- Fixed the range of getiteminfo and setiteminfo. (bugreport:4190)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14292 54d463be-8e91-2dee-dedb-b68131a5f0ec

brianluau 15 years ago
parent
commit
f5c3f4fe86
4 changed files with 5 additions and 5 deletions
  1. 1 1
      db/skill_nocast_db.txt
  2. 1 1
      npc/quests/guildrelay.txt
  3. 1 1
      src/login/login.c
  4. 2 2
      src/map/script.c

+ 1 - 1
db/skill_nocast_db.txt

@@ -57,7 +57,7 @@
 438,8	//SG_SUN_BLESS
 439,8	//SG_MOON_BLESS
 440,8	//SG_STAR_BLESS
-691,8;	//CASH_ASSUMPITO
+691,8	//CASH_ASSUMPITO
 
 //mixed
 488,3	//CG_HERMODE

+ 1 - 1
npc/quests/guildrelay.txt

@@ -1058,7 +1058,7 @@
 					mes "him to tell you again.";
 					close;
 				}
-				else if (BaseJob == Job_Preist) {
+				else if (BaseJob == Job_Priest) {
 					mes "[" + .@name$ + "]";
 					mes "Ah, " + strcharinfo(0) + ",";
 					mes "please take good care of";

+ 1 - 1
src/login/login.c

@@ -1018,7 +1018,7 @@ int mmo_auth(struct login_session_data* sd)
 	sd->level = acc.level;
 
 	// update account data
-	timestamp2string(acc.lastlogin, sizeof(acc.lastlogin), time(NULL), login_config.date_format);
+	timestamp2string(acc.lastlogin, sizeof(acc.lastlogin), time(NULL), "%Y-%m-%d %H:%M:%S");
 	safestrncpy(acc.last_ip, ip, sizeof(acc.last_ip));
 	acc.unban_time = 0;
 	acc.logincount++;

+ 2 - 2
src/map/script.c

@@ -10331,7 +10331,7 @@ BUILDIN_FUNC(getiteminfo)
 	n	= script_getnum(st,3);
 	i_data = itemdb_exists(item_id);
 
-	if (i_data && n>=0 && n<14) {
+	if (i_data && n>=0 && n<=14) {
 		item_arr = (int*)&i_data->value_buy;
 		script_pushint(st,item_arr[n]);
 	} else
@@ -10373,7 +10373,7 @@ BUILDIN_FUNC(setiteminfo)
 	value	= script_getnum(st,4);
 	i_data = itemdb_exists(item_id);
 
-	if (i_data && n>=0 && n<14) {
+	if (i_data && n>=0 && n<=14) {
 		item_arr = (int*)&i_data->value_buy;
 		item_arr[n] = value;
 		script_pushint(st,value);