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 25.07.2007, 18:37   #9
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

run any hexeditor, go to offset 0x41229 and change there 4 bytes (there is 60 EA 00 00) (0xEA60==60000) to needed value... e.g. 0x1D4C0==120000, so put there C0 D4 01 00

more simple than attachin dll to cached using stud_pe? not?

or at last use this script (it can be compiled to exe with https://postpacific.mmorpg-game.onli...d.php?t=8113):
Code:
using System;
using System.IO;
class ChangeDeadTime
{
	const string CachedFileName = "Cached.exe";
	static void Main()
	{
		FileStream stream = File.Open(CachedFileName,FileMode.Open,FileAccess.ReadWrite);
		stream.Seek(0x41229,SeekOrigin.Begin);
		BinaryReader reader = new BinaryReader(stream);
		int CurrentDeadTime = reader.ReadInt32();
                Console.WriteLine(string.Format("Current dead time = {0} ms",CurrentDeadTime));
                stream.Seek(0x41229,SeekOrigin.Begin);
                BinaryWriter writer = new BinaryWriter(stream);
                Console.Write("Enter new dead time (ms):");
                int NewDeadTime = Convert.ToInt32(Console.ReadLine());
                writer.Write(NewDeadTime);
                Console.WriteLine(string.Format("Success! New dead time = {0} ms",NewDeadTime));
	}
}
result of this script:
Code:
D:\cached>ChangeDeadTime.exe
Current dead time = 60000 ms
Enter new dead time (ms):120000
Success! New dead time = 120000 ms
humordwarf 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 23:24.