![]() |
Adding NPC's & area
Sup all,
Just trying to add a couple new NPC's to a different area. Guard & Warehouse NPC's If there is any easier way please let me know. The cords for the area are wrong I just have not added them yet wanted to see if I was even close first What I have layed out so far: [Server Side] AI.OBJ WareHouse NPC's Code:
class warehouse_chief_Sluginator : master_lv3_wareThis is just a defualt Guard NPC in the AI File I was just going to use it. Code:
class guard : default_npcCode:
class guard_JustInTime : guard_standNPCPOS.TXT WareHouse NPC's Code:
territory_begin [21_23_NPC_031201_01] {{115110;76603;-2798;-3324};{115469;76363;-2798;-3324};{115747;77149;-2798;-3324};{115504;77247;-2798;-3324}} territory_end GrimKiller & JustInTime Code:
territory_begin [21_23_NPC_031201_02] {{147155;32035;-2560;-2360};{147781;32020;-2560;-2360};{147783;32228;-2560;-2360};{147157;32225;-2560;-2360}} territory_end NPCDATA.TXT WareHouse NPC's Code:
npc_begin warehouse_keeper 13010 [__warehouse_keeper_sluginator] level=70 exp=4296345xx.xx5 acquire_exp_rate=15 undying=1 can_be_attacked=0 acquire_sp=4000 race=dwarf sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} magic_list={} max_item=50 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} slot_chest=[] slot_rhand=[] slot_lhand=[] base_attack_type=fist base_can_penetrate=0 base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=30 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase=40 mp_increase=7 org_hp_regen=7.5 org_mp_regen=2.7 ground_low={80;0;10} ground_high={120;-30;30} underwater_low={50;0;10} underwater_high={0;0;30} fly_low={0;0;10} fly_high={0;-30;30} float_low={0;0;10} float_high={0;-30;30} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=24xx.xx818899627 org_mp=1345.8 base_defend=2xx.xx597408024 base_magic_attack=4xx.xx4627426724 base_magic_defend=2xx.xx8467292763 base_physical_attack=6xx.xx3725587608 physical_hit_modify=4.75 physical_avoid_modify=0 base_attack_speed=253 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=8 collision_height=17 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[default_npc]} corpse_time=7 no_sleep_mode=0 npc_endGuard GrimKiller Code:
npc_begin guard 13001 [guard_GrimKiller] level=75 exp=9000000xx.xx5 acquire_exp_rate=15 undying=0 can_be_attacked=0 acquire_sp=4000 race=human sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} magic_list={} max_item=80 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} slot_chest=[] slot_rhand=[bow] slot_lhand=[] base_attack_type=bow base_can_penetrate=0 base_attack_range=1100 base_damage_range={0;0;80;120} base_rand_dam=55 str=60 int=21 dex=40 wit=20 con=63 men=10 hp_increase=80 mp_increase=27 org_hp_regen=9.5 org_mp_regen=20 ground_low={80;0;10} ground_high={160;-30;30} underwater_low={50;0;10} underwater_high={0;0;30} fly_low={0;0;10} fly_high={0;-30;30} float_low={0;0;10} float_high={0;-30;30} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=24xx.xx818899627 org_mp=5000 base_defend=2xx.xx597408024 base_magic_attack=4xx.xx4627426724 base_magic_defend=2xx.xx8467292763 base_physical_attack=15xx.xx519825567 physical_hit_modify=0 physical_avoid_modify=20 base_attack_speed=227 base_reuse_delay=500 base_critical=8 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=8 collision_height=24 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[guard_GrimKiller];{[fnHi] = [guard_coleman001.htm]}} corpse_time=7 no_sleep_mode=0 npc_endNPC_PH.TXT WareHouse NPC's Code:
[guard_Sluginator] = 10013010Code:
[guard_grimkiller] = 10013001[Client Side] NPCGRP.TXT WareHouse NPC's Code:
npc_begin npc_id=13010 npc_name=[__warehouse_keeper_klug] npc_speed=1 class_name=[LineageNPC.a_warehouse_keeper_MDwarf] mesh_name=[LineageNPCs.a_warehouse_keeper_MDwarf_m00] texture_name={[LineageNPCsTex.a_warehouse_keeper_MDwarf_m00_t00_b00];[LineageNPCsTex.a_warehouse_keeper_MDwarf_m00_t00_b01];[LineageNPCsTex.a_warehouse_keeper_MDwarf_m00_t00_f];[LineageNPCsTex.a_warehouse_keeper_MDwarf_m00_t00_h]} collision_radius=8 collision_height=17 attack_sound1={[ItemSound.fist_1];[ItemSound.fist_2];[ItemSound.fist_3]} defense_sound1={[ItemSound.armor_leather_1];[ItemSound.armor_leather_3];[ItemSound.armor_leather_4];[ItemSound.armor_leather_5];[ItemSound.armor_leather_7]} damage_sound={[ChrSound.MNpc_Old_Dmg_1];[ChrSound.MNpc_Old_Dmg_2];[ChrSound.MNpc_Old_Dmg_3]} sound_vol=250 sound_radius=50 sound_random=70 attack_effect=[LineageEffect.p_u002_a] npc_endCode:
npc_begin npc_id=13001 npc_name=[guard_grimkiller] npc_speed=2 class_name=[LineageNPC.a_guard_MHuman] mesh_name=[LineageNPCs.a_guard_MHuman_m00] texture_name={[LineageNPCsTex.a_guard_MHuman_m00_t00_b00];[LineageNPCsTex.a_guard_MHuman_m00_t00_b01];[LineageNPCsTex.a_guard_MHuman_m00_t00_h]} collision_radius=8 collision_height=24 attack_sound1={[ItemSound.fist_1];[ItemSound.fist_2];[ItemSound.fist_3]} defense_sound1={[ItemSound.armor_metal_strong_1];[ItemSound.armor_metal_strong_3];[ItemSound.armor_metal_strong_7];[ItemSound.armor_metal_alt_6];[ItemSound.armor_metal_alt_2]} damage_sound={[ChrSound.MNpc_Fighter_Dmg_1];[ChrSound.MNpc_Fighter_Dmg_2];[ChrSound.MNpc_Fighter_Dmg_3]} sound_vol=250 sound_radius=50 sound_random=70 attack_effect=[LineageEffect.p_u002_a] npc_endNPCNAME-E.TXT WareHouse NPC's Code:
npc_begin id=13010 nickcolor=default nick=[Warehouse Keeper] name=[Sluginator] npc_endCode:
npc_begin id=13001 nickcolor=default nick=[Private Guard] name=[guard_grimkiller] npc_endHow are these figured out, like with me making a new NPC in an area how do I find out what they should be? Does this look good to add in a new set of 3 Warehouse NPC's & 2 Guards to an area? Not sure if I missed anything or have some code that is out of wack. Any help would be appreciated Thanks for your time, Dubie |
So if these are going to be in say Giran harbor.
I would want to use the number system from Angelina which is the GK of that area. Which I think is where I got this one from: 21_23_NPC_031201_02 Now would I only have to change the last 2 numbers for mine? Like: 21_23_NPC_031201_03 21_23_NPC_031201_05 21_23_NPC_031201_06 so on for that area? Not sure what the 031201 is all about I am pretty sure that the 21_23 is the Geodata file that has the area they are in. Thanks for your time, Dubie |
Well I tried all this and on the client side I get this.
www.dubie.net/l2beta/npcgrperror.jpg Code:
npc_begin npc_id=13010 npc_name=[sluginator] npc_speed=1 class_name=[LineageNPC.a_warehouse_keeper_MDwarf] mesh_name=[LineageNPCs.a_warehouse_keeper_MDwarf_m00] texture_name={[LineageNPCsTex.a_warehouse_keeper_MDwarf_m00_t00_b00];[LineageNPCsTex.a_warehouse_keeper_MDwarf_m00_t00_b01];[LineageNPCsTex.a_warehouse_keeper_MDwarf_m00_t00_f];[LineageNPCsTex.a_warehouse_keeper_MDwarf_m00_t00_h]} collision_radius=8 collision_height=17 attack_sound1={[ItemSound.fist_1];[ItemSound.fist_2];[ItemSound.fist_3]} defense_sound1={[ItemSound.armor_leather_1];[ItemSound.armor_leather_2];[ItemSound.armor_leather_5];[ItemSound.armor_leather_7];[ItemSound.armor_leather_8]} damage_sound={[ChrSound.MNpc_Old_Dmg_1];[ChrSound.MNpc_Old_Dmg_2];[ChrSound.MNpc_Old_Dmg_3]} sound_vol=250 sound_radius=50 sound_random=70 attack_effect=[LineageEffect.p_u002_a] npc_end__warehouse_keeper_sluginator _warehouse_keeper_sluginator Everyone of them gave me that error when client was loading. Thanks for your time, Dubie |
idea ?? what is idea of this topic ?
nobody can add new spawn of npcs to server.. because NPC server start crashing after some time.. everybody can told you |
lol
There are a ton of servers that have added in NPC's and other shit on thier own and it all works fine. But it seems no one here can help me out on this one so you know. It will take awhile to see what I am missing or doing wrong. Thanks for your time, Dubie |
it's probably a case of npc name mismatching i think
|
Hmm I want know how to add NPCs without L2npc crashing ;-(
I added some new spawns and server was very unstable... its sad. Even if I move vendors from one location to another... |
are you trying to add new npcs to a whole new terrain like our custom expansion at ROFAL2?
|
| All times are GMT. The time now is 15:24. |