- 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
This commit is contained in:
brianluau 2010-04-30 00:22:22 +00:00
parent a07d7e43f9
commit f5c3f4fe86
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@ -1018,7 +1018,7 @@ int mmo_auth(struct login_session_data* sd)
sd->level = acc.level; sd->level = acc.level;
// update account data // 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)); safestrncpy(acc.last_ip, ip, sizeof(acc.last_ip));
acc.unban_time = 0; acc.unban_time = 0;
acc.logincount++; acc.logincount++;

View File

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