![]() |
Undefined (or unregistered) Help?
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_endCode:
[ub3rguard] = 1032527Code:
class 1 ub3rguard : ol_mahum_patrolCode:
[bodyguard_clan] = 102 |
try lower id .... lower than 15000
|
a guard with ol_mahum_patrol's ai ? :/
|
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
|
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? |
Quote:
You will need to replace 1015000 to 1050000 for example.... in hex format of course. Code:
mov r9d, 0F7CD8h |
well i tried lowering the ID and that still didn't work, so hexing the l2server.exe wouldn't help either would it?
|
Check your script files at 180 line. (npcdata,npcpos,npc_pch).
i got npc with id 35579+ and they work... |
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_endnpcdata.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_endnpc_pch.txt @ line 180 Code:
[__greater_stone_golem] = 1000180 |
Quote:
That error is refering to source code... which we dont have [ NpcSocket.cpp ] |
would sharing the whole npcdata, npc_pch, and npcpos help?
|
Quote:
Code:
07/20/2007 09:06:xx.xx3, [.\ObjectDB.cpp][203] undefined (or unregistered) Name[sb_erase1]Code:
07/22/2007 20:16:xx.xx5, [.\ObjectDB.cpp][203] undefined (or unregistered) Name[gatekeeper_bilia] |
but i can't even //summon it?? and i looked at it and it looks fine...
|
pack your npcdata/pos/pch and upload somewhere (not to megaupload).
|
i uploaded them to the forums^^
Вложения из исходного сообщения (сами файлы в копии отсутствуют): newnpcs.rar — 1036943 байт |
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.) |
hey thanks that seemed to fix it ^^ any idea what's wrong with that line?
|
| All times are GMT. The time now is 22:49. |