Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 14.06.2007, 01:12   #1
PyroMaker
Архивный участник
 
Join Date: Nov 2006
Posts: 277
Default [HELP] How to make NPCs stand still.

Hi,

I am currently working a project which will consist of rebuilding rune into something totally different, basically I want to make the NPCs stand still, and when you come by they will aggro, help each other, etc.

The only way I could do that was by blowing their Z position a little so that way they would be kinda "stuck". But after a while they just start moving and screw my entire concept up.

I've also tried totally removing MoveAroundSocial or making it =0 but no luck on that aswell, I was told this has something to do with the ai, I am currently using an ai called "gondor", which is a custom ai pointing to warrior_aggressive, which is the best ai I could find for this.

So far, the only way I could find to make them stand still was by making one npcpos for each one, like... One territory begin, one npcmaker_begin and one npcmaker_end for every single NPC, just like I used to do with shops, but that would be simply a kingsize pain in the ass, or by making their Z so wrong that they wouldn't even aggro, but I need them to aggro, and I don't want to be doing these npcpos's by the time L3 launches so I am wondering if perhaps there is another way.

I am sure there is another way, however I can't seem to find it. Perhaps something in the ai or an special value in the npc?

Anyhow, I'll show you an example of one NPC and one npcpos so you can understand what I'm dealing with.

npcdata
Code:
npc_begin	warrior	14207	[gondor_elite_soldier]	level=87	acquire_exp_rate=2250	acquire_sp=120000	unsowing=0	clan={@gondor_clan}	ignore_clan_list={}	clan_help_range=1000	slot_chest=[]	slot_rhand=[tallum_blade]	slot_lhand=[knight_shield]	shield_defense_rate=50	shield_defense=50	skill_list={@s_race_undead;@s_full_magic_defence;@s_touch_and_die}	npc_ai={[gondor];{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0};{[MoveAroundSocial2]=0}}	category={}	race=human	sex=male	undying=0	can_be_attacked=1	corpse_time=7	no_sleep_mode=0	agro_range=1000000	ground_high={180;0;0}	ground_low={40;0;0}	exp=2099675834	org_hp=25000	org_hp_regen=400	org_mp=2500	org_mp_regen=200	collision_radius={8;8}	collision_height={21.5;21.5}	str=40	int=21	dex=30	wit=20	con=43	men=10	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;10;0}	base_rand_dam=10	base_physical_attack=9000	base_critical=16	physical_hit_modify=0	base_attack_speed=300	base_reuse_delay=1500	base_magic_attack=6000 base_defend=1150	base_magic_defend=1100	physical_avoid_modify=0	soulshot_count=0	spiritshot_count=0	hit_time_factor=1	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={{{{[red_sealstone];8000;12000;100}};70};{{{[adena];2000000;4000000;100}};70};{{{[green_sealstone];40000;80000;100}};70};{{{[craftsman_mold];1;1;1.5};{[stone_of_purity];5;20;50};{[hades_dagger];1;1;0.50};{[odin_cleaver];1;1;0.50};{[charcoal];10;25;35};{[mithril_ore];15;25;40};{[admantite_nugget];5;10;25};{[coarse_bone_powder];15;30;35};{[blacksmith's_frame];1;1;1.5};{[mold_lubricant];1;5;40};{[scrl_of_ench_wp_s];1;1;30};{[varnish_of_purity];2;5;10};{[arcsmith_anvil];1;1;1.5}};100}}	hp_increase=0	mp_increase=0	safe_height=100	npc_end
npcpos
Code:
territory_begin	[gondor_bridge]	{{48035;-51612;-4152;-500};{41889;-38110;-4152;-500};{19335;-50012;-4152;-500};{31304;-65988;-4152;-500}}	territory_end
npcmaker_begin	[gondor_bridge]	 initial_spawn=all	maximum_npc=41
npc_begin	[gondor_elite_soldier]	pos={42400;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={42300;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={42200;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={42100;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={42000;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41900;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41800;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41700;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41600;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41500;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41400;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41300;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41200;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41100;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40900;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40800;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40700;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40600;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40500;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40400;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40300;-48044;-500;49152}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={42400;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={42300;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={42200;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={42100;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={42000;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41900;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41800;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41700;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41600;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41500;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41400;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41300;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41200;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={41100;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40900;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40800;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40700;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40600;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40500;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40400;-48421;-500;0}	total=1 respawn=1min	npc_end
npc_begin	[gondor_elite_soldier]	pos={40300;-48421;-500;0}	total=1 respawn=1min	npc_end
npcmaker_end



Any help will be appreciated and welcome.

Thanks in advance.
PyroMaker is offline  
Old 14.06.2007, 07:19   #2
sikorskys
Архивный участник
 
Join Date: Apr 2007
Posts: 39
Default

Code:
skill_begin	skill_name = [s_event_npc]	/* Dryad root */	skill_id = 5001	level = 1	operate_type = P	magic_level = 1	effect = {{p_block_move};{p_defence_attribute;attr_hold;-100}}	skill_end
sikorskys is offline  
Old 14.06.2007, 08:15   #3
Bloodust
Архивный участник
 
Join Date: May 2006
Posts: 135
Default

Quote:
Originally Posted by sikorskys View Post
Code:
skill_begin	skill_name = [s_event_npc]	/* Dryad root */	skill_id = 5001	level = 1	operate_type = P	magic_level = 1	effect = {{p_block_move};{p_defence_attribute;attr_hold;-100}}	skill_end
How can they help each other if they cant move ?
Bloodust is offline  
Old 14.06.2007, 11:29   #4
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

1-Make a copy of the class "warrior" ("warrior_modified") and remove the NO_DESIRE handler.
2-Make a copy of the class "warrior_aggressive" ("warrior_aggressive_copy") so that it points to our new warrior class.

make it so that it's like this:

class 1 gondor: warrior_aggresive_copy
...
class_end

class 1 warrior_aggresive_copy : warrior_modified
....
class_end

class 1 warrior_modified : warrior_parameter
...
class_end

If movearoundsocial 0 1 and 2 = 0 then it should not move anymore unless attacked etc...
m4rk is offline  
Old 14.06.2007, 15:17   #5
PyroMaker
Архивный участник
 
Join Date: Nov 2006
Posts: 277
Default

Quote:
Originally Posted by sikorskys View Post
Code:
skill_begin	skill_name = [s_event_npc]	/* Dryad root */	skill_id = 5001	level = 1	operate_type = P	magic_level = 1	effect = {{p_block_move};{p_defence_attribute;attr_hold;-100}}	skill_end
That would do it if I wanted them not to move at all, which is not what I want... I want them simply not to be hanging around like if they're patrolling or something, but thanks for trying.

Quote:
Originally Posted by Mark
1-Make a copy of the class "warrior" ("warrior_modified") and remove the NO_DESIRE handler.
2-Make a copy of the class "warrior_aggressive" ("warrior_aggressive_copy") so that it points to our new warrior class.

make it so that it's like this:

class 1 gondor: warrior_aggresive_copy
...
class_end

class 1 warrior_aggresive_copy : warrior_modified
....
class_end

class 1 warrior_modified : warrior_parameter
...
class_end

If movearoundsocial 0 1 and 2 = 0 then it should not move anymore unless attacked etc...
Brilliant, I will try it right away.
PyroMaker is offline  
Old 14.06.2007, 23:48   #6
PyroMaker
Архивный участник
 
Join Date: Nov 2006
Posts: 277
Default

Yes, it worked. Thanks guys.
PyroMaker is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 20:08.