![]() |
need help making a npc
This is what I have done but it doesnt like it at all. I copied the merchant ariel's template.
////////////added this at the very bottom line of the npc_pch file.///////// [Artist bobby] = 1020000 ///////the below information went into the end of the ai.obj file.////////// class Artist bobby : merchant property_define_begin buyselllist_begin SellList1 {485; 15} {486; 15} {487; 15} {488; 15} {489; 15} {490; 15} {491; 15} {492; 15} {493; 15} {494; 15} {495; 15} {496; 15} buyselllist_end property_define_end class_end ///////////////this info was copied to the bottom of the npcdata file.///////////// npc_begin merchant 12622 [Artist bobby] level=70 exp=4296345xx.xx5 acquire_exp_rate=2 undying=1 can_be_attacked=0 acquire_sp=200 race=orc sex=male 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=24xx.xx818899627 org_mp=1345.8 base_defend=2xx.xx597408024 base_magic_attack=4xx.xx4627426724 base_magic_defend=2xx.xx8467292763 base_physical_attack=6xx.xx3725587608 physical_hit_modify=4.75 physical_avoid_modify=0 base_attack_speed=253 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=8 collision_height=24 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[ Artist bobby];{[fnHi] = [bobby001.htm]};{[fnBuy] = [bobby002.htm]};{[fnYouAreChaotic] = [bobby003.htm]};} corpse_time=7 no_sleep_mode=0 npc_end I also added a line to npcpos, but I cant seem to see where i put it... I'm not sure how you guys put the code int he little boxes either, sorry if full length code is a bad thing :( can anyone help me figure out why this doesn't work please? I've searched through all of the posts here, I've found bit's and pieces of information, which helped me get this far. But this is where I can't get passed. Thanks for all help in advance |
client side ?
|
well this doesnt even start with the server, it just errors out pretty bad when loading npc's, then it crashes. but if i remove all of this npc stuff for what I have above it works fine, as soon as I add it, the lnpc crashes.
|
npc_ai={[ Artist bobby]...
mmm i see a space trying with this npcdata: change npc_begin merchant 12622 [Artist bobby] level=70 to npc_begin merchant 12622 [artist_bobby] level=70 and npc_ai={[ Artist bobby];{[fnHi] = [bobby001.htm]};{[fnBuy] = [bobby002.htm]};{[fnYouAreChaotic] = [bobby003.htm]};} to npc_ai={[artist_bobby];{[fnHi] = [bobby001.htm]};{[fnBuy] = [bobby002.htm]};{[fnYouAreChaotic] = [bobby003.htm]};} Npc_pch: change [Artist bobby] = 1020000 to [artist_bobby] = 1020000 Ai.obj: change class Artist bobby : merchant to class artist_bobby : merchant Client Side: edit the Artist bobby to artist_bobby |
be carefull witk spaces and tabs...
|
ok well i'll try this out later and get back to you guys with what happens, thanks alot for the help too :)
|
hmm ok he appears where i want him everything looks good but this isn't working
npc_ai={[artist_bobby];{[fnHi] = [bobby001.htm]};{[fnBuy] = [bobby002.htm]};{[fnYouAreChaotic] = [bobby003.htm]};} Well i think it's this cause no html is showing up for him. wonder if its the multisell thing, cause he is only supposed to have a sell list noghting else. The htm files are there everything looks ok, but nothing come sup when you talk to him. Is there anything else I need to do to get this part working? Starting to get a headache workign on this hehe. |
oh yeah and this is the client side stuff:
//////////npcgrp.txt////////// npc_begin npc_id=12622 npc_name=[artist_bobby] npc_speed=1 class_name=[LineageNPC.e_trader_MOrc] mesh_name=[LineageNPCs.e_trader_MOrc_m00] texture_name={[LineageNPCsTex.e_trader_MOrc_m00_t00_b00];[LineageNPCsTex.e_trader_MOrc_m00_t00_b01];[LineageNPCsTex.e_trader_MOrc_m00_t00_f];[LineageNPCsTex.e_trader_MOrc_m00_t00_h]} texture_name_second=[none] collision_radius=8 collision_height=23.5 attack_sound1={[ItemSound.fist_1];[ItemSound.fist_2];[ItemSound.fist_3]} defense_sound1={[ItemSound.armor_underwear_1];[ItemSound.armor_underwear_2];[ItemSound.armor_underwear_3];[ItemSound.armor_leather_1];[ItemSound.armor_leather_3]} damage_sound={[ChrSound.MNpc_Giant_Dmg_1];[ChrSound.MNpc_Giant_Dmg_2];[ChrSound.MNpc_Giant_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_end /////////npcname-e.txt//////////////////// npc_begin id=12622 nickcolor=raid nick=[] name=[Artist_Bobby] npc_end |
I really need to get the HTM files working for this guy working for this please any help is amazingly appreciated, the box aapears chat but nothing inside it.
|
You need to save the files in Unicode instead of ASCII (Can be selected in Save as)
|
trying it right now thanks
|
WOOT got it working thanks big time..
|
| All times are GMT. The time now is 22:42. |