PDA

View Full Version : [Share] Full abnormal effects


Alien003
31.10.2005, 21:17
well I know the community release is going to be out soon ...but for those that dont want like to wait (like me :P)

USERINFO :

006B81FA 6A 00 PUSH 0
006B81FC 6A 00 PUSH 0
006B81FE 6A 00 PUSH 0
006B8200 FFB7 B00A0000 PUSH DWORD PTR DS:[EDI+AB0]
006B8206 90 NOP
006B8207 90 NOP

CHARINFO :

006B8268 FFB3 B00A0000 PUSH DWORD PTR DS:[EBX+AB0]
006B826E 52 PUSH EDX
006B826F 8D95 A8FDFFFF LEA EDX,DWORD PTR SS:[EBP-258]
006B8275 E9 CB76E4FF JMP C3server.004FF945

NPCINFO :

00496636 . E8 B4E71100 CALL C3server.005B4DEF

004967D1 . E8 19E61100 CALL C3server.005B4DEF

005B4DEF /$ 83EC 14 SUB ESP,14
005B4DF2 |. FF7424 14 PUSH DWORD PTR SS:[ESP+14]
005B4DF6 |. 83C4 1C ADD ESP,1C
005B4DF9 |. 33C9 XOR ECX,ECX
005B4DFB |. 51 PUSH ECX
005B4DFC |. 51 PUSH ECX
005B4DFD |. 51 PUSH ECX
005B4DFE |. 51 PUSH ECX
005B4DFF |. 51 PUSH ECX
005B4E00 |. FFB3 B00A0000 PUSH DWORD PTR DS:[EBX+AB0]
005B4E06 |. 8B4D A8 MOV ECX,[LOCAL.22]
005B4E09 |. 8B55 C4 MOV EDX,[LOCAL.15]
005B4E0C |. 83EC 04 SUB ESP,4
005B4E0F \. C3 RETN

Slipknight
31.10.2005, 21:19
:o :o :o :o :o :o :o

so this will fix like stun/sleep/root and all that shit :o?

Alien003
31.10.2005, 21:24
yes

Slipknight
31.10.2005, 21:31
yes

Did I mention I love you? Cash for you.

Metalmurphy
31.10.2005, 21:39
/me wonders if it was that dificult for all the others that had this to share it like Alien003 did.


P.S. - You can expect more shares soon from our team.

TheOrder
31.10.2005, 22:13
Tnx for sharing the code , but i dought you would have gived it unles Flakka will release the C3 Project tomorrow that has the Abnormal Fix Effect implemented , anyway just talking outloud , tnx for sharing the code dough , mousth off the ppl would have never know , how it works and where to hex !!!

Metalmurphy
31.10.2005, 22:16
You are very very wrong ;) , we (or rather alien, he did all the work) got this working just less then 1 hour ago, and Sauron can prove it :p And Alien shared as soon as as we finished testing it

TheOrder
31.10.2005, 23:24
Well then back up all my word and regret what i sayd , the thing that made me presume this , it's because off the timming . GJ and keep up the good work , hope i did not discouraged you in any way !!!

flakka
31.10.2005, 23:29
Damn dude, you think your sig is big enough? :roll:

Nice post Alien003. :wink:

wton
31.10.2005, 23:50
cash for you alien003 y thanks very much :D

bob1122
01.11.2005, 00:18
heh; good stuff someone shared it :)

OnlyOne
01.11.2005, 00:19
Bug: if u dye with lets say silence and you are ressurescted AVE stays

Eliot
01.11.2005, 01:17
Thank You Alien, You'll get more cash when i finally win in this asteroids clone!

serjr
01.11.2005, 11:57
to fix problem with effects after dead we need to call CCreature::CheckAbnormalStatusEffect(),
something like this
.text:005B4DF0 call sub_4486C0

