Ok, repeating post, cuz i found a man who deleted mine... <_<
I wouldn't mind duel in verbal form, but not like that - that ruins a comunity.
Don't know how can that be useful on actual server, but in my testing (im working with skills stuff currently) it helps a lot so you don't need to run N clients on your PC.Ok, to the topic, thic simple hex removes check of target validity. So that any target considered valid. It doesn't remove peace zone etc etc.
Code:
005470EE /EB 2D JMP SHORT L2server.0054711D
That's it. Simple, huh? It was harder to find it then to change.
Small tip on how to find such things:
you can search exe for appropriate constant push. Like, in this case, server replied with "Invalid target" system message.
Look into systemmsg-e.dat (well, I used .txt, I hope you can decode it) Search for 'Incorrect target.' So that you will know the ID. It is 109dec = 6Dhex (you can use windows calc to convert if you need that (cf. if your brain works in decimal system instead of binary =p))
Ok, search l2server.exe for
0054710E . 6A 6D PUSH 6D
(it is 6a6d in opcodes if you wonder)
There will be just nine occurences. Now you can either add breakpoints there in debugger and then raise "Incorrect target" event, either use common sense. I used second if you wonder.
Then just scroll assembly up until you see some conditional jump that skips over this section or into this section and either change it to unconditional, or remove it (replace with nops) according to what you need.
Method is rather easy, isn't it. Longer to tell then to do.