already share the timebug fix nowhere,
here's some 2232 version,
just improve to ur 4.15
Code:
u could patch a few things
rewrite :
GetKorLocalTime() -> problem with atoi to atoll for example
WriteMemoryBYTE(0x14074EF86, 0x75); //LastConnTime
WriteMemoryBYTE(0x1407502F1, 0x75); //[LastConnTime]
WriteMemoryBYTE(0x140750588, 0x75); //LastLogoutTime
GetConnectTime_AddBySec() for dualPotion ( atoi function )
- DBGet LastConnTime changed to BIGINT 04 00 -> E5 FF
- DBGet BuffEndTime changed to BIGINT 04 00 -> E5 FF
Hex Zone (i mean replace )
%d.log to %u.log
%d_U.log to %u_U.log
%d_A.log to %u_A.log
The Code :
//0000000140480680 Fix Time, almost for everything
unsigned int WINAPIV GetKorLocalTime(){
char szDate[32],szTime[32];
_strdate(szDate);
_strtime(szTime);
char szLocalTime[32];
//Year..(6, 7)
szLocalTime[0] = szDate[6];
szLocalTime[1] = szDate[7];
//Month..(0, 1)
szLocalTime[2] = szDate[0];
szLocalTime[3] = szDate[1];
//Day..(3, 4)
szLocalTime[4] = szDate[3];
szLocalTime[5] = szDate[4];
//Second..(0, 1)
szLocalTime[6] = szTime[0];
szLocalTime[7] = szTime[1];
//Minute..(3, 4)
szLocalTime[8] = szTime[3];
szLocalTime[9] = szTime[4];
szLocalTime[10] = NULL;
return (unsigned int)atoll(szLocalTime);
}
//000000014043CB80) Fix DualOD
unsigned int WINAPIV GetConnectTime_AddBySec(int iSec){
struct tm *Tm;
time_t origTime, afterTime; ::time(&origTime);
Tm = ::localtime(&origTime);
Tm->tm_sec += iSec; afterTime = mktime(Tm);
char Dest[32];
sprintf(Dest, "%01d%02d%02d%02d%02d", (unsigned int)(Tm->tm_year - 100), (unsigned int)(Tm->tm_mon + 1), (unsigned int)(Tm->tm_mday), (unsigned int)(Tm->tm_hour), (unsigned int)(Tm->tm_min));
return (unsigned int)atoll(Dest);
}
The rest is urs, improve it
if you need compiled version ( suitable for Yorozuya ) Download Here >
https://www.mediafire.com/file/zkb6k...rozuya.7z/file