• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Tutorial] How to edit engine/dbsvrt/main via hex editor

Joined
Mar 10, 2010
Messages
909
Reaction score
237
Hello , i made small tutorial about how to edit engine,dbsvrt,main because i saw that not everybody know's how to do.

DBsvrt:
SetPrefix
Code:
[COLOR="#FF0000"]UPDATE Item SET [Prefix] = %d WHERE [IID] = %d..[/COLOR]
change to
[COLOR="#FF0000"]EXEC SetPrefix %d,%d............................[/COLOR]

Imperial
Code:
[COLOR="#FF0000"]UPDATE Item SET [Num] = %d, [MaxEnd] = %d WHERE [IID] = %d..[/COLOR]
change to
[COLOR="#FF0000"]EXEC Imperial %d,%d.........................................[/COLOR]

Update Player
Code:
[COLOR="#FF0000"]UPDATE Player SET [Level] = %d, [Specialty] = %d, [Contribute] = %d, [Exp] = %I64d, [GRole] = %d, [Strength] = %d, [Health] = %d, [Intelligence] = %d, [Wisdom] = %d, [Dexterity] = %d, [CurHP] = %d, [CurMP] = %d, [PUPoint] = %d, [SUPoint] = %d, [Killed] = %d, [Map] = %d, [X] = %d, [Y] = %d, [Z] = %d, [Rage] = %d WHERE [PID] = %d.......[/COLOR]
change to
[COLOR="#FF0000"]EXEC UpdatePlayer %d,%d,%d,%I64d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d.......[/COLOR]

Buff magic
Code:
[COLOR="#FF0000"]INSERT INTO BuffRemain VALUES( %d, %d, %d)..[/COLOR]
change to
[COLOR="#FF0000"]EXEC BuffMagic %d, %d, %d...................[/COLOR]

Create Player
Code:
[COLOR="#FF0000"]INSERT INTO Player ( [UID], [Name], [Class], [Strength], Health, Intelligence, Wisdom, Dexterity, [CurHP], [CurMP], [Map], [X], [Y], [Z], [Face], [Hair]) VALUES ( %d, '%s', %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d)....[/COLOR]
change to
[COLOR="#FF0000"]EXEC CreatePlayer %d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d ......................................................................................................................................................................[/COLOR]

Main:
Koem v2 [PS if you are searching , you have to write "ADVAPI32.dll" without ".."]
Code:
[COLOR="#FF0000"]..ADVAPI32.dll..[/COLOR]
change to
[COLOR="#FF0000"]..Main.dll......[/COLOR]

Obsidian [PS if you are searching , you have to write "ADVAPI32.dll" without ".."]
Code:
[COLOR="#FF0000"]..ADVAPI32.dll..[/COLOR]
change to
[COLOR="#FF0000"]..Obsidian.dll..[/COLOR]

sirix's 3rd job or if you want you can load "skill.dll" via Libraries
Code:
[COLOR="#FF0000"]gdi32.dll[/COLOR]
change to
[COLOR="#FF0000"]skill.dll[/COLOR]

np.If you want to use other addons like NewAi.dll,LifeAbsorb.dll put them to folder Libraries
or if you don't use koem v2, you can via Obsidian
link for obsidian dll:

here's example:
Code:
[Initialization]

# ***DLL LOADING***
# If you want to also use KOSP,
# fill that in here.  Otherwise,
# make sure you load ADVAPI32.dll.

# The number of DLL's you want to load
[COLOR="#FF0000"]NumDLL=2[/COLOR]

# Your list of the DLL's.
1="LifeAbsorb.dll"
2="NewAi.dll"


[Licensing]

#Ignore this.
Licensed=0
If you want to load 1 dll then
NumDLL=1
if 2 dlls
NumDLL=2
ps: the dlls must be in the same folder as MainSvrt.

======SPECIAL HEX MODIFICATIONS======

Open Hex Editor , press ALT+G and write the "offset"

Max attack
Code:
[COLOR="#FF8C00"]27965[/COLOR] change to [COLOR="#FF0000"]standard 14 (max 20)[/COLOR]
Max magic attack
Code:
[COLOR="#FF8C00"]27990[/COLOR] change to [COLOR="#FF0000"]standard 14 (max 20)[/COLOR]
Max OTP
Code:
[COLOR="#FF8C00"]279BB[/COLOR] change to [COLOR="#FF0000"]standard 14 (max 20)[/COLOR]
Max def
Code:
[COLOR="#FF8C00"]2A761[/COLOR] change to [COLOR="#FF0000"]standard 14 (max 20)[/COLOR]
No exp loss when killed by assassin
Code:
[COLOR="#FF8C00"]644BF[/COLOR] change [COLOR="#FF0000"]0A[/COLOR] to [COLOR="#FF0000"]C8[/COLOR]

Message "Move hack" in main, for peoples who don't want see this message
Code:
[COLOR="#FF8C00"]91534[/COLOR] change to [COLOR="#FF0000"]90 90 90 90 90[/COLOR]

Engine:
Koem v2 [PS: if you are searching , you have to write "ADVAPI32.dll" without "...."]
Code:
[COLOR="#FF0000"]ADVAPI32.dll....[/COLOR]
change to
[COLOR="#FF0000"]Client.dll......[/COLOR]

sirix's 3rd job [PS if you are searching , you have to write "COMCTL32.dll" without ".."]
Code:
[COLOR="#FF0000"]COMCTL32.dll..[/COLOR]
change to
[COLOR="#FF0000"]cskill.dll....[/COLOR]

======SPECIAL HEX MODIFICATIONS======

Open Hex Editor , press ALT+G and write the "offset"

Saving scroll max 255
Code:
[COLOR="#FF8C00"]00100A19[/COLOR] to [COLOR="#FF0000"]FF[/COLOR]
Disable 'Please restart your game' when relogin after CL
Code:
[COLOR="#FF8C00"]00100353[/COLOR] to [COLOR="#FF0000"]74[/COLOR]
No game close when kicked
Code:
[COLOR="#FF8C00"]100527[/COLOR] to [COLOR="#FF0000"]02[/COLOR]
Game closes when entering wrong PW
Code:
[COLOR="#FF8C00"]10010D[/COLOR] to [COLOR="#FF0000"]05[/COLOR]

PS: If you change something wrong in dbsvrt np. miss ".." or smth like it , then you will get problems in game like disappearance talismans, scrolls and rollbacks.

Credit goes to Bjorn(General) for the "Special modifications"

This tutorial for some people is useless , but i hope now everyone will be know how to use hex editor ;-)

Goodluck !
 
Last edited:
Junior Spellweaver
Joined
Dec 21, 2012
Messages
119
Reaction score
25
Open Hex Editor , press CTRL+G and write the "offset"
aBout this part its Alt + G not Ctrl



Regards
EDIT
Thanks its UseFul tut :p
 
Newbie Spellweaver
Joined
Jun 11, 2008
Messages
13
Reaction score
1
anyone got a clean MainServer? I searched for one, but I don`t find one at all only some with AntiCpSvr.dll but with KOEM V2 it crashs alltime
 
Back
Top