torune
04.01.2006, 00:49
Big thx goes to Livid:
https://postpacific.mmorpg-game.online/forum/viewtopic.php?t=1983&start=105
this is not a tutorial, which means i dont give out everything
put this in your l2server.ini
[SevenSign]
SignSky=0
find some place before server loads everything, or maybe a jump after it loads some values from l2server.ini
; /IniFileName = ".\l2server.ini"
; |Default = 0
; |Key = "SignSky"
; |Section = "SevenSign"
; \GetPrivateProfileIntW
PUSH 005D9554
PUSH 0
PUSH AddressOfKeyName
PUSH AddressOfSectionName
CALL DWORD PTR DS:[<&KERNEL32.GetPrivateProfileIntW>
MOV DWORD PTR DS:[6B8FF0],EAX
use this to load the value
and when you go to this step
MOV DWORD PTR DS:[6B8FF0],EAX
extends
PUSH 005D9554
PUSH 6B8FF0
PUSH AddressOfKeyName
PUSH AddressOfSectionName
CALL DWORD PTR DS:[<&KERNEL32.WritePrivateProfileStringW>]
BOOL WritePrivateProfileString(
LPCTSTR lpAppName,
LPCTSTR lpKeyName,
LPCTSTR lpString,
LPCTSTR lpFileName
);
WritePrivateProfileStringW (Unicode)
UINT GetPrivateProfileInt(
LPCTSTR lpAppName,
LPCTSTR lpKeyName,
INT nDefault,
LPCTSTR lpFileName
);
GetPrivateProfileIntW (Unicode)
reference:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getprivateprofileint.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/writeprivateprofilestring.asp
just a small additional info:
you might need add eax,30
hex: 30 -> 0
hex: 31 -> 1
hex: 32 -> 2
https://postpacific.mmorpg-game.online/forum/viewtopic.php?t=1983&start=105
this is not a tutorial, which means i dont give out everything
put this in your l2server.ini
[SevenSign]
SignSky=0
find some place before server loads everything, or maybe a jump after it loads some values from l2server.ini
; /IniFileName = ".\l2server.ini"
; |Default = 0
; |Key = "SignSky"
; |Section = "SevenSign"
; \GetPrivateProfileIntW
PUSH 005D9554
PUSH 0
PUSH AddressOfKeyName
PUSH AddressOfSectionName
CALL DWORD PTR DS:[<&KERNEL32.GetPrivateProfileIntW>
MOV DWORD PTR DS:[6B8FF0],EAX
use this to load the value
and when you go to this step
MOV DWORD PTR DS:[6B8FF0],EAX
extends
PUSH 005D9554
PUSH 6B8FF0
PUSH AddressOfKeyName
PUSH AddressOfSectionName
CALL DWORD PTR DS:[<&KERNEL32.WritePrivateProfileStringW>]
BOOL WritePrivateProfileString(
LPCTSTR lpAppName,
LPCTSTR lpKeyName,
LPCTSTR lpString,
LPCTSTR lpFileName
);
WritePrivateProfileStringW (Unicode)
UINT GetPrivateProfileInt(
LPCTSTR lpAppName,
LPCTSTR lpKeyName,
INT nDefault,
LPCTSTR lpFileName
);
GetPrivateProfileIntW (Unicode)
reference:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getprivateprofileint.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/writeprivateprofilestring.asp
just a small additional info:
you might need add eax,30
hex: 30 -> 0
hex: 31 -> 1
hex: 32 -> 2