Post Pacific

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

ZeniMax 30.04.2007 13:43

[Help]New NPC with his htm
 
Hi
This is my code:

Code:

class 1 evento_npc : default_npc
parameter_define_begin
        string fnHi "evento_npc001.htm"
parameter_define_end
class_end

class 1 donaciones_npc : default_npc
parameter_define_begin
        string fnHi "donaciones_npc001.htm"
parameter_define_end
class_end

Code:

npc_begin        citizen        13853        [evento_npc]        level=70        acquire_exp_rate=0.1        acquire_sp=10        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_humanoid}        npc_ai={[evento_npc];{[fnHi]=[evento_npc001.htm]}}        category={}        race=human        sex=female        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=2444.5        org_hp_regen=7.5        org_mp=1345.8        org_mp_regen=2.7        collision_radius={8;8}        collision_height={20.5;20.5}        str=40        int=21        dex=30        wit=20        con=43        men=10        base_attack_type=fist        base_attack_range=40        base_damage_range={0;0;80;120}        base_rand_dam=30        base_physical_attack=6xx.xx        base_critical=4        physical_hit_modify=4.75        base_attack_speed=253        base_reuse_delay=0        base_magic_attack=470.4        base_defend=2xx.xx        base_magic_defend=2xx.xx        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
npc_begin        citizen        13854        [donaciones_npc]        level=70        acquire_exp_rate=0.1        acquire_sp=10        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_humanoid}        npc_ai={[donaciones_npc];{[fnHi]=[donaciones_npc001.htm]}}        category={}        race=human        sex=female        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=2444.5        org_hp_regen=7.5        org_mp=1345.8        org_mp_regen=2.7        collision_radius={8;8}        collision_height={20.5;20.5}        str=40        int=21        dex=30        wit=20        con=43        men=10        base_attack_type=fist        base_attack_range=40        base_damage_range={0;0;80;120}        base_rand_dam=30        base_physical_attack=6xx.xx        base_critical=4        physical_hit_modify=4.75        base_attack_speed=253        base_reuse_delay=0        base_magic_attack=470.4        base_defend=2xx.xx        base_magic_defend=2xx.xx        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

Code:

[evento_npc] = 1013853
[donaciones_npc] = 1013854

The NPC spawns correct, I can see the npc. But when I talk with the NPC I dont see the html window and not have the npc animation... maybe the IA is wrong?

FidoW 30.04.2007 13:50

You can delete the part from AI.obj and simple put this in npcdata:

npc_ai={[citizen];{[fnHi]=[evento_npc001.htm]}}


default_npc class dont have an AI to show fnHi parameter, citizen yes.

ZeniMax 30.04.2007 13:54

Thanks fidow, but If I want to add a custom IA? (for example for a buyllist..)
Edit: need change this?

class 1 evento_npc : default_npc
to
class 1 evento_npc : citizen

katso 03.05.2007 00:24

Quote:

Originally Posted by ZeniMax (Post 85004)
Thanks fidow, but If I want to add a custom IA? (for example for a buyllist..)
Edit: need change this?

class 1 evento_npc : default_npc
to
class 1 evento_npc : citizen

class 1 evento_npc : default_npc
to
class 1 evento_npc : merchant

Greetings.


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