Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [SHARE] NPC Bodyguards - Updated (https://postpacific.mmorpg-game.online/showthread.php?t=973)

BiGBoY 20.06.2005 12:09

[SHARE] NPC Bodyguards - Updated
 
I had that idea in my head for long time already. Now some wiseasses crossed the line of good taste on my server with hitting non fighting NPC's all the time. This just triggered me to recall the old idea and here it is:

Client side:
npcgrp.txt
Code:

npc_begin        npc_id=10224        npc_name=[npc_bodyguard]        npc_speed=1        class_name=[LineageNPC.a_guard_MHuman]        mesh_name=[LineageNPCs.a_guard_MHuman_m00]        texture_name={[LineageNPCsTex.a_guard_MHuman_m00_t00_b00];[LineageNPCsTex.a_guard_MHuman_m00_t00_b01];[LineageNPCsTex.a_guard_MHuman_m00_t00_h]}        texture_name_second=[none]        collision_radius=8        collision_height=24        attack_sound1={[ItemSound.fist_1];[ItemSound.fist_2];[ItemSound.fist_3]}        defense_sound1={[ItemSound.armor_metal_strong_4];[ItemSound.armor_metal_strong_7];[ItemSound.armor_metal_strong_9];[ItemSound.armor_metal_alt_8];[ItemSound.armor_metal_alt_1]}        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={[]}        class_limit={[]}        npc_end
npcname-e.txt
Code:

npc_begin        id=10224        nickcolor=raid        nick=[NPC Bodyguard]        name=[Will Kill]        reserved1=0        npc_end
Server side:
npcdata.txt
Code:

npc_begin                guard  10224  [npc_bodyguard]  level=70  exp=4296345xx.xx5  acquire_exp_rate=0.3  undying=1  can_be_attacked=0  acquire_sp=30  race=castle_guard  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=[dragon_scale_mail]  slot_rhand=[shining_bow]  slot_lhand=[]  base_attack_type=bow  base_can_penetrate=0  base_attack_range=1100  base_damage_range={0;0;80;120}  base_rand_dam=10  str=60  int=21  dex=60  wit=20  con=43  men=10  hp_increase=40  mp_increase=7  org_hp_regen=7.5  org_mp_regen=10  ground_low={80;0;10}  ground_high={160;-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=67xx.xx146118935  org_mp=5000    base_defend=5xx.xx5040328361  base_magic_attack=5xx.xx5709791816  base_magic_defend=2xx.xx8467292763  base_physical_attack=5300  physical_hit_modify=0  physical_avoid_modify=0  base_attack_speed=400  base_reuse_delay=0  base_critical=8  magic_use_speed_modify=0  status={normal}  align=-4900  collision_radius=8  collision_height=27  category={}  clan={@bodyguard_clan}  clan_help_range=1200  guild={}  pledge={}  pledge_leader=0  alliance={}  alliance_leader=0  ignore_clan_list={}  ruler=0  ruling_domain={}  npc_ai={[ol_mahum_patrol]}  corpse_time=7  no_sleep_mode=1  npc_end
Example for one gatekeeper (note the clan={@bodyguard_clan} ! this is needed so the bodyguards will protect them) Add this clan tag to every NPC u want to protect.
Code:

npc_begin        teleporter        7215        [__gatekeeper_angelina]        level=70        exp=4296345xx.xx5        acquire_exp_rate=0.1        undying=1        can_be_attacked=0        acquire_sp=10        race=human        sex=female        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=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=25        category={}        clan={@bodyguard_clan}        clan_help_range=300        guild={}        pledge={}        pledge_leader=0        alliance={}        alliance_leader=0        ignore_clan_list={}        ruler=0        ruling_domain={}        npc_ai={[default_npc]}        corpse_time=7        no_sleep_mode=0        npc_end
ai.obj
Code:

class npc_bodyguard : ol_mahum_patrol
class_end

npc_pch.txt
Code:

[npc_bodyguard] =        1010224
npcpos.txt
Code:

Put it wherever u want
manual_pch.txt
Code:

[all_elemental_clan]        =        1
[all_elemental2_clan]        =        2
[ant_clan]        =        3
[bugbear_clan]        =        4
[demonic_clan]        =        5
[dragon_clan]        =        6
[elemental1_clan]        =        7
[elemental2_clan]        =        8
[elemental3_clan]        =        9
[elemental4_clan]        =        10
[goblin_clan]        =        11
[lizardman_clan]        =        12
[mandragora_clan]        =        13
[neer_crawler_clan]        =        14
[oel_mahum_clan]        =        15
[ol_mahum_clan]        =        16
[orc_clan]        =        17
[scropio_clan]        =        18
[serpent_clan]        =        19
[silenos_clan]        =        20
[skeleton_clan]        =        21
[stakato_clan]        =        22
[undead_clan]        =        23
[wererat_clan]        =        24
[werewolf_clan]        =        25
[tyrant_clan]        =        26
[q403_clan]        =        27
[queen_ant_clan]        =        28
[wolf_clan]        =        29
[porta_clan]        =        30
[torfe_clan]        =        31
[giant_leech_clan]        =        32
[cave_servant_clan]        =        33
[succubus_clan]        =        34
[gludio_siege_clan]        =        35
[curma_core_clan]        =        36
[ghost_clan]        =        37
[monster_eye_clan]        =        38
[partisan_clan]        =        39
[bapuk_clan]        =        40
[orfen_clan]        =        41
[elemental_clan]        =        42
[kobold_clan]        =        43
[abyss_jewel_clan]        =        44
[grave_guard_clan]        =        45
[grave_keeper_clan]        =        46
[malruk_clan]        =        47
[mirrorforest_clan]        =        48
[giant_clan]        =        49
[hatar_clan]        =        50
[dion_siege_clan] = 51
[giran_siege_clan] = 52
[oren_siege_clan] = 53
[aden_siege_clan] = 54
[mercenary_siege_clan] = 55
[door_clan] = 56
[bodyguard_clan] = 57


Digital 20.06.2005 12:10

nice job :)

Edit: actually i'm having a pretty sick thought...
npc bodyguard pvp lol... and bet on who wins...
winner takes all :p
rofl... oh well.. runs off

djvogans 20.06.2005 12:12

or u can make yours NPC agressive :)

