Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Custom NPC (https://postpacific.loc-online.com/showthread.php?t=6325)

BeBu 26.11.2006 12:34

Custom NPC
 
Hi,

i tried making a custom npc with this line in npcdata.txt:

Code:

npc_begin        citizen        20000        [henry]        level=70        acquire_exp_rate=0        acquire_sp=0        unsowing=1        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_undead;@s_full_magic_defence}        npc_ai={[citizen];{[fnHi]=[henry001.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=90};{[MoveAroundSocial2]=90}}        category={}        race=dwarf        sex=male        undying=1        can_be_attacked=0        corpse_time=7        no_sleep_mode=0        agro_range=1000        ground_high={120;0;0}        ground_low={50;0;0}        exp=429634528        org_hp=24xx.xx819        org_hp_regen=7.5        org_mp=1345.8        org_mp_regen=2.7        collision_radius={8;8}        collision_height={17;17}        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=6xx.xx373        base_critical=4        physical_hit_modify=4.75        base_attack_speed=253        base_reuse_delay=0        base_magic_attack=4xx.xx463        base_defend=2xx.xx597        base_magic_defend=2xx.xx847        physical_avoid_modify=0        soulshot_count=0        spiritshot_count=0        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
but it lets my l2server die. i also inserted it into npc_pch

maybe someone could point to my error?

thanks in advance

Marios145 27.11.2006 14:23

Code:

npc_ai={[citizen];{[fnHi]=[henry001.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=90};{[MoveAroundSocial2]=90}}
i think this is the problem
maybe it should be default_npc

EDIT
ok i haven't tested to load up npc but it seems that you have to put another id,not 20000
ex.i used 13853 which is the next number from the last id(13852) in my scripts

BeBu 27.11.2006 15:33

thx i will try now

KTPSMF 27.11.2006 16:49

server does because of id of npc, it is too hogh, c4 server does not understand it

nish 27.11.2006 17:15

i think KTP means the NPC id is to HIGH and the server cant understand the high id number u inserted (just make it lower)

BeBu 28.11.2006 19:12

thx guys it worked!!

i made the number sequential and now it runs

Marios145 28.11.2006 20:24

what kind of npc was it? :P

BeBu 29.11.2006 10:43

he sells jobmarks

its the narketeer dwarf i just love the looks :)


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