Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   //create_pet for wyverns (https://postpacific.mmorpg-game.online/showthread.php?t=488)

Livid 24.04.2005 17:01

//create_pet for wyverns
 
First of all, I suppose that you have applied
Strider: https://postpacific.mmorpg-game.onli...opic.php?t=323
and
Wyvern data: https://postpacific.mmorpg-game.onli...opic.php?t=368

So, now we can continue. It is NOT a guide, it is more likely technical documentation :)

First of all,
Function for creating wyvern
Code:

.006B81E0: 8B550C                      mov        edx,[ebp+0C]
.006B81E3: B95F900F00                  mov        ecx,0000F905F
.006B81E8: 51                          push        ecx
.006B81E9: B8581B0000                  mov        eax,000001B58
.006B81EE: 50                          push        eax
.006B81EF: 52                          push        edx
.006B81F0: E8FB48E9FF                  call      .00054CAF0
.006B81F5: 83C40C                      add        esp,00C
.006B81F8: 32C0                        xor        al,al
.006B81FA: 8B4DF4                      mov        ecx,[ebp-0C]
.006B81FD: 64890D00000000              mov        fs:[0],ecx
.006B8204: 5F                          pop        edi
.006B8205: 5E                          pop        esi
.006B8206: 5B                          pop        ebx
.006B8207: 8BE5                        mov        esp,ebp
.006B8209: 5D                          pop        ebp
.006B820A: C3                          retn

Now we got it, let us modify function, responding to //create_pet
Code:

.004143DC: 83F807                      cmp        eax,007 //: We changed 006 here to 007, 8 will be our code for wyvern
.004143DF: 0F87D8000000                ja        .0004144BD
.004143E5: FF248550CF5B00              jmp        d,[005BCF50][eax*4]
.004143EC: 8B4D08                      mov        ecx,[ebp][08]
.004143EF: 68DCCF5B00                  push        0005BCFDC
.004143F4: 68FCCA5B00                  push        0005BCAFC
.004143F9: E8B2200F00                  call      .0005064B0

And now, add wyvern creation function to table:
5BCF50:
00414411 == wolf
0041443C == hatchling of wind
00414467 == hatcling of stars
00414492 == of twilight
004245F0 \
004245F0 | == strider of anyhing
004245F0 /
006B81E0 == wyvern

or in raw hex:
Code:

005BCF50:  11 44 41 00-3C 44 41 00-67 44 41 00-92 44 41 00
005BCF60:  F0 45 42 00-F0 45 42 00-F0 45 42 00-E0 81 6B 00

Now, we can use
//create_pet 8
to create wyvern pet. Good luck.
P.S. If you read carefully through "Working strider Thread" then you saw my mini-guide on hexing l2server for striders.
For wyverns, it is mostly the same.

Digital 24.04.2005 21:38

good job :)

deva 24.04.2005 23:32

good job

just moded my l2C2server exe and it works nicely.

lamnh 25.04.2005 08:14

I Digital's post :" U want wyvern's? do it urself here "
I see I must add some lines in npcgrp.txt ,npcname-tw.txt ,etcitemgrp.txt ,itemname-tw.txt,
1- I have npcgrp.txt and etcitemgrp.txt but It's in encrypt mode 411 , have I decrypt it with l2encdec254 and used loader.exe ?
2- I dont have npcname-tw.txt ,itemname-tw.txt .

Sure I done add some line in server file and done hex l2server.exe for //create_pet 8. Can someone can show me the way to add it . THX

deva 25.04.2005 08:20

if you dont have npcname-tw.txt ,itemname-tw.txt

just use the ones you do have i my self used my itemname-e.txt, npcname-e.txt

translating the text of course to english as needed.

lamnh 25.04.2005 12:46

But can I decrypt it with l2encdec254 and used loader.exe ? THX

Livid 25.04.2005 14:31

Again, I recommand you
https://postpacific.mmorpg-game.onli...opic.php?t=485
or l2encdec w/patcher

SoaPy 25.04.2005 17:52

a few question Livid :

1- only i have to chage this :
005BCF50: 11 44 41 00-3C 44 41 00-67 44 41 00-92 44 41 00
005BCF60: F0 45 42 00-F0 45 42 00-F0 45 42 00-E0 81 6B 00
??

2- And this number in hex what is 006B81E0, Are 000B81E0 or 001B81E0 ?

