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 28.09.2005, 16:07   #1
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default [Share] - Jail Manager for Bandit Stronghold

Some cool ppl use Bandit Stronghold as a jail for bad players and sent to me settings for that, then i implemented a npc to open/close doors manually (more realist than "Summon Char" command )



doordata.txt
Code:
door_begin	[bandit_outter_001]	type=normal_type	static_object_id=22170001	open_method=by_npc	pos={85393;-18338;-1792}	range={{85293;-18438;-1792};{85493;-18438;-1792};{85493;-18238;-1792};{85293;-18238;-1792}}	height=500	hp=158250	physical_defence=644	magical_defence=518	level=3	close_time=300	door_end
door_begin	[bandit_outter_002]	type=normal_type	static_object_id=22170002	open_method=by_npc	pos={85473;-18279;-1792}	range={{85373;-18379;-1792};{85573;-18379;-1792};{85573;-18179;-1792};{85373;-18179;-1792}}	height=500	hp=158250	physical_defence=644	magical_defence=518	level=3	close_time=300	door_end
door_begin	[bandit_inner_001]	type=normal_type	static_object_id=22170003	open_method=by_npc	pos={80867;-15471;-1800}	range={{80767;-15571;-1800};{80967;-15571;-1800};{80967;-15371;-1800};{80767;-15371;-1800}}	height=500	hp=158250	physical_defence=644	magical_defence=518	level=3	close_time=300	door_end
door_begin	[bandit_inner_002]	type=normal_type	static_object_id=22170004	open_method=by_npc	pos={80818;-15396;-1800}	range={{80718;-15496;-1800};{80918;-15396;-1800};{80918;-15296;-1800};{80718;-15296;-1800}}	height=500	hp=158250	physical_defence=644	magical_defence=518	level=3	close_time=300	door_end
ai.obj
Code:
class jail_manager : chamberlain
class_end
npc_pch.txt
Code:
[jail_manager]	=	1060000
npcdata.txt
Code:
npc_begin	citizen	60000	[jail_manager]	level=70	exp=429634524	acquire_exp_rate=0.1	undying=1	can_be_attacked=0	acquire_sp=1	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=8	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=1346	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=10	collision_height=22	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[jail_manager];{[fnSetGate]=[jail_manager001.htm]};{[fnSiegeDefendList]=[jail_manager001.htm]};{[fnNotMyLord]=[jail_manager001.htm]};{[fnAfterOpenGate]=[jail_manager001.htm]};{[fnAfterCloseGate]=[jail_manager001.htm]};{[DDoorName1_1]=[bandit_outter_001]};{[DDoorName1_2]=[bandit_outter_002]};{[DDoorName2_1]=[bandit_inner_001]};{[DDoorName2_2]=[bandit_inner_002]}}	corpse_time=7	no_sleep_mode=0	npc_end
jail_manager001.htm
Code:
<html><head></head><body>
<center><font color="LEVEL">Jail Manager</font></center>



Bernardo:

All is well, my Lord, What is your command?



<center>
<font color="LEVEL">Outter Jail Doors</font>
<table width="200">
<tr>
<td align="center"><a action="bypass -h menu_select?ask=-203&reply=1">Open</a></td>
<td align="center"><a action="bypass -h menu_select?ask=-203&reply=101">Close</a></td>
</tr>
</table>




<font color="LEVEL">Inner Jail Doors</font>
<table width="200">
<tr>
<td align="center">
<td align="center"><a action="bypass -h menu_select?ask=-203&reply=2">Open</a></td>
<td align="center"><a action="bypass -h menu_select?ask=-203&reply=102">Close</a></td>
</tr>
</table>
</center></body></html>
npcgrp.dat
Code:
npc_begin	npc_id=60000	npc_name=[]	npc_speed=1	class_name=[LineageNPC.a_fighterguild_teacher_MHuman]	mesh_name=[LineageNPCs.a_fighterguild_teacher_MHuman_m00]	texture_name={[LineageNPCsTex.a_fighterguild_teacher_MHuman_m00_t00_b00];[LineageNPCsTex.a_fighterguild_teacher_MHuman_m00_t00_b01];[LineageNPCsTex.a_fighterguild_teacher_MHuman_m00_t00_f];[LineageNPCsTex.a_fighterguild_teacher_MHuman_m00_t00_h]}	texture_name_second={[]}	collision_radius=N/A	collision_height=N/A	attack_sound1={[ItemSound.fist_1];[ItemSound.fist_2];[ItemSound.fist_3]}	defense_sound1={[ItemSound.armor_leather_2];[ItemSound.armor_leather_4];[ItemSound.armor_leather_5];[ItemSound.armor_leather_6];[ItemSound.armor_leather_7]}	damage_sound={[ChrSound.MNpc_Fighter_Dmg_1];[ChrSound.MNpc_Fighter_Dmg_2];[ChrSound.MNpc_Fighter_Dmg_3]}	sound_vol=250	sound_radius=50	sound_random=70	attack_effect=[LineageEffect.p_u002_a]	quest_be=0	level_limit={0;0}	class_limit={}	silhouette={[]}	property_list={0}	social=1	c3attr=0	npc_end
npcname-e.dat
Code:
npc_begin	id=60000	nickcolor=raid	nick=[* Jail Manager *]	name=[Bernardo]	npc_end
Kind regards
krapno 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:35.