![]() |
|
|
#1 |
|
Архивный участник
Join Date: May 2006
Posts: 38
|
I'm making some new things, and among them are NPC's.. but after i make them and put them in the new ones error out and i got this:
[.\ObjectDB.cpp]undefined (or unregistered) Name[ub3rguard] invalid npc name [ub3rguard] at file npcdata.txt Code:
npc_begin guard 32527 [ub3rguard] level=80 acquire_exp_rate=0 acquire_sp=0 unsowing=1 clan={@bodyguard_clan} ignore_clan_list={} clan_help_range=1200 slot_chest=[] slot_rhand=[dark_elven_bow] slot_lhand=[] shield_defense_rate=0 shield_defense=0 skill_list={@s_race_undead;@s_full_magic_defence} npc_ai={[ub3rguard];{[fnHi]=[ub3rguard001.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=120};{[MoveAroundSocial2]=120}} category={} race=darkelf sex=female undying=1 can_be_attacked=0 corpse_time=7 no_sleep_mode=0 agro_range=1200 ground_high={160;0;0} ground_low={50;0;0} exp=2099325834 org_hp=28xx.xx org_hp_regen=8.5 org_mp=1674.8 org_mp_regen=3 collision_radius={7;7} collision_height={25;25} str=99 int=99 dex=99 wit=99 con=99 men=10 base_attack_type=bow base_attack_range=1100 base_damage_range={0;0;10;0} base_rand_dam=10 base_physical_attack=59xx.xx672 base_critical=8 physical_hit_modify=0 base_attack_speed=800 base_reuse_delay=150 base_magic_attack=611 base_defend=3xx.xx base_magic_defend=249.8 physical_avoid_modify=0 soulshot_count=9000 spiritshot_count=9000 hit_time_factor=0.6 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} hp_increase=0 mp_increase=0 safe_height=100 npc_end
Code:
[ub3rguard] = 1032527 Code:
class 1 ub3rguard : ol_mahum_patrol class_end Code:
[bodyguard_clan] = 102 |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Sep 2006
Posts: 122
|
try lower id .... lower than 15000
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Dec 2006
Posts: 252
|
a guard with ol_mahum_patrol's ai ? :/
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: May 2006
Posts: 38
|
yeah i saw it on a previous topic, settting it in the same clan as town NPC's they attack anything that hits town NPC's
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2006
Posts: 38
|
08/03/2007 10:32:xx.xx1, [.\ObjectDB.cpp][203] undefined (or unregistered) Name[ub3rguard]
08/03/2007 10:32:xx.xx1, invalid npc name [ub3rguard] at file[.\NpcSocket.cpp], line[180] 08/03/2007 10:32:xx.xx1, [0][0][0][0][0][0][0] i changed it's ID to 14998 and same thing anymore ideas?
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2006
Posts: 38
|
well i tried lowering the ID and that still didn't work, so hexing the l2server.exe wouldn't help either would it?
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
Check your script files at 180 line. (npcdata,npcpos,npc_pch).
i got npc with id 35579+ and they work... |
|
|
|
|
#9 |
|
Архивный участник
Join Date: May 2006
Posts: 38
|
npcpos.txt@ line 180:
Code:
npc_begin [doom_archer_agit] pos={178640;-18216;-2200;-16384} total=1 respawn=2hour dbname=[devastated_049] dbsaving={death_time;parameters;pos} npc_end
npcdata.txt @ line 180 Code:
npc_begin warrior 180 [__greater_stone_golem] level=1 acquire_exp_rate=xx.xx acquire_sp=2 unsowing=0 clan={} ignore_clan_list={} clan_help_range=300 slot_chest=[] slot_rhand=[] slot_lhand=[] shield_defense_rate=0 shield_defense=0 skill_list={@s_race_beast} npc_ai={[default_npc];{[MoveAroundSocial]=90};{[MoveAroundSocial1]=90};{[MoveAroundSocial2]=90}} category={} race=beast sex=male undying=0 can_be_attacked=1 corpse_time=7 no_sleep_mode=0 agro_range=1000 ground_high={120;0;0} ground_low={30;0;0} exp=1 org_hp=xx.xx519 org_hp_regen=2 org_mp=40 org_mp_regen=0.9 collision_radius={14;14} collision_height={14.5;14.5} str=40 int=21 dex=30 wit=20 con=43 men=10 base_attack_type=sword base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=30 base_physical_attack=8.47458 base_critical=4 physical_hit_modify=4.75 base_attack_speed=253 base_reuse_delay=0 base_magic_attack=5.78704 base_defend=xx.xx444 base_magic_defend=xx.xx252 physical_avoid_modify=0 soulshot_count=0 spiritshot_count=0 hit_time_factor=0.24 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} hp_increase=0 mp_increase=0 safe_height=100 npc_end
npc_pch.txt @ line 180 Code:
[__greater_stone_golem] = 1000180 thanks for the suggestion tho, any more ideas?
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: May 2006
Posts: 38
|
would sharing the whole npcdata, npc_pch, and npcpos help?
|
|
|
|
|
#12 | |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
Quote:
Code:
07/20/2007 09:06:xx.xx3, [.\ObjectDB.cpp][203] undefined (or unregistered) Name[sb_erase1] 07/20/2007 09:06:xx.xx3, Undefined word[sb_erase1] in line [11299] Code:
07/22/2007 20:16:xx.xx5, [.\ObjectDB.cpp][203] undefined (or unregistered) Name[gatekeeper_bilia] 07/22/2007 20:16:xx.xx5, invalid npc name [gatekeeper_bilia] at file[.\NpcSocket.cpp], line[180]
|
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: May 2006
Posts: 38
|
but i can't even //summon it?? and i looked at it and it looks fine...
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
pack your npcdata/pos/pch and upload somewhere (not to megaupload).
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: May 2006
Posts: 38
|
i uploaded them to the forums^^
Вложения из исходного сообщения (сами файлы в копии отсутствуют): newnpcs.rar — 1036943 байт |
|
|
|
|
#16 |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
u forgot about 1 important error :
Code:
08/03/2007 23:00:xx.xx1, [.\ObjectDB.cpp][382] Parsing Objects file failed line(5733) put your ub3rguard data (npc_begin bla bla bla... npc_end) under this line (5733) in npcdata, and u will not get error :P. (i'm 99%sure that line[180]=npcpos.txt xD.) |
|
|
|
|
#17 |
|
Архивный участник
Join Date: May 2006
Posts: 38
|
hey thanks that seemed to fix it ^^ any idea what's wrong with that line?
|
|
|
|
|