xShady91l Posted October 7, 2013 Posted October 7, 2013 hello my frends on this tutorial i will show you how to add Custom NPC on Tauti Server i'm using Allengc File Editor which can be found here: Allengc File Editor and pack L2jeuropa which can be found here: L2JEuropa Credits for FileEditor is to Allengc and for Project is to vegax987 First u need to create a new file in data/xml/npc or u can use one which exist but sould have space for more npc's there id's are from X to 99 like for example 60000-60099 there can be found npc with id from 6000 to 60099 if u wanna npc with id 60100 u should make a new file with name 60100-60199 so now lets start edit your file: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE list SYSTEM "npc.dtd"> <list> </list> this text should be in ur file i forgot to say that we should save it at type xml: 6000-60099.xml other wise it will not work then between this 2 lines <list> and </list> we will add your own npc wich start with code <npc> and end at this code </npc> Example: <npc id="60000" name="Test" title="MaxCheaters"> <set name="aggroRange" value="0"/> <set name="ai_type" value="CharacterAI"/> <set name="baseAtkRange" value="40"/> <set name="baseCON" value="75"/> <set name="baseCritRate" value="40"/> <set name="baseDEX" value="41"/> <set name="baseHpMax" value="4228"/> <set name="baseHpRate" value="1.0"/> <set name="baseHpReg" value="7.5"/> <set name="baseINT" value="42"/> <set name="baseMAtk" value="470"/> <set name="baseMAtkSpd" value="333"/> <set name="baseMDef" value="217"/> <set name="baseMEN" value="20"/> <set name="baseMpMax" value="1345.8"/> <set name="baseMpReg" value="2.7"/> <set name="basePAtk" value="689"/> <set name="basePAtkSpd" value="253"/> <set name="basePDef" value="296"/> <set name="baseRunSpd" value="120"/> <set name="baseSTR" value="78"/> <set name="baseShldDef" value="0"/> <set name="baseShldRate" value="0"/> <set name="baseWIT" value="78"/> <set name="baseWalkSpd" value="50"/> <set name="castle_id" value="1"/> <set name="collision_radius" value="40.0"/> <set name="collision_height" value="26.0"/> <set name="level" value="70"/> <set name="rewardExp" value="0"/> <set name="rewardRp" value="0"/> <set name="rewardSp" value="0"/> <set name="shots" value="NONE"/> <set name="type" value="Merchant"/> <skills> <skill id="4416" level="18"/> <!--Dwarves--> </skills> <attributes> <defence attribute="fire" value="150"/> <defence attribute="water" value="150"/> <defence attribute="wind" value="150"/> <defence attribute="earth" value="150"/> <defence attribute="holy" value="150"/> <defence attribute="unholy" value="150"/> </attributes> </npc> <npc id="60000" name="Test" title="MaxCheaters"> this is our first line there is npc's ID name and title and we should make how we want this is our first npc and id should be first one if ur file name is 5000-5099 npc id would be 5000 like for first one then you change the name which will show in game and title then we have to change our <set name="collision_radius" value="40.0"/> <set name="collision_height" value="26.0"/> this 2 lines have to be exacly same as our tamplate which we are using if they are not same npc cloud be at air or even worse intro ground its look ugly :D when radius and height are same ur npc will be at ground normal how to have to be :P now we have to select npc type <set name="type" value="Merchant"/> it can be any type Monster/Teleporter i don't know all types here u have to check then by ur self at this xml fails u can find every thing this is most importnant things for server side now we have to make some changes at client side becouse there too much diffrence from server to server before there was navicat u put ur npc inside make 1-2 htm fails and u are done but now its bit harder u need file editor from Allengc which i'm using u can find link for it at the top of topic then u need to open npcgrp.dat then find ur template line/id copy whole line and put it at the end and do not forgot to remove all empty spaces there should be no any empty space after line becouse file editor will give you error like for example: 60000 LineageMonster7.orbis_arena_beast LineageMonsters7.orbis_arena_beast_m00 2 LineageMonstersTex6.orbis_arena_beast.orbis_arena_beast_t00 LineageMonstersTex6.orbis_arena_beast.orbis_arena_beast_t01 0 4 4416 3 5467 1 1.00000000 0 0 5 MonSound.Hit_Normal_7 MonSound.Hit_Metal_5 MonSound.Hit_normal_12 MonSound.Hit_Metal_1 MonSound.Hit_Metal_14 3 MonSound15.orbis_arena_beast_dmg_1 MonSound15.orbis_arena_beast_dmg_2 MonSound15.orbis_arena_beast_dmg_3 0 0 0 LineageEffect.p_u002_a 0 50.00000000 250.00000000 50.00000000 0 1 0 0 0 0 0 -1.00000000 a, 0 then u go to npcname.dat there u should add ur npc name and it should be at last line w/o any free spaces after it Example: 60000 a,test\0 a, 9C E8 A9 -1 now when u done all this u are almost ready u have to restart your Client and Server to Accept new changes when u done login to server and spawn your npc and it will be there visible and usable what left you to do is to add some htm fails at default folder Video Guide: and on end of all, all credits for this guide is mine FileEditor Credits Allengc L2jeuropa project credits to vegax987 and i'm sorry for my bad english i hope u understand something :D this guide is for newbies please pro developers don't judge me :S :D Quote
FirefoxAurora Posted October 12, 2013 Posted October 12, 2013 PS / Server/ Installing HALO/ Lineage,exe... OP Machine? :D :D !!! Plus... wonderfull music :)Btw tanks for tutorial :) Quote
xShady91l Posted October 13, 2013 Author Posted October 13, 2013 PS / Server/ Installing HALO/ Lineage,exe... OP Machine? :D :D !!! Plus... wonderfull music :) Btw tanks for tutorial :) its regular laptop :D this yellow icon is aim player not installing halo :D Quote
3emu Posted May 18, 2014 Posted May 18, 2014 How to add soulshot to a npc? like : <set name="shots" value="SOUL_BSPIRIT" /> But normal soulshots? Quote
3emu Posted May 21, 2014 Posted May 21, 2014 How can i make when you kill a npc to reward fame points?? Quote
3emu Posted June 4, 2014 Posted June 4, 2014 А shady как да ги направя тия нпц-та да ме удрят със соулшоти и да ми пускат фейм? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.