![]() |
[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_endCode:
territory_begin [gondor_bridge] {{48035;-51612;-4152;-500};{41889;-38110;-4152;-500};{19335;-50012;-4152;-500};{31304;-65988;-4152;-500}} territory_endAny help will be appreciated and welcome. Thanks in advance. |
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 |
Quote:
|
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... |
Quote:
Quote:
|
Yes, it worked. Thanks guys. :D
|
| All times are GMT. The time now is 15:58. |