but this is not compatible with Tontors patch cose he use this sub for his oun reasons :(

HF
01.11.2005, 12:04
It is no work for my L2Server.exe. Clean C3Server.exe. With patch.dll... With SSQ.. without SSQ... with my AvE, without AvE
Halt and crash after enter //summon npc

serjr
01.11.2005, 12:12
Try our patch, maybe it will be good for you. You can use l2scriptmaker to inject patch :wink:

HF
01.11.2005, 12:15
Try our patch, maybe it will be good for you. You can use l2scriptmaker to iject patch :wink:our? First post in this thread? or something more? I say about this hex patch from this thread.
I test it hex on 3 types of L2Server.exe. All variance crash after summon command. Dont know why.

serjr
01.11.2005, 12:20
Try our patch, maybe it will be good for you. You can use l2scriptmaker to iject patch :wink:our? First post in this thread? or something more? I say about this hex patch from this thread.
I test it hex on 3 types of L2Server.exe. All variance crash after summon command. Dont know why.
В общем этот патчик и отпишись, у всех пока работает нормально, если не поможет надо будет твой exe смотреть, с чемто значит пересекается. Стукни в асю если будут проблемы что нить придумаем

Use my ICQ to contact if you still will have problems

P.S. Aliens fix looks good for me and must work.

HF
01.11.2005, 12:24
* here has been big boom exploit *

serjr
01.11.2005, 12:24
here clean l2server exe with fixed glow and protocol 530. Use it if you have problems with patches.
maximum Upload Quota Limit of 1 MB :(
i will put it here then
http://www.megaupload.com/?d=OEPIC54Z

serjr
01.11.2005, 12:34
Try our patch, maybe it will be good for you. You can use l2scriptmaker to iject patch :wink:our? First post in this thread? or something more? I say about this hex patch from this thread.
I test it hex on 3 types of L2Server.exe. All variance crash after summon command. Dont know why.
В общем этот патчик и отпишись, у всех пока работает нормально, если не поможет надо будет твой exe смотреть, с чемто значит пересекается. Стукни в асю если будут проблемы что нить придумаем

Use my ICQ to contact if you still will have problems

P.S. Aliens fix looks good for me and must work.better format for my tool.
Correct?

001B4DF0: 59 33 D2 52 52 52 52 52 8B 93 B0 0A
001B4DFE: 52
001B4E00: 8B 4D A8 8B 55 C4 C3
002B81FA: 33 C9 49 51 51 6A 00 8B 8F B0 0A 00 51
002B8268: FF B3 B0 0A 00 00 52 8D 95 A8 FD FF FF E9 CB 76 E4 FF
002B8289: FF B3 B0 0A 00 00 52 8D 95 A8 FD FF FF E9 10 71 E4 FF
code above will be use big_boom skill after testing :)
Yes you can group hex, i use diff software to generate this file and im to lazy to group it :lol:

Eliot
01.11.2005, 16:13
anybody is haveing stability issues after this patch ?
I experienced two crashes within 6 hours. Which is totally abnormal because i had 48h of uptime before. Could be coincidence, but i doubt it...

serjr
01.11.2005, 16:16
anybody is haveing stability issues after this patch ?
I experienced two crashes within 6 hours. Which is totally abnormal because i had 48h of uptime before. Could be coincidence, but i doubt it...
Wich version from me or from Alien003?

Alien003
01.11.2005, 16:37
anybody is haveing stability issues after this patch ?
I experienced two crashes within 6 hours. Which is totally abnormal because i had 48h of uptime before. Could be coincidence, but i doubt it...

can you post the crash log?

demon
01.11.2005, 16:38
i think this hex is incomplete :]

Eliot
01.11.2005, 16:59
void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
UseItemPacket <--
User::UseItem(CItem*) <--
CCreature::UseItem()

Thread[0] (ahehe): Lock Stack :

Thread[1] (good): Lock Stack :



Alien003 fix.

The other was about NPCCreature, it got overwritten unfortunately.

serjr i thought Yours is the same as Alien003. Can You post the diffrences ?

Alien003
01.11.2005, 17:08
i think this hex is incomplete :]

it has the 2 problems posted, sleep and melee hit does now make the sleep effect disapear, same for when players die.

and maybe with polymorphed GMs (still testing this one)


Eliot by the look of the crash log it does not look effects related :/

hamidouch
01.11.2005, 19:13
did u tried flames, soil, water, wind and MP AVE Effects?
cause i did, they don't work Oo
(exept soil)

Phantom2005
01.11.2005, 20:02
Don't wanna be rude but i believe this is the full version:


005B4DF0: 59 33 D2 52 52 52 52 52 8B 93 B0 0A 00 00 52 51 8B 4D A8 8B 55 C4 C3 A8 8B 55 C4 83 EC 04 C3 90

006B81FA: 33 C9 49 51 51 6A 00 8B 8F B0 0A 00 00 51

006B8268: FF B3 B0 0A 00 00 52 8D 95 A8 FD FF FF E9 CB 76 E4 FF


