[GUIDE] Adding Pets - Client

04/11/2011 01:06 ~*Kronic*~#1
Although this guide is not perfect and I know there are a few other files that come along with adding pets this guide covers all the major ones and will allow you to have functional pets. Here it goes... positive comments only please.

You Should Read These First:

[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

c3

monster/
textures/

These are the files that must be obtained from TQ games, you will need the mesh (.c3) and textures (.dds). If you don’t understand enough to obtain these yourself you can usually find the base files on pvpers but the rest you will need to do on your own.

data

egg/
petFace/128/
petFace/round/

The Data files are just the pictures you see. They can be obtained from TQ but making your own is always an easy alternative (google works great to). Once you have the .dds files just remember where you put them and what they are called. DDS converters can be found easily online or through a quick forums search.

ani

ItemMinIcon.ANI
Code:
[Item[COLOR=red]1071690[/COLOR]]
FrameAmount=1
Frame0=[COLOR=darkgreen]data/egg/b95.dds[/COLOR]
MapItemIcon.ANI
Code:
[[COLOR=red]1071690[/COLOR]]
FrameAmount=1
Frame0=[COLOR=darkgreen]data/egg/b95.dds[/COLOR]
Item/Pet ID - Make one of these entries for all 8 pet ID's
Location of Egg Image - Notice the only difference is the 'Item' at the top

PetFace.ANI

Code:
[Face[COLOR=red]1071690[/COLOR]]
FrameAmount=6
[COLOR=darkorange]Frame0[/COLOR]=[COLOR=green]data/PetFace/128/Face1071690.dds[/COLOR]
[COLOR=darkorange]Frame1[/COLOR]=[COLOR=green]data/PetFace/128/Face1071690.dds[/COLOR]
[COLOR=purple]Frame2[/COLOR]=[COLOR=green]data/PetFace/round/PetIcon-R1071690.dds[/COLOR]
[COLOR=blue]Frame3[/COLOR]=[COLOR=green]data/PetFace/round/PetIcon-R1071691.dds[/COLOR]
[COLOR=purple]Frame4[/COLOR]=[COLOR=green]data/PetFace/round/PetIcon-R1071690.dds[/COLOR]
[COLOR=blue]Frame5[/COLOR]=[COLOR=green]data/PetFace/round/PetIcon-R1071691.dds[/COLOR]
Item/Pet ID - Make one of these entries for the 6 pet ID's
Location/Name of the images
Frame0,1 - The pet image in your bag
Frame2,4 - The pet image on top of screen alive
Frame3,5 - The pet image on top of screen dead

ini

3dmotion.ini

Code:
0000[COLOR=green]968[/COLOR]000100=c3/monster/[COLOR=green]968[/COLOR]/100.c3
0000[COLOR=seagreen]968[/COLOR]000101=c3/monster/[COLOR=seagreen]968[/COLOR]/101.c3
[COLOR=Purple]0000968000110[/COLOR]=c3/monster/968/110.c3
0000968000111=c3/monster/968/111.c3
0000968000120=c3/monster/968/120.c3
0000968000121=c3/monster/968/121.c3
0000968000125=c3/monster/968/100.c3
0000968000190=c3/monster/968/190.c3
0000968000250=c3/monster/968/100.c3
0000968000311=c3/monster/968/311.c3
0000968000321=c3/monster/968/321.c3
0000968000330=c3/monster/968/330.c3
0000968000331=c3/monster/968/331.c3
0000968000340=c3/monster/968/340.c3
0000968000341=c3/monster/968/340.c3
0000968000350=c3/monster/968/350.c3
0000968000351=c3/monster/968/351.c3
0000968000352=c3/monster/968/350.c3
0000968000390=c3/monster/968/350.c3
0000968000391=c3/monster/968/350.c3
0000968000392=c3/monster/968/350.c3
0000968000393=c3/monster/968/350.c3
0000968000394=c3/monster/968/350.c3
0000968000395=c3/monster/968/350.c3
0000968000396=c3/monster/968/350.c3
0000968000397=c3/monster/968/350.c3
0000968000398=c3/monster/968/350.c3
0000968000550=c3/monster/968/330.c3
0000968000551=c3/monster/968/330.c3
0000968000900=c3/monster/968/350.c3
0000968000905=c3/monster/968/351.c3
0000968000910=c3/monster/968/350.c3
0000968000915=c3/monster/968/351.c3
0000968000920=c3/monster/968/350.c3
0000968000925=c3/monster/968/351.c3
0000968000930=c3/monster/968/350.c3
0000968000935=c3/monster/968/351.c3
0000968000940=c3/monster/968/350.c3
0000[COLOR=seagreen]968[/COLOR]000945=c3/monster/[COLOR=seagreen]968[/COLOR]/351.c3
This is probably the hardest file to make and understand when adding a pet. The easiest way to do it is probably just to find an existing pet with all the same .c3 names. For example if the pet you want to add has exactly the same .c3 as above all you need to do is change the re-occuring 968 to the location/lookface id of your pet. If it has others like 990.c3, 551.c3, ect. then you will need to look through your 3dmotion.ini until you find one that fits.

Each 3dmotion id (0000968000110) is linked to an action, those id's also link to the .c3 file name so in essence each .c3 file is a different motion, some of which repeat many times.

3dobj.ini
Code:
[COLOR=red]968000000[/COLOR]=[COLOR=seagreen]c3/monster/968/1.c3[/COLOR]

3dtexture.ini
Code:
[COLOR=red]968000000[/COLOR]=[COLOR=seagreen]c3/texture/968.dds[/COLOR]
Location of the file
ID that links to 3dSimpleObj/armor

3dSimpleObj.ini

Code:
[ObjIDType[COLOR=red]968[/COLOR]]
PartAmount=1
Part0=[COLOR=blue]968000000[/COLOR]
Texture0=[COLOR=seagreen]968000000[/COLOR]
The lookface of the pet
3dmotion/3dobj link
3dtexture link

3dSimpleRole.ini

Code:
[Pet[COLOR=red]2250[/COLOR]]
Look=[COLOR=seagreen]968[/COLOR]
Size=65
XPos=-59
YPos=-135
3DStandByMotion=[COLOR=sandybrown]0000968000100[/COLOR]
3DBlazeMotion=[COLOR=sandybrown]0968000101[/COLOR]
F3DEffect=monster07
Last 4 digits of pet id - need to do this for the 6 pet IDs
Lookface in 3dSimpleObj
The motion of pet in the pet bag


armor.ini

Code:
[968000000]
Part=1
Mesh0=[COLOR=royalblue]968000000[/COLOR]
Texture0=[COLOR=red]968000000[/COLOR]
MixTex0=0
MixOpt0=0
Asb0=5
Adb0=6
Material0=default
ID of 3dobj
ID of 3dtexture

I'm not very good at making guides but I felt like I should contribute something back to the community. If you have any constructive comments I would be happy to listen and update/add anything I have forgotten or that wasn't correct. Hopefully this can be of some help to people...
04/11/2011 03:28 ~*Maggy*~#2
Good and helpful very awesome
04/11/2011 05:13 hio77#3
awesome guide kronic, just to expand on it a little each 3d motion id is linked to an action, those ids also link to the c3 file name

350 is a common action (don't ask me which because i don't quite remember and i don't have my source with me to open it up and check)

but that is basically the actions c3 file to use to do the movements it needs to do
04/11/2011 08:55 javairc#4
very helpful. nice..
04/11/2011 12:02 pimpjuc#5
Best guide for adding pets so far Nice Work! all noobs should read it.
Keep it up bro :)
04/11/2011 13:17 ~*Kronic*~#6
Quote:
Originally Posted by hio77 View Post
awesome guide kronic, just to expand on it a little each 3d motion id is linked to an action, those ids also link to the c3 file name

350 is a common action (don't ask me which because i don't quite remember and i don't have my source with me to open it up and check)

but that is basically the actions c3 file to use to do the movements it needs to do
I will make thge adjustment tonight when i get time :)

ty all for the positive comments! Maybe I should add an SQL section to?
04/11/2011 15:21 wolfvb#7
thanks man very match for this guide the is very helpful
04/11/2011 16:30 ~Sword~Stalker~.#8
what should i say. its really super :D . try to give more thanks , lets get him out of here :p
04/12/2011 09:31 hio77#9
Quote:
Originally Posted by ~*Kronic*~ View Post
I will make thge adjustment tonight when i get time :)

ty all for the positive comments! Maybe I should add an SQL section to?
if you want, would make it a well rounded guide

personly ild surggest you do the sql from the excel view as ild say that would be easiest for everyone to understand :rolleyes:
04/15/2011 18:30 javairc#10
agree with hio77 ^^,
10/05/2012 01:52 ryumaki23#11
So The Pet ID is 1082250 I guess?

EGG ID ??? how do you find that
10/12/2012 02:06 ~*Kronic*~#12
Quote:
Originally Posted by ryumaki23 View Post
So The Pet ID is 1082250 I guess?

EGG ID ??? how do you find that
1082250 is the eudemon bag ID. So when its in one of the 6 slots in your eudemons bag it will have a 108 ID.

The egg ID doesn't matter because it is just like any other simple item. In the action just delete whatever ID you chose in itemtype (xxxxxx) and add the bag id of the pet (108xxxx).