Meriik 03.07.2005 10:45

Hey guys does anyone know a way to make the AI: ol_mahum_patrol
stop walking around and just stand in the place it spawned. It keeps
walking away when its spawns and wont protect the GK. thanks

BiGBoY 03.07.2005 13:52

It will protect no worries. all u have to do is to set clan_help_range=1200.
to all npc's which he need to guard. If u check guards setting u will see that his base attack range is 1100. so after npc is attacked it send help message to "clan" members and if any bodyguard is in range of 1200 it will help.

bobby 03.07.2005 21:59

actually I have set this up in giran and it works very very poorly. The bodyguard will walk around a wall and get stuck, will walk into the church, will wlak to the far side of the church and go into that dead end hallway and get stuck.

What I'm wondering is where is the way_point_index for this mob. I am unable to locate any information on where the way_point_index, Way-point_start and way_point end are located.

If I can find this information then I should be able to set up my own way_points for the body guard. but so far I have had no luck. I seriously need help with this.


I think the biggest problem is the pathpoint.cpp does't work due to win2k server. it errors out on load up sometimes, and of course the pathpoint.cpp or whatever is what allows mobs to basically play connect the dots to go around objects to get to the target.

BiGBoY 03.07.2005 22:20

anyhow my bodyguards dont walk around
only ones which walk around are those which i set freely in wider set area. try to set location of bodyguards not so far from GK's and in same territory. this way guards will stand still.
Here is my setting for guard in giran:
Code:

territory_begin        [22_22_NPC_25]        {{83260;147820;-3524;-3324};{83460;147820;-3524;-3324};{83460;148020;-3524;-3324};{83260;148020;-3524;-3324}}        territory_end               
npcmaker_begin        [22_22_NPC_25]        initial_spawn = all        maximum_npc = 2               
npc_begin        [clavier]        pos = {83396;147904;-3404;16384}        total = 1        respawn = 1min        npc_end
npc_begin        [npc_bodyguard]        pos = {83366;147904;-3404;16384}        total = 1        respawn = 1min        npc_end
npcmaker_end

Note the maximum_npc = 2
u need to add always +1 of the actual number so the last npc in list will spawn.

Meriik 04.07.2005 00:15

thanks man that fixed it...

Dave 16.07.2005 19:38

I set this up as well and heres what I found
 
The quard will not attack if the gatekeeper is hit, he only attacks if he is hit or buffed. If anyone else is buffed within range they are dead.
1. if i attack, i'm dead
2. if i buff a guy that attacked him, i'm dead
3. after i've been killed by him, if I do any spells within sight of the town, i'm dead. is this normal.

BiGBoY 16.07.2005 23:12

Have u put the gatekeepers or guarded npc's in same clan as bodyguard is (manual_pch.txt)? If u did, than one of possibility is that gk was not hit hard enough.
Once the bodyguard is triggered he will attack anyone using any kind of spells or attacks. But u can feel free to use another ai instead of ol_mahum_patrol which i found most appropriate for this job. All u have to find is ai from mob which use clan help message.

Dave 17.07.2005 00:22

manual pch
 
i added the _clan 57 entry if that is what you are talking about

rodier 05.08.2005 17:27

hmm I think better is make NPCs aggresive with huge damage..

demon 05.08.2005 17:29

and use
lhand=[shining_bow] range=600 so it can hit far ehehe

oh in hit method put bow :)


this can be done in all warehouse (ie taurin) and gatekeepers (ie clavier)


All times are GMT. The time now is 21:44.