http://img140.imageshack.us/img140/6561/shot000013yi.th.jpg (http://img140.imageshack.us/my.php?image=shot000013yi.jpg)http://img379.imageshack.us/img379/2403/shot000023ki.th.jpg (http://img379.imageshack.us/my.php?image=shot000023ki.jpg)http://img76.imageshack.us/img76/4321/shot000030xr.th.jpg (http://img76.imageshack.us/my.php?image=shot000030xr.jpg)
http://img151.imageshack.us/img151/6455/shot000046wu.th.jpg (http://img151.imageshack.us/my.php?image=shot000046wu.jpg)

bob1122
01.11.2005, 21:52
Damn, I think i better say this since some of you dont read, People that are having problems, will be the people that :

Don't know how to hex l2server :)
Used Livid's sky changing stuff (//enable_client_event 1)
Had tried to mod it before
Im not sure but i think also you must use his post that was in the skill effect thread (18 pages long one...)

Hope this helps ... , oh and if you want confirm, i tested this last night and it works allmost 100%.... Some bugs, but unless you did skill effect before you wont ever notice :)

Eliot
02.11.2005, 00:26
Ok, so now i have 3 COMPLETELY different abnormal effects codes...
where is the catch ? :|

bob1122
02.11.2005, 01:03
Want me to hold your hand through this >.< Pretty tricky huh'

Go to the skill effect page (18 page post) apply the post that Alien said, (THIS WONT WORK IF YOU USED LIVIDS REVISED SKY CHANGING STUFF, If you did use this then get a exe without it in it, (Like the one on the post pacific community release page, submited by, well i cant remember but its on second page.) ) then apply the hex in the first thread .... If i got my 10 year old brother to do this for me then you should no problem >.<.

Alien003
02.11.2005, 02:11
Want me to hold your hand through this >.< Pretty tricky huh'

Go to the skill effect page (18 page post) apply the post that Alien said, (THIS WONT WORK IF YOU USED LIVIDS REVISED SKY CHANGING STUFF, If you did use this then get a exe without it in it, (Like the one on the post pacific community release page, submited by, well i cant remember but its on second page.) ) then apply the hex in the first thread .... If i got my 10 year old brother to do this for me then you should no problem >.<.

? what hex from the skill effects thread? the one I posted there?
this new one replaces the old one, fixing the problem it had with poison.

edit: Im going to try a fix for the effects after death part tomorrow, i'll post if it works

Kanodin
02.11.2005, 03:41
Want me to hold your hand through this >.< Pretty tricky huh'

Go to the skill effect page (18 page post) apply the post that Alien said, (THIS WONT WORK IF YOU USED LIVIDS REVISED SKY CHANGING STUFF, If you did use this then get a exe without it in it, (Like the one on the post pacific community release page, submited by, well i cant remember but its on second page.) ) then apply the hex in the first thread .... If i got my 10 year old brother to do this for me then you should no problem >.<.

? what hex from the skill effects thread? the one I posted there?
this new one replaces the old one, fixing the problem it had with poison.

edit: Im going to try a fix for the effects after death part tomorrow, i'll post if it works


This is a very nice share, wish I could hex this good, good luck with the after death fix ^^. Thanks, I'll give you some of the what little cash I do have.

HF
02.11.2005, 04:56
Don't wanna be rude but i believe this is the full version:
...Phantom2005, where you get it? If from this attack (by serjr),
https://postpacific.loc-online.com/forum/viewtopic.php?p=22999#22999
then your code have error.
It is hex work correct? Sleep disable after attack?

Phantom2005
02.11.2005, 07:58
Works fine for me here.... u saw my pictures... haven't test if the effect still stays after death but it works fine for me...
And the best thing is i still got //enable_client_event ^^
And no this is not the one from the serjr...

Eliot
02.11.2005, 12:10
bob stop lecturing me, i applied ALL three abnormals with no problem, and i managed to get them to work with Livids Dusk/Dawn sky so please, stop lecturing me.

Im only confused because all three solutions are DIFFERENT ! And all of them work ! And im asking where's the catch.

Editing :

Okay, i tested all three, Phantoms and Serjr has very similar solutions, they differ by very few offsets, Aliens is more complicated.
Phantoms fix seems to be the best, Sleep dissapears after the attack, tested several times.
The only error i found is that when You kill rooted monster it falls with "stun stars" on the ground. Which is totally neat and cool looking ! :D

