PDA

View Full Version : Hexing - 7Signs Sky and OGG


krapno
23.09.2005, 08:41
Hi,

some of u know how to hex l2server.exe to get dawn, dusk and normal sky, so in "music" folder u have "ssq_dawn_01.ogg", "ssq_dusk_01.ogg" and "ssq_neutral_01.ogg", maybe u could add some hex lines to automatically play (for all players) one of these music using command //enable_client_event 1, 2 or 0

Regards :)

Metalmurphy
23.09.2005, 11:29
First i gotta find out how to save the changes for those who re-login, but i gotta say that music fits the client_events animations perfectly xD

maximus
24.09.2005, 11:01
//enable_client_event 100 101 102 xD

Metalmurphy
24.09.2005, 12:35
?? thats just the fast switch of the skyes maximus. no music

Lukas
24.09.2005, 15:27
//enable_client_event 100 101 102 xD

//enable_client_event 1 <-- dusk
//enable_client_event 2 <-- dawn
//enable_client_event 0 <-- normal

this one is better :) it does a quick gradual change rather than "instant" 8)

Metalmurphy
24.09.2005, 16:24
You guys are missing the point... oO

flakka
24.09.2005, 16:30
I agreee. Stay on topic please. And read carefully. :wink:

krapno
24.09.2005, 17:49
yes please stay in the topic, dont post if u have no idea about topic guys, tx

krapno
25.09.2005, 00:24
did u test it ?

demon
25.09.2005, 16:13
livid //ride you sure it works ?

krapno
25.09.2005, 16:29
livid //ride you sure it works ?
offtopic demon, 1st warning :!: :D

so Livid i am totally n00b in hexing but i try to understand, can u please look at this and help me:

------------------------------------------------------------------
address goto value
------------------------------------------------------------------
004486D8 000486D8 68 00000000 PUSH 0
004486DD 000486DD 68 00000000 PUSH 0
004486DE 000486DE 68 00000000 PUSH 0
004486E3 000486E3 68 00000000 PUSH 0
004486E6 000486E6 68 00000000 PUSH 0
004486E7 000486E7 68 ???????? PUSH "ssq_dusk_01"
004486E8 000486E8 68 01000000 PUSH 1
004486EE 000486EE 68 98000000 PUSH 098
004486F3 000486F3 68 4C775E00 PUSH 5E774C
004486F8 000486F8 E8 63820A00 CALL 004F0960


Regards :)

Livid
25.09.2005, 17:43
PUSH "ssq_dusk_01" actually should look like:

PUSH xxxxxxxx

and at the address xxxxxxxx we have UNICODE srting ssq_dusk_01
like:
73 00 73 00 71 00 5F 00 64 00 75 00 73 00 6B 00 5F 00 30 00 31 00 00 00
Last 0000 is a string terminator.

String is VC++ 7.0 wChar type if you are interested.

Oh, and one more. To save space use 6A 00 instead of 68 00000000

krapno
25.09.2005, 19:00
well well well, i tried to understand more and i did something with what u wrote but, 1st, this string:

73 00 73 00 71 00 5F 00 64 00 75 00 73 00 6B 00 5F 00 30 00 31 00 00 00

is too long to be edited in one row, then i used more than one 68 (PUSH) to PUSH "ssq_dusk_01" string

and 2nd, L2Server crashes as soon as a player is connecting :?

Here some beautifull screens :D

Before
http://img190.imageshack.us/img190/5384/ogg19uc.jpg

Hexing
http://img190.imageshack.us/img190/6168/ogg24gw.jpg

Hexed
http://img190.imageshack.us/img190/2458/ogg34jw.jpg

Kind regards

filrip
25.09.2005, 19:15
PUSH xxxxxxx

xxxxx is an address where the string is stored, use something not 'really' used in .exe.

Example, at 2BBCE0 offset, write the string in unicode of the music (73 00 73 00 71 00 5F 00 64 00 75 00 73 00 6B 00 5F 00 30 00 31 00 00 00). (I havent tested it here.... if crash, then must be stored somewhere else).

Then the PUSH point to the virtual address of the 2bbce0 offset. If my count is correct, it's 6BBCE0. Then you must have "PUSH 6BBCE0" (for my example)

Livid
25.09.2005, 19:18
point is to have whole string pushed.

krapno
25.09.2005, 20:28
:roll: i am lost, i dont understand because i try to type that code:

------------------------------------------------------------------
address goto value
------------------------------------------------------------------
004486D8 000486D8 6A 00 PUSH 0
004486DD 000486DD 6A 00 PUSH 0
004486DE 000486DE 6A 00 PUSH 0
004486E3 000486E3 6A 00 PUSH 0
004486E6 000486E6 6A 00 PUSH 0
004486E7 000486E7 68 6BBCE000 PUSH "ssq_dusk_01"
004486E8 000486E8 68 01000000 PUSH 1
004486EE 000486EE 68 98000000 PUSH 098
004486F3 000486F3 68 4C775E00 PUSH 5E774C
004486F8 000486F8 E8 63820A00 CALL 004F0960


but address doesn't matches, i dont know if i have to add rows or update rows, and it seems i am only able to update rows using HIEW ...

Regards

Livid
26.09.2005, 03:20
6A 00 PUSH 0
6A 00 PUSH 0
6A 00 PUSH 0
6A 00 PUSH 0
6A 00 PUSH 0
68 E0BC6B00 PUSH 6BBCE0
6A 01 PUSH 1
6A 98 PUSH 098
68 4C775E00 PUSH 5E774C
E8 63820A00 CALL 004F0960

TheOrder
26.09.2005, 07:36
Tnx Livid with you're help i finaly understood something from Hexing , plz give me more codes so to that i can help Krapno .

krapno
26.09.2005, 09:49
I did that but Server crashes when players connects :cry:

Hexing
http://img209.imageshack.us/img209/5417/ogg21tw.jpg

Hexed
http://img209.imageshack.us/img209/3236/ogg38rj.jpg

TheOrder
26.09.2005, 09:58
What prog do you use to Hex you're files ??

krapno
26.09.2005, 10:02
What prog do you use to Hex you're files ??

HIEW x.xx

Dave
26.09.2005, 16:03
/offtopic -- once I have hexed the server.exe to see dusk/dawn sky which works great , i can only see moon by looking straight up not from a distance. is it suppossed to be this way?

for example. if im on top of a hill, i have to look straight up to see it, or if Im in dian town. cant see from a distanct I have to look up.

BIG NOOB Question! :(

krapno
26.09.2005, 16:10
it depend of server time...