Please answerme and i post the l2server with this :D

lamnh 25.04.2005 17:53

Ok THX alot Livid

deva 25.04.2005 18:25

hm i had to locate a new area my self in place of using 006B81E0 for the code

since this would have placed it within the import table :)


i my self used file address : 1B4DD7 (5B4DD7) and had to make a small touch up to the above code so the call would be compatible with my exe

anyone adding this code should use HIEW to input it :)

Livid 25.04.2005 19:03

Firstly, I will answer on second question.
006B81E0 is 006B81E0. Yes, because normal win PE addressation starts with 400000, not 000000 :)
Ok, it will be 2B81E0 according to Hex Workshop, UltraEdit, etc (it is a bunch of zeros there, you won't miss it).
And now... well, question #1.
I did not quite understand a question... Well, I dunno whos english is better...
So, I will just explain what this fragment means...
You should remember that in "Working Strider Thread" we had to write new table, containing addreses to functions, that actually create pets. Here we just add new address for wyvern function. And, as you see it is placed at address 006B81E0. Everthing this:
005BCF50: 11 44 41 00-3C 44 41 00-67 44 41 00-92 44 41 00
005BCF60: F0 45 42 00-F0 45 42 00-F0 45 42 00
must be already in ur server.

SoaPy 25.04.2005 20:33

well well tnx to you i made it :D, please test and tell me if this works,i cant do it because my server is down for this days :(.

Stazis 25.04.2005 22:43

Works fine about creating a pet - even summoning is fine.

But there is a problem - crashing client sometimes during pet existing.
Cann't update abnormal state. No logical period.

Or i'm stupid and do smth wrong. And by the way - attack_effect of wyvern need to be corrected.

SoaPy 25.04.2005 23:45

here is the file

http://drnagel.dyndns.org/ftp/L2Server411.rar

Livid 26.04.2005 08:08

Stazis: I have no issues abt crashing. Animation is a little bit messy sometimes, I think that's because we manually add wyvern to C2 client...
I have pet fix patch from https://postpacific.mmorpg-game.onli...opic.php?t=343 -may be it's it... or not. Anyway, i'll look into.

lamnh 26.04.2005 09:56

Pet fix is fine , we never has d/c but pet dun have skill , right?

Livid 26.04.2005 10:27

Pet do have skills, there is no handler for those in server. Currently looking into it.

Livid 26.04.2005 12:04

SoaPy, your ftp's down.

hoahongtim 26.04.2005 13:52

any one have full guild ... how to create pet step by step ... i very stupit about assemble ... looking this anything can not understand ... hix, help please ... i very like L2 ... very like ...

(sorry my english)

deva 26.04.2005 16:01

on a side note i was just wondering if it was really a good idea to write the proc into the rdata section of the exe vs as i did which was place it at the end of the code section.. since i'm thinking this might lead to making your server unstable in my opinion :)

Livid 26.04.2005 18:19

Hmmm.... There is not much difference actually... And it is stable enough to work for... erm... already 2 days... Oh, nevermind. Maybe you're right.

deva 26.04.2005 20:31

well i suggest maybe relocation to 5B4DD7 thats at the end of the code listing and theres around 200h-400h depending of free space and the code proc is only 2Ch in size anyway :)

SoaPy 26.04.2005 21:38

here my file, test a tell me if its works

deva 27.04.2005 01:42

oh not saying it wont work its just not smart to stick code in a data section can cause problems :)

the posted code works nicely no doubt just offering a suggestion to avoid possible problems

SoaPy 27.04.2005 02:09

is only a help for that person didnt know how to hex a file :D, only try to help to my way. If all dont want to i share this file, then tell me and i delete the attachment :D. Dont worry is not a problem :P.

deva 27.04.2005 02:17

this one i picked up somewhere it has working castle siege and create pet 5 6 7 + 8 which i added using the above code with a small change in placement address and stuff

well since you were nice enough to post yours
heres mine

Dubie 27.04.2005 05:54

Nice, both of you rock.

Tried Deva's with Siege fix hopefully.
Here is what I get when I try to create_pet 8
http://www.dubie.net/createpet8.jpg
All the other create_Pets worked fine.
Have not tried the Siege yet, tho that is what I was really looking for since I could not find the post for it anymore.
Will let you know about that.

