Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 04.01.2006, 00:49   #1
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default [hex]Permanently save your Seven Sign Sky Config

Big thx goes to Livid:
https://postpacific.mmorpg-game.onli...1983&start=105

this is not a tutorial, which means i dont give out everything

put this in your l2server.ini
Code:
[SevenSign]
SignSky=0
find some place before server loads everything, or maybe a jump after it loads some values from l2server.ini
Quote:
; /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
Quote:
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/de...profileint.asp
http://msdn.microsoft.com/library/de...filestring.asp

just a small additional info:
you might need add eax,30
hex: 30 -> 0
hex: 31 -> 1
hex: 32 -> 2
torune is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:18.