serjr
02.11.2005, 12:12
bob stop lecturing me, i applied ALL three abnormals with no problem, and i managed to get them to work with Livids Dusk/Dawn sky so please, stop lecturing me.

Im only confused because all three solutions are DIFFERENT ! And all of them work ! And im asking where's the catch.
because all of them made by different coders

blaher
02.11.2005, 12:35
works for me, not perfect but its cool :D

horyfilipe
02.11.2005, 19:21
Phantom's fix worked to attacked only. I mean, only attacked person can see the effect O_O

cyberdark
02.11.2005, 19:37
Try our patch, maybe it will be good for you. You can use l2scriptmaker to inject patch :wink:

serjr Fix works fine, Thanks.

Phantom2005
04.11.2005, 15:46
Phantom's fix worked to attacked only. I mean, only attacked person can see the effect O_O
It doesn't only work for attacked only.. it has been tested by me and my players and works fine...

horyfilipe
04.11.2005, 15:52
Weird, on my l2server it worked for attacked only.. but thanks anyway for your attention :)

khul
16.11.2005, 05:17
i applied ALL three abnormals with no problem, and i managed to get them to work with Livids Dusk/Dawn sky

Do you get any stability issues when usign such .exe?
Did you recode any of the HEX fix to get this they way you got it ?
OR simply aplied both Livid dusk moon+ Phantom AVE fix ?

Would be good to know.
Any news on the after-death effects? All my hexing just makes it crash so far :D

Phantom2005
16.11.2005, 07:56
my server has been running for 3 days without any crash but now i think it's time for a restart :)

HongK
06.07.2006, 02:50
Will this fix work with C2?

Alien003
06.07.2006, 14:46
yes ..it should work

seraphii
06.07.2006, 14:59
Dont work for me in client C4, anybody help in Hex. or share server C4 with this correction work.

HongK
07.07.2006, 02:35
alien can you check your pms .. I had a quick question for you

Thanks

Alien003
07.07.2006, 02:49
Dont work for me in client C4, anybody help in Hex. or share server C4 with this correction work.

in C4 it will work if you dont use any dll that would change the UserInfo and CharInfo packets

since all shared dlls change.... :P

I'm using this hex in my C4 server and it works

seraphii
07.07.2006, 19:22
Alien003, i can´t find this HEX in l2server.exe can you help me, how to Hex this files in the server????

HongK
08.07.2006, 18:09
seraphii it will depend on what l2server.exe you are using? Which one is it? Did it come with the community release recently? Or is it much older?

To Alien:

What were you looking for originally in the code to find NPCINFO? For example your code here:

00496636 . E8 B4E71100 CALL C3server.005B4DEF

004967D1 . E8 19E61100 CALL C3server.005B4DEF

005B4DEF /$ 83EC 14 SUB ESP,14
005B4DF2 |. FF7424 14 PUSH DWORD PTR SS:[ESP+14]
005B4DF6 |. 83C4 1C ADD ESP,1C
005B4DF9 |. 33C9 XOR ECX,ECX
005B4DFB |. 51 PUSH ECX
005B4DFC |. 51 PUSH ECX
005B4DFD |. 51 PUSH ECX
005B4DFE |. 51 PUSH ECX
005B4DFF |. 51 PUSH ECX
005B4E00 |. FFB3 B00A0000 PUSH DWORD PTR DS:[EBX+AB0]
005B4E06 |. 8B4D A8 MOV ECX,[LOCAL.22]
005B4E09 |. 8B55 C4 MOV EDX,[LOCAL.15]
005B4E0C |. 83EC 04 SUB ESP,4
005B4E0F \. C3 RETN

How did you come to find the address 00496636 to tell it to call your address where you wrote your own function? I assume thats just in the right place for npcinfo to get the information it needs from your code. I guess the real question I'm trying to ask is how did you know where NPCINFO was in the l2server.exe? What code around it told you that was NPCINFO?

I only ask because I think the addresses you use here are for a c3 l2server rather than the old c1 one that was modded to c2. So the addresses are completely different.

RetaL
08.07.2006, 19:00
Those worked fine,unless i didn't use linex.dll ...