Appreciate you all posting these.

Thanks for your time,
Dubie

deva 27.04.2005 06:35

did you follow the instructions from the 1st post about in putting the data for the wyvern?

as for the castle siege stuff you still need the door and castle data files or to make yours match the right ID's used by the C2 client

SoaPy 27.04.2005 11:52

i found where is your problem deva, you dont put this part in your c2testserv :

.006B81E0: 8B550C mov edx,[ebp+0C]
.006B81E3: B95F900F00 mov ecx,0000F905F
.006B81E8: 51 push ecx
.006B81E9: B8581B0000 mov eax,000001B58
.006B81EE: 50 push eax
.006B81EF: 52 push edx
.006B81F0: E8FB48E9FF call .00054CAF0
.006B81F5: 83C40C add esp,00C
.006B81F8: 32C0 xor al,al
.006B81FA: 8B4DF4 mov ecx,[ebp-0C]
.006B81FD: 64890D00000000 mov fs:[0],ecx
.006B8204: 5F pop edi
.006B8205: 5E pop esi
.006B8206: 5B pop ebx
.006B8207: 8BE5 mov esp,ebp
.006B8209: 5D pop ebp
.006B820A: C3 retn

deva 27.04.2005 16:42

yes i did, Livid's posted code is located in the code section of the .exe not the .rdata section look at address 5B4DD7 its located in a code cave at the base of the code section this should avoid any possible problems that would form from using the 006B81E0

When you place code outside of the code section of an .exe your risking it becoming unstable after a while tho it might work its never a good idea.

the exe i put up is complete with the create_pet 8 command using the code posted in this thread its just located within the code section :)

and has the pointer address to the command ajusted to point to the new location if your going to use it make sure you follow everything Livid posted in the 1st post of this thread :)

again i say nice job to Livid for the code and thanks for posting it :)

Dave2005 27.04.2005 16:49

Great work! Tested it and it works great, without any client / server crash. Server file is stable btw, there are atm 400 ppl at my server with your server file for wyverns.



edit: Sieges works too :wink:

Stazis 28.04.2005 01:02

Quote:

Originally Posted by Dubie
Nice, both of you rock.

Tried Deva's with Siege fix hopefully.
Here is what I get when I try to create_pet 8
http://www.dubie.net/createpet8.jpg
All the other create_Pets worked fine.
Have not tried the Siege yet, tho that is what I was really looking for since I could not find the post for it anymore.
Will let you know about that.

Appreciate you all posting these.

Thanks for your time,
Dubie

just check is your wyvern ID in npcdata is 19999 and wyvern class is in ai.obj

my is 12xxx - so i had to correct those push datas
my food_for_wyverns has different ID in itemdata too

BTW - strange that ID are sticked at .exe - impossible to change it - i checked - this was done for wolf and hatchling in defaul build.

torrentpimp 28.04.2005 01:37

ok 5,6,7,8 work 1 (wolf) kills the server hehehehe am I missing something?
thought wolf used to work?

torrentpimp 28.04.2005 01:42

nm found the problem..........client side

rykra 28.04.2005 12:00

Quote:

Originally Posted by SoaPy
here my file, test a tell me if its works

the pet-fix server side crash after 2 or 3 hours, after i put back the old l2server411 still working for 18 hours.

Livid 28.04.2005 19:17

deva, looking into exe u provided... hmmm... strange actually, some strange stuff at the end of resource zone... unimpt stuff in unused parts of exe... Wel, dunno, mb im dumb... Where did u get it originally btw?

deva 29.04.2005 02:52

pick'd it up off a post i think that was on here for working castle doors it came with a castle and door server files and it does work when using the files

its also stable i've had it up for days no problems either i didnt really go to indepth through the code been busy these days heh

but if you need the files for castle and doors to try it i can send you em

Livid 29.04.2005 08:06

Would be nice to hack into :) If you wish, you can send it to livid at fromru.com

Livid 29.04.2005 12:58

It is, of course, possible, to change this code... And not too hard either, but we'll need data for wyverns... You see? Of course, I can write code for wyvern creation for all three types, but I think we'll need some rellocation of code parts. On your request, I will rewrite function. Other you will shurely able to do yourself.

Christoff 01.05.2005 16:40

some1 pls post the C1 hexed L2Server.exe :(
help pls(


All times are GMT. The time now is 22:40.