![]() |
Creating new trade NPC
Need some help I created npc to trade new weapons, I copied Alexandrias information from Giran and just renamed it and move to different location. but when I go into the game she is not there. any ideas.
|
Did you do your client side modifications?
Did you add him to npcpos, can you summon him as a gm? can you /target him where he should be? |
new npc
did do client side mod. but cant //summon her and cant target.
Heres my code. AI.OBJ Code:
class LiLFrag: merchant_for_cgradeNPCDATA.TXT- last number +1 Code:
npc_begin citizen 12536 [LilFrag] level=70 exp=4296345xx.xx5 acquire_exp_rate=0.40243902439 undying=1 can_be_attacked=0 acquire_sp=40 race=human sex=female 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=[] 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=999999 org_mp=999999 base_defend=999999 base_magic_attack=999999 base_magic_defend=999999 base_physical_attack=999999 physical_hit_modify=99 physical_avoid_modify=999 base_attack_speed=999 base_reuse_delay=0 base_critical=99 magic_use_speed_modify=999 status={normal} align=-4900 collision_radius=8 collision_height=25.3 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[LilFrag];{[fnHi] = [LilFrag001.htm]}} corpse_time=7 no_sleep_mode=0 npc_endCode:
npc_begin [LilFrag] pos = {11444;16800;-3494;0} total = 1 respawn = 1min npc_endCode:
npc_begin npc_id=30522 npc_name=[LilFrag] npc_speed=1 class_name=[LineageNPC.a_traderB_FHuman] mesh_name=[LineageNPCs.a_traderB_FHuman_m00] texture_name={[LineageNPCsTex.a_traderB_FHuman_m00_t00_b00];[LineageNPCsTex.a_traderB_FHuman_m00_t00_b01];[LineageNPCsTex.a_traderB_FHuman_m00_t00_f];[LineageNPCsTex.a_traderB_FHuman_m00_t00_h]} texture_name_second=[none] collision_radius=8 collision_height=25.3 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.FNpc_Lady_Dmg_1];[ChrSound.FNpc_Lady_Dmg_2];[ChrSound.FNpc_Lady_Dmg_3]} sound_vol=250 sound_radius=50 sound_random=70 attack_effect=[LineageEffect.p_u002_a] quest_be=0 level_limit={[]} class_limit={[]} npc_endCode:
npc_begin id=30522 nickcolor=default nick=[Trader] name=[LilFrag] reserved1=0 npc_end |
Well I think you didnt need to set the AI to the other char. I think all thats used for whatever quest she is involved in.
Just make a blank merchant entry in ai.obj Code:
class lilfrag: merchant_for_cgrade lemme know? |
somethign simaler to this happened to me once. and the problem was in teh npcpos.txt theres a line that looks somethig like this
npcmaker_begin [gludio_chamberlain_etc] initial_spawn=all maximum_npc=10 and my npc wouldent spawn becuse there was allredy the max number on npc. so i raised it by 1 (changed maximum_npc=10 to maximum_npc=11) and it worked fine. |
Quote:
|
npcpos.txt
good one.. it was set to 1. I set to 5 and Ill try again tomorrow. next question. i can summon her now but shes a big bunny. why. I copied the npcgrp.txt from the npc I wanted. so it should be the same meshes right?
|
you have to put the npc on the client side also. dont know how to do it off the top of my head. i usly let the other gm on are server do the client side.
|
https://postpacific.loc-online.com/f...ight=bodyguard
here u got example for adding custom npc to server and client files. u need to take care of selectin right ai for ur npc and to select proper position for it. |
| All times are GMT. The time now is 15:49. |