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 16.10.2005, 23:17   #1
hoho324
Архивный участник
 
Join Date: May 2005
Posts: 52
Default [Share]Wyvern Manager

Clan leader can only talk to him and you need 6969 B Crystals (can always change)

ai.obj
Code:
class wyvern_manager : default_npc
parameter_define_begin
	string fnHi "wyvern_manager001.htm"
	string fnNotMyLord "chamberlain_saius009.htm"
parameter_define_end
handler 3	//  TALKED
	variable_begin
		"talker"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L886
L885
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnHi
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L887
L886
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnNotMyLord
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L887
handler_end
handler 32	//  MENU_SELECTED
	variable_begin
		"ask"
		"i0"
		"reply"
		"talker"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 420
	equal
	branch_false L43428
//----------------------	
L81000
  push_event
  push_const 104
  add
  fetch_i
  push_const 80
  equal
  branch_false L81002
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
  push_const 1460
  func_call 81
  shift_sp -2
  push_const 6969
  greater_equal
  branch_false L81001
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
  push_const 4422
  func_call 81
  shift_sp -2
  push_const 1
  greater_equal
  branch_false L81003
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
  push_const 4422         //[????]
  push_const 1
  func_call 80
  shift_sp -3
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
  push_const 5591         //[????]
  push_const 1012621     //[????]
  func_call 196
  shift_sp -3
  shift_sp -1
  jump L81004
L81003
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
  push_const 4423
  func_call 81
  shift_sp -2
  push_const 1
  greater_equal
  branch_false L81005
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
  push_const 4423
  push_const 1
  func_call 80
  shift_sp -3
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
  push_const 5591
  push_const 1012621
  func_call 196
  shift_sp -3
  shift_sp -1
  jump L81004
L81005
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
  push_const 4424
  func_call 81
  shift_sp -2
  push_const 1
  greater_equal
  branch_false L81001
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
  push_const 4424
  push_const 1
  func_call 80
  shift_sp -3
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
  push_const 5591
  push_const 1012621
  func_call 196
  shift_sp -3
  shift_sp -1
L81004
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
  push_const 1460
  push_const 6969
  func_call 80
  shift_sp -3
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
S81001.     "wyvern_manager551.htm"
  push_string S81001
  func_call 43
  shift_sp -2
  shift_sp -1
  jump L81002
L81001
  shift_sp 1
  push_event
  push_const 32
  add
  fetch_i
S81000.     "wyvern_manager550.htm"
  push_string S81000
  func_call 43
  shift_sp -2
  shift_sp -1
L81002
	call_super
handler_end
class_end
ai.obj (part 2)
Code:
class grad : wyvern_manager
class_end

class bryce : wyvern_manager
class_end

class hodler : wyvern_manager
class_end

class finrod : wyvern_manager
class_end

class tate : wyvern_manager
class_end

class kruger : wyvern_manager
class_end
npcdata.txt
Code:
npc_begin	citizen	8162	[grad]	level=70	exp=4296345xx.xx5	acquire_exp_rate=20	undying=1	can_be_attacked=0	acquire_sp=2000	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=50	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=99	con=43	men=90	hp_increase=40	mp_increase=7	org_hp_regen=7.5	org_mp_regen=100	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=10345.8	base_defend=2xx.xx597408024	base_magic_attack=4xx.xx4627426724	base_magic_defend=2xx.xx8467292763	base_physical_attack=6xx.xx3725587608	physical_hit_modify=3.75	physical_avoid_modify=0	base_attack_speed=257	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=-4900	collision_radius=9.5	collision_height=22.5	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[grad]}	corpse_time=7	no_sleep_mode=0	npc_end
npc_begin	citizen	8163	[bryce]	level=70	exp=4296345xx.xx5	acquire_exp_rate=20	undying=1	can_be_attacked=0	acquire_sp=2000	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=50	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=3.75	physical_avoid_modify=0	base_attack_speed=257	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=-4900	collision_radius=9.5	collision_height=22.5	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[bryce]}	corpse_time=7	no_sleep_mode=0	npc_end
npc_begin	citizen	8164	[hodler]	level=70	exp=4296345xx.xx5	acquire_exp_rate=20	undying=1	can_be_attacked=0	acquire_sp=2000	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=50	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=3.75	physical_avoid_modify=0	base_attack_speed=257	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=-4900	collision_radius=9.5	collision_height=22.5	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[hodler]}	corpse_time=7	no_sleep_mode=0	npc_end
npc_begin	citizen	8165	[finrod]	level=70	exp=4296345xx.xx5	acquire_exp_rate=20	undying=1	can_be_attacked=0	acquire_sp=2000	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=50	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=3.75	physical_avoid_modify=0	base_attack_speed=257	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=-4900	collision_radius=9.5	collision_height=22.5	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[finrod]}	corpse_time=7	no_sleep_mode=0	npc_end
npc_begin	citizen	8166	[tate]	level=70	exp=4296345xx.xx5	acquire_exp_rate=20	undying=1	can_be_attacked=0	acquire_sp=2000	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=50	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=3.75	physical_avoid_modify=0	base_attack_speed=257	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=-4900	collision_radius=9.5	collision_height=22.5	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[tate]}	corpse_time=7	no_sleep_mode=0	npc_end
npc_begin	citizen	8167	[kruger]	level=70	exp=4296345xx.xx5	acquire_exp_rate=20	undying=1	can_be_attacked=0	acquire_sp=2000	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=50	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=3.75	physical_avoid_modify=0	base_attack_speed=257	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=-4900	collision_radius=9.5	collision_height=22.5	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[kruger]}	corpse_time=7	no_sleep_mode=0	npc_end
As for npcpos and castledata just add them whereever you want...but make sure they each correspond with each other...
hoho324 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 23:31.