ServerDev Development Community

We Want You (Editors, Developers) Let's Code
 
HomeRegisterLog in

Share | 
 

 How to edit Cabalmain.exe (Xor's, ech's, load staff, AH 4 slots, husky, breaklee)

View previous topic View next topic Go down 
AuthorMessage
RON
Administrator
Administrator
avatar

Posts : 63
Join date : 2013-09-08
Age : 20

PostSubject: How to edit Cabalmain.exe (Xor's, ech's, load staff, AH 4 slots, husky, breaklee)   Sat Jan 07, 2017 9:59 am

Hello,
it's next of my short tutorial which showing how to edit basic things in Cabalmain.exe

What you will need to edit cabalmain.exe property?:
--- Ollydbg http://saintcabal.com/upload/ollydbg.rar (i hope rz staff won't kill me for that ^^) best version.
--- 010 Sweetscape editor (or other hex editor but i recommend to use 010)

Some knowledge at beginning

What is XOR Key?: It's a key which help to make our files safe against steal or edits. 
Xor key is needed to unpack the .enc files.
XOR Key's address in Cabalmain 374:



Code:
004A82FA 83F0 57 XOR EAX,57 - 4th xor
004A830C 83F0 67 XOR EAX,67 - 3rd xor
004A831E 83F0 65 XOR EAX,65 - 2nd xor
004A832F 35 92000000 XOR EAX,92 - 1st xor







What is "load ech's" in cabalmain?: It's a amount of load visual files into our Cabalmain.
for ex. if u want load ech's 14 (man14.ech & woman14.ech) you need to change the load in cabalmain to "CMP EAX,0E"



Code:
005daf38 CMP EAX,0C - Load Man.echs (this load ech's. 12)
005db06a CMP EAX,0C - load Woman.echs (this load ech's 12)







List of all possible loads in cabalmain:



Code:
CMP EAX,0A = 10
CMP EAX,0B = 11
CMP EAX,0C = 12
CMP EAX,0D = 13
CMP EAX,0E = 14
CMP EAX,0F = 15
CMP EAX,10 = 16







What is "load staff"?: It's an amount of load the wizard "staff" into Cabalmain - Not tested u do at ur own

Code:



[size=14][/size]
[size=14][ltr]008D4E81 => 1h_staff_%s.efx
008D4EF3 => 1h_staff_%s_15.efx[/ltr][/size]
[size=14][/size]







What is "Remove file check ENC"?: File check is related to xData if u don't know how to setup it and u have problem with start game cause appear error "File corrupted or missing" just remove it from cabalmain. Below u have address and what to do:

Code:



[size=14][/size]
[size=14][ltr]004A0C84 . 74 0D JE SHORT cabalmai.004A0C93 -------> Press space on it and write NOP and press enter
004A0C86 . 85C0 TEST EAX,EAX
004A0C88 . 74 09 JE SHORT cabalmai.004A0C93 -------> Press space on it and write NOP and press enter[/ltr][/size]
[size=14][/size]







Copyright @PunkS7yle

What is "Auction 4 slot load"?: It's allow to add 4 slotted items into Auction House 



Code:
006F83e8
jl 006F8358=> Press space and change the value to NOP and press enter

006F8890
jl 006F87FE=> Press space and change the value to NOP and press enter







Someone release it but i can't find the thread, i had it in notepad. If u read it PM ME so i can add copyrights.

What is husky?: "husky" is a startup command in Cabalmain, it allow to open the game and connect to server using language.enc. To avoid stealing ur work or smth u can change the husky command to other 5 character word. 

What is breaklee?: as up its startup command in cabalmain, it allow to open the game and connect to server using internal.txt. Breaklee allow to use SPECIAL commands for all users. To avoid connecting with breaklee command better is remove it from cabalmain.

OK enough knowledge, now let's start editing the Cabalmain, firstly we start with edit the "husky" command
Open Cabalmain.exe in 010 Sweetscape editor (Remember that cabalmain must be unpacked) now press ctrl+f and serach for word "husky" u should find just one result.
Now in ASCII (right side) edit the command by REPLACING EACH LETTER (DO NOT USE BACKSPACE).
You can use just 5 bytes for the new command, it can be everything. 
Save & Exit - now u start ur game with new startup command.

Let's now REMOVE the "breaklee" startup command, as up open Cabalmain in 010 editor.
Press ctrl+f and serach for word "breaklee" u should find just one result. 
Now in left window side (hex) REPLACE each bytes of the breaklee world with "00"
Before:
http://saintcabal.com/upload/cabalmain_hex.png
After:
http://saintcabal.com/upload/cabalmain_hex_a.png
Save & Exit - now the breaklee command is disabled.


Ok, let's now start with Ollydbg, open cabalmain using ollydbg (remember cabalmain must be in folder where u have placed cabal files) also remember to run ollydbg as Admin!.
If u have already loaded cabalmain in ollydbg now Press "Ctrl+G" and put address where u want to jump.
Let's change the xor keys so. Ctrl + G and put address "004A832F" and press enter.
http://saintcabal.com/upload/olly_xor.png
Here u have to edit 4 xor keys, just press on each xor SPACE and change the XOR EAX,85 to your new key, after change press enter and close the window, do the same with all other keys. When u change them all Right Click mouse somewhere -> Copy -> Select ALL
if u have selected everything now again Right Click -> Copy to executable -> Selection 
New window appear, on this window Right Click -> Save File - now replace or save it with new name and done Smile u have changed xor keys.
By this way u do every modifications in Cabalmain.

If something is not clear just ask below Smile
I hope it helps, have fun.

Credits to Dens666 of RZ Wink
Back to top Go down
http://serverdevelopment.forumtl.com
 
How to edit Cabalmain.exe (Xor's, ech's, load staff, AH 4 slots, husky, breaklee)
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» MP3 Gain - Edit Your MP3s To Make Volume Adjustments
» Chaos edit or WDC source code??? or a new editor?
» How to edit wolf 3D hex editor?
» Another PPG base edit (with shading)
» Edit Assignments

Permissions in this forum:You cannot reply to topics in this forum
ServerDev Development Community :: Cabal Online :: Cabal Guides & Templates-
Jump to: