Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   tech note on how to add mobs (https://postpacific.loc-online.com/showthread.php?t=95)

Digital 19.02.2005 12:53

tech note on how to add mobs
 
thx to nariamu

Now to give back to the community what I have learnt so far about adding C2 Monsters.

Server side:

Files need to be edit: npcdata.txt , npc_pch.txt, ai.obj (NPC skill we will talk later in another post)

-=Important step before editing server file=-
get a 411 decrpt/encrpt tool and decrypt all your C2 client files in C2/system folder. Once u finish u may move on to edit the server file. You need those decrypt client file to reference back and forth.

1. In yor npcdata.txt copy & paste any NPC data example Doom_knight. Now Open the dec-npcgrp.txt and choose a new npc u wish to add into your npcdata.txt file.
2. Things you will need to edit are : NPC type, npc_id, npc_name, level, slot_rhand (if it hold something remove it), base_attack_type (each NPC react differently), base_attack_speed, collision_radius, collision_height, clan={** ( this is important make sure it is null or u will have an error at the clan relationship script when you load up l2server.exe. and finally npc_ai={[vale_master_b]**.
3. Once u have added all the entries and compare it with the data in dec-npcgrp.txt. The next step is add the npc_name & npc_id into the npc_pch.txt file. [vale_master_b] = 1012377.
4. Now the next step is add the npc info into your ai.obj file. all you have to add is this.

class npc_name : ai_reaction
class_end

npc_name = the name of your new monster
ai_reaction = warrior_passive | warrior_aggressive | warrior_passive_casting_ddmagic | warrior_aggressive_casting_ddmagic | warrior_aggressive_physicalspecial | warrior_passive_casting_enchant_self

The choice is up to u. personally lets start with easy one like the warrior_aggressive . Save everything you are done on the server side.

Client side:

Important: Decrpyt all your file on your C1withC2patch/system folder.

1. Open up the dec-npcgrp.txt, dec-npcname-e.txt, and dec-mobskillanimgrp.txt in your C2 Official client.
2. Open the npcgrp.clear.txt, npcname-e.clear.txt, and mobskillanimgrp.clear.rxt in your C1withC2patch non-official client.
3. Now just transfer the info from C2 to your C1 file and encrypt it all back.
4. This last step is important because it let u see your new monster movement and animation. you must go into your C2 official client adn copy all of the following files into your C1 folder.

What to copy:
Animations folder copy Everything to your C1 Animation folder.
Sound folder copy everything into your C1 sound folder
SysTextures folder copy all file that end with *Tex.utx to your C1 SysTextures folder
system folder copy Lineagedeco.u, LineageEffect.u, LineageMonster.int, LineageNpc.u into your C1 system folder.

Final testing stage: Log into game and summon up a mob and have fun. Remember those that don't have the patch on their client will crash. So make sure u go somewhere there are no one and do your summon.


All times are GMT. The time now is 15:13.