seraphii
09.07.2006, 02:07
Im use the last l2 server with Linex, Im hex he with C4 party XP and SKill his work fine, but i tried find this hex in the server and not find where inject this :(, anyone can help me, anybody share the l2 server with this work?

HongK
09.07.2006, 02:16
I've been searching all referenced text strings in l2server and the only function I can find of the 3 that have been mentioned so far is void CCreature::CheckAbnormalVisualEffect()

The other two(void CNPC::SendNPCInfo(User *pUser, bool NewlyCreated) and void User::SendAbnormalStatusInfo()) I cannot find anywhere.

Can someone confirm these functions actually do exist.

Thanks


EDIT: Nevermind, I found them in IDA :D

HongK
10.07.2006, 01:31
ok so I'm interested in how the code works and from what I've gathered it looks like this is what's happening (and forgive me if I get something wrong here):

The old packet format for NPCINFO from C1 looks like this:

ddddddddddddddddddffffdddcccccSSddd

The problem here is that in C2 they increased this format to include getabnormaleffect state. The new format in C2 looked like this:

ddddddddddddddddddffffdddcccccSSddd (d)ddddc

The check for abnormal state goes where the "d" is that I put in parenthesis.

Now, what happens in the server is that it has no problem pushing the right values for the old c1 packet format as you can see here:

004966B3 . 8B45 98 MOV EAX,DWORD PTR SS:[EBP-68]
004966B6 . 83FF FF CMP EDI,-1
004966B9 . 0F94C2 SETE DL
004966BC . 51 PUSH ECX
004966BD . 8B4D 94 MOV ECX,DWORD PTR SS:[EBP-6C]
004966C0 . 4A DEC EDX
004966C1 . 23D7 AND EDX,EDI
004966C3 . 52 PUSH EDX
004966C4 . 8B55 8C MOV EDX,DWORD PTR SS:[EBP-74]
004966C7 . 50 PUSH EAX
004966C8 . 8B45 88 MOV EAX,DWORD PTR SS:[EBP-78]
004966CB . 51 PUSH ECX
004966CC . 8B4D 80 MOV ECX,DWORD PTR SS:[EBP-80]
004966CF . 52 PUSH EDX
004966D0 . 8B95 7CFFFFFF MOV EDX,DWORD PTR SS:[EBP-84]
004966D6 . 50 PUSH EAX
004966D7 . 8B45 E4 MOV EAX,DWORD PTR SS:[EBP-1C]
004966DA . 51 PUSH ECX
004966DB . 8B4D E0 MOV ECX,DWORD PTR SS:[EBP-20]
004966DE . 52 PUSH EDX
004966DF . 8B55 A4 MOV EDX,DWORD PTR SS:[EBP-5C]
004966E2 . 50 PUSH EAX
004966E3 . 51 PUSH ECX
004966E4 . 8B45 BC MOV EAX,DWORD PTR SS:[EBP-44]
004966E7 . DD85 40FFFFFF FLD QWORD PTR SS:[EBP-C0]
004966ED . 8B4D 90 MOV ECX,DWORD PTR SS:[EBP-70]
004966F0 . 52 PUSH EDX
004966F1 . 8B55 B4 MOV EDX,DWORD PTR SS:[EBP-4C]
004966F4 . 50 PUSH EAX
004966F5 . 8B45 9C MOV EAX,DWORD PTR SS:[EBP-64]
004966F8 . 51 PUSH ECX
004966F9 . 8B4D AC MOV ECX,DWORD PTR SS:[EBP-54]
004966FC . 52 PUSH EDX
004966FD . 8B55 CC MOV EDX,DWORD PTR SS:[EBP-34]
00496700 . 50 PUSH EAX
00496701 . 8B45 C8 MOV EAX,DWORD PTR SS:[EBP-38]
00496704 . 51 PUSH ECX
00496705 . 8B4D D0 MOV ECX,DWORD PTR SS:[EBP-30]
00496708 . 52 PUSH EDX
00496709 . 8B55 B8 MOV EDX,DWORD PTR SS:[EBP-48]
0049670C . 50 PUSH EAX
0049670D . 8B45 B0 MOV EAX,DWORD PTR SS:[EBP-50]
00496710 . 51 PUSH ECX
00496711 . 8B4D E8 MOV ECX,DWORD PTR SS:[EBP-18]
00496714 . 52 PUSH EDX
00496715 . 50 PUSH EAX
00496716 . 51 PUSH ECX
00496717 . E8 905C0F00 CALL L2Server.0058C3AC
0049671C . DD85 38FFFFFF FLD QWORD PTR SS:[EBP-C8]
00496722 . 50 PUSH EAX
00496723 . E8 845C0F00 CALL L2Server.0058C3AC
00496728 . DD85 30FFFFFF FLD QWORD PTR SS:[EBP-D0]
0049672E . 50 PUSH EAX
0049672F . E8 785C0F00 CALL L2Server.0058C3AC
00496734 . 8A4D 0B MOV CL,BYTE PTR SS:[EBP+B]
00496737 . 33D2 XOR EDX,EDX
00496739 . 84C9 TEST CL,CL
0049673B . 8B4B 18 MOV ECX,DWORD PTR DS:[EBX+18]
0049673E . 0F95C2 SETNE DL
00496741 . 50 PUSH EAX
00496742 . 8B43 1C MOV EAX,DWORD PTR DS:[EBX+1C]
00496745 . 52 PUSH EDX
00496746 . 8B95 6CFFFFFF MOV EDX,DWORD PTR SS:[EBP-94]
0049674C . 50 PUSH EAX
0049674D . 51 PUSH ECX
0049674E . 6A 22 PUSH 22
00496750 . 68 C80C5E00 PUSH L2Server.005E0CC8 ; ASCII "cddddddddddddddddddffffdddcccccSSddd"
00496755 . 52 PUSH EDX
00496756 . E8 15950400 CALL L2Server.004DFC70
0049675B . 81C4 A8000000 ADD ESP,0A8

The problem we have seeing any abnormal effects on mobs is because it needs one more "d" pushed. So Alien's code looks like it does that:

005B4DEF /$ 83EC 14 SUB ESP,14
005B4DF2 |. FF7424 14 PUSH DWORD PTR SS:[ESP+14]
005B4DF6 |. 83C4 1C ADD ESP,1C
005B4DF9 |. 33C9 XOR ECX,ECX
005B4DFB |. 51 PUSH ECX
005B4DFC |. 51 PUSH ECX
005B4DFD |. 51 PUSH ECX
005B4DFE |. 51 PUSH ECX
005B4DFF |. 51 PUSH ECX
005B4E00 |. FFB3 B00A0000 PUSH DWORD PTR DS:[EBX+AB0]
005B4E06 |. 8B4D A8 MOV ECX,[LOCAL.22]
005B4E09 |. 8B55 C4 MOV EDX,[LOCAL.15]
005B4E0C |. 83EC 04 SUB ESP,4
005B4E0F \. C3 RETN

First he xor's ecx so we got 0, since we aren't concerned with the last part of the new packet format. Then you can see 5 push ecx instructions which just pushes 0000 five times and then the important one is the last push which is PUSH DWORD PTR DS:[EBX+AB0]. Somehow that has to be the check for abnormaleffect state on the mobs. Now I've been trying to figure out how he knew it was EBX+AB0 which I'm sure works obviously from c3-c4, but I think it's wrong for C2. Alien can you explain where you got that instruction and why so it can help more people figure this out rather than just applying the patch and being done with it? Also, why the call to this code at 005B4DEF from those two addresses in NPCINFO? Going back to look at a C1-C2 l2server I see the first pushes for the NPCINFO packet start at 004966B3.

Alien003
10.07.2006, 02:38
the C3 base exe we all use already had that function, with 6 "PUSH 0"
I only changed the last one to "PUSH DWORD PTR DS:[EBX+AB0]"

0xAB0 is the offset in the CSharedData struct to store the active Ave
..it takes a while to find the correct offset values

HongK
10.07.2006, 03:24
Any pointers on what to look for?

mcrabben7
10.07.2006, 10:16
Practice. You can also debug other functions in L2Server to find that.

seraphii
10.07.2006, 12:19
Sorry, i can´t find this Hexa, what software you use for this?

seraphii
10.07.2006, 13:40
I´m use ultra 32edit tool. i cant find the code:

005B4DEF /$ 83EC 14 SUB ESP,14
005B4DF2 |. FF7424 14 PUSH DWORD PTR SS:[ESP+14]
005B4DF6 |. 83C4 1C ADD ESP,1C
005B4DF9 |. 33C9 XOR ECX,ECX
005B4DFB |. 51 PUSH ECX
005B4DFC |. 51 PUSH ECX
005B4DFD |. 51 PUSH ECX
005B4DFE |. 51 PUSH ECX
005B4DFF |. 51 PUSH ECX
005B4E00 |. FFB3 B00A0000 PUSH DWORD PTR DS:[EBX+AB0]
005B4E06 |. 8B4D A8 MOV ECX,[LOCAL.22]
005B4E09 |. 8B55 C4 MOV EDX,[LOCAL.15]
005B4E0C |. 83EC 04 SUB ESP,4
005B4E0F \. C3 RETN

in my L2server.exe. in my l2server the hexa number terminate in

HongK
10.07.2006, 13:45
Practice. You can also debug other functions in L2Server to find that.

Spending my weekends reversing the opcode for C3-C4 to make some of the patches work for C2 is giving me plenty of practice. Thanks for your one word tip, but it doesn't help too much for the question at hand.

Advice like, oh you don't know where CCreature::CheckAbnormalVisualEffect() is? Try checking .rdata or searching all referenced text strings in Ollydbg or searching the names in IDA. That's a nice informative tip that helps alot more than saying just practice.

seraphii
10.07.2006, 13:49
This is sreen for my Hexa in L2server.exe.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
imagem_204.jpg — 138742 байт

seraphii
10.07.2006, 13:51
i´m search in the wrong place?????

toolpunk
10.07.2006, 13:53
did you know ultraedit and hiew enumerate addresses different? ;)

