Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 03.07.2005, 04:39   #1
bobby
Архивный участник
 
Join Date: Jul 2005
Posts: 44
Default [TUTORIAL] Add NPC merchant

Tutorial for making your own custom merchant.


This is server side


////////////add this at the very bottom line of the npc_pch file. the 102000 is the id of the NPC so it can be anything higher then the last line in this 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
{itemid you want; 15}
the 15 is the percentage it will cost for the item above the item specified cost list which can be found in the itemdata.txt. this will be affected by the castle owner, however if you put it to 0 you can set the base price in the file and no taxes will be charged to it, Therefore no additoinal money for the castle owner from these sales.


buyselllist_end
property_define_end
class_end


///////////////this info I 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

//////All .HTM files must be saved as Unicode, VERY VERY important or the chat box will show up with no text.



This is client side.


/////////This goes into npcgrp.txt, this example is an orc male fighter you can edit it to be anything you want. The npc ID will be 1 higher then the last in this file as well.//////////

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

////////////////////This goes into npcname-e.txt////////////////////
npc_begin id=12622 nickcolor=raid nick=[] name=[Artist Bobby] npc_end



hope this helps you all out.
bobby is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:08.