HongK
10.07.2006, 14:09
I´m use ultra 32edit tool. i cant find the code:

005B4DEF /$ 83EC 14 SUB ESP,14
005B4DF2 |. FF7424 14 PUSH DWORD PTR SS:[ESP+14]
005B4DF6 |. 83C4 1C ADD ESP,1C
005B4DF9 |. 33C9 XOR ECX,ECX
005B4DFB |. 51 PUSH ECX
005B4DFC |. 51 PUSH ECX
005B4DFD |. 51 PUSH ECX
005B4DFE |. 51 PUSH ECX
005B4DFF |. 51 PUSH ECX
005B4E00 |. FFB3 B00A0000 PUSH DWORD PTR DS:[EBX+AB0]
005B4E06 |. 8B4D A8 MOV ECX,[LOCAL.22]
005B4E09 |. 8B55 C4 MOV EDX,[LOCAL.15]
005B4E0C |. 83EC 04 SUB ESP,4
005B4E0F \. C3 RETN

in my L2server.exe. in my l2server the hexa number terminate in

Use Ollydbg instead. I've found its a hell of alot faster and easier to make changes on the fly in Ollydbg rather than a hex editor. Once you've got L2server loaded up in Ollydbg just right-click over the code and select Go To -> Expression and type the address you want to go to. Alternately, you can do a binary string search and enter a hex string like 83EC 14 and it will find all occurrences of it.

As to why you may not find the above referenced code, it could be a number of things. 1. You are using a pre-C3 server like L2Server311, or L2Server411 2. You are not using the latest L2Server from the PP community release

Even using the latest PP release, you will not find the exact addresses listed above because the PP release uses a different address which I believe is 005B4DF0

seraphii
10.07.2006, 14:32
Can you share the last l2server for me?? in my l2server i use last version of linex, im edit the C4 xp party and skilllearning Hexa. its workfine, but effect in mob not show :(

seraphii
10.07.2006, 16:53
I´m using the software, Ollydbg how the friend sugest, i find the adress in l2server, how to hex in this softaware?? cantake me a hand ^^

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
imagem1_159.jpg — 119189 байт

HongK
10.07.2006, 17:55
The code from this thread is not there. That may be because you are using a linex.dll that already handles npcinfo, userinfo, and charinfo. If you want to find the code being discussed in this thread, download the PP community release and load that l2server in ollydbg and you will see the code there.

mcrabben7
11.07.2006, 09:57
Practice. You can also debug other functions in L2Server to find that.

Spending my weekends reversing the opcode for C3-C4 to make some of the patches work for C2 is giving me plenty of practice. Thanks for your one word tip, but it doesn't help too much for the question at hand.

Advice like, oh you don't know where CCreature::CheckAbnormalVisualEffect() is? Try checking .rdata or searching all referenced text strings in Ollydbg or searching the names in IDA. That's a nice informative tip that helps alot more than saying just practice.

Don't have to throw a bit of an attitude just because I told you to debug other functions in the L2Server. You asked how to find such offsets. I gave you the general answer for finding a general offset.

Functions like..

4f15d0 User::SendAbnormalStatusInfo()
4486c0 CCreature::CheckAbnormalVisualEffect()

Lists have been posted on the forums before, and if you're good at using the ITA table you can find where the function table points to, using special tools like LordPE or what some of those other programs are (never used them yet).

Next time please don't get an attitude about it. You act so sensitive to anything that isn't the exact answer you want.

seraphii
11.07.2006, 12:18
Thanks for all help, but i need one how to, i tryed everything, e nothing happens :(.anybody can help me please, i have many arquives ti share for this help.

mcrabben7
11.07.2006, 12:37
You have to add a push for AVE, and the other new variables at the end (on top of) the CharInfo packet and the UserInfo packet. There will be 3 places total, as well as added pushes for an NPC packet and somewhere else.

You need to make sure you do this on a PP release EXE, or it will probably be real hard to get it to work if it is your first time.

Alien003 posted the hex code and addresses. You should be able to go there using Olly, or HIEW, or another program and change it.

seraphii
11.07.2006, 12:58
can you share the last l2server.exe? please my msn: [email protected]

HongK
11.07.2006, 15:45
Practice. You can also debug other functions in L2Server to find that.

Spending my weekends reversing the opcode for C3-C4 to make some of the patches work for C2 is giving me plenty of practice. Thanks for your one word tip, but it doesn't help too much for the question at hand.

Advice like, oh you don't know where CCreature::CheckAbnormalVisualEffect() is? Try checking .rdata or searching all referenced text strings in Ollydbg or searching the names in IDA. That's a nice informative tip that helps alot more than saying just practice.

Don't have to throw a bit of an attitude just because I told you to debug other functions in the L2Server. You asked how to find such offsets. I gave you the general answer for finding a general offset.

Functions like..

4f15d0 User::SendAbnormalStatusInfo()
4486c0 CCreature::CheckAbnormalVisualEffect()

Lists have been posted on the forums before, and if you're good at using the ITA table you can find where the function table points to, using special tools like LordPE or what some of those other programs are (never used them yet).

Next time please don't get an attitude about it. You act so sensitive to anything that isn't the exact answer you want.

I didn't ask for a general offset. I asked for what process he used to find a specific offset. I'm well aware of the functions and list of functions and their addresses that Alien provided elsewhere in PP. I've looked at CCreature::CheckAbnormalVisualEffect() a number of times and I'm still trying to figure out how it stores the abnormal effect. Not everyone is a programmer or has had that background in their lives. My time is extremely limited and when I know it will save me a hell of a lot of time trying to figure out the proper procedure to go through to find my solution if someone else already knows it, I don't see any reason why someone can't explain it in more detail. However, some people have very arrogant attitudes and would rather not help out other people or explain to them what they know in detail. I don't see any real logic behind hiding information or only presenting bits and pieces of it. If I know something I'd rather explain it in detail and help save other people a whole lot of time going through what I just went through.

So maybe now you will understand my frustration when I ask a specific (not general) question and I get a general answer like "it takes a long time to find" or "practice". Keep in mind that's not asking for "this is the exact address where ave is stored". It's asking for a method by which you can reach that address. It's asking for your knowledge and explanation of the assembly instructions that LEAD to that address. That is a true answer. If the ultimate goal of these forums is progress and learning about how the Lineage 2 server operates, then I would expect the members of this forum would like to help express what they have learned so that other people may acquire the same knowledge. Instead, I often see people who want to hide what they have learned because they don't want someone having the same benefit of running the same server as they do. That appears to be the ultimate problem here. It's that the people who contribute run private servers in comepetition with each other. So really all everyone here is interested in doing is leeching off each other until they can start their own server and then hopefully get slightly better information to make their servers better than their competitors. I'd rather just do it for the fun and enjoyment of breaking things and taking them apart to learn about them.

Anyway, sorry for the long-winded post. It's just the way it is.

Alien003
11.07.2006, 23:10
sorry ..I didnt answer more directly in the first post coz the offsets are not easy to find, like mcrabben7, practice.

for finding the AVE , you can see in the CheckAbnormalVisualEffect that it has a cycle to calculate the AVE, then in the end of the cycle it sends a packet to the players

if you go see the packet format (lets say ..in a C1 l2j, since in C2+ that packet is not used) you can see that the AVE is the 3º value sent.

so you look at the code and see what register stored it, and look where it came from (or in this case where its going to be used again)

its easy to see

004487BE MOV DWORD PTR DS:[ESI+AB0], EDI

ESI is a register with the pointer to the CCreature struct (I know that coz at the start of the function there is a " MOV ESI, ECX " , and ECX at the start of a __thiscall function (class function) is allways the pointer to the instance)

so AB0 is the offset.

This is ONE way, using the packets is the easyer one.

but unfortunatly most of the times we just have the function flow ..and for that way I dont even know how to explain ...practice