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)
-   -   [Sharing]Raid Bosses AI (https://postpacific.mmorpg-game.online/showthread.php?t=1768)

hamidouch 10.09.2005 15:45

[Sharing]Raid Bosses AI
 
ok here's a really beta of raid bosses AI,
actually party leader cast skill every min,
minion cast skills every mins or nearly too,
party targetting works, party assist too.

Problem is : Users trick those by running arround,
since they are slow they will just keep trying to catch player,
while other players nuke their asses,

it's prolly a problem from handler one which make it target the player who did most damage, make minions target him, and skill his ass if reload skill time is ok,
so if this player just run all party will run after him until they kill it

well if anyone can help me to perfect that :)

Result is here on Anakim/Lilith :
http://lamahforum.free.fr/screens/LatestUpdates/

AI.obj raid code :

class ai_boss_lilith_new : party_leader_ag_physicalspecial

parameter_define_begin
string Privates "liliths_agent_wizard:liliths_agent_wizard:1:15min ;liliths_agent_wizard:liliths_agent_wizard:1:15min ;liliths_shadow_guard:liliths_shadow_guard:1:15min ;liliths_shadow_guard:liliths_shadow_guard:1:15min "
int DDMagic 1104641 // Get skill id in skillmobsanimgrp.dat, and skill id number in skill_pch
parameter_define_end

handler 0 // NO_DESIRE
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

shift_sp 1
push_const 40
push_const 5
func_call 1 // func[AddDoNothingDesire]
shift_sp -2
shift_sp -1
handler_end

handler 1 // ATTACKED
variable_begin
"attacker"
"damage"
"i6"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_const 100
func_call 55 // func[Rand]
shift_sp -1
push_const 10
less
branch_false L80040
shift_sp 1
push_event // attacker
push_const 36
add
fetch_i
push_parameter DDMagic
push_const 0
push_const 1
push_const 1000000
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
L80040
call_super
handler_end

class_end

class lilith : ai_boss_lilith_new
class_end

class ai_party_lilith_1 : party_private_physicalspecial
parameter_define_begin
float Attack_DecayRatio 6.600000
float UseSkill_DecayRatio 660xx.xx0000
float Attack_BoostValue 5xx.xx0000
float UseSkill_BoostValue 1000xx.xx0000
int PhysicalSpecial 1104897
parameter_define_end
class_end

class liliths_agent_wizard : ai_party_lilith_1
class_end


class ai_party_lilith2 : party_private_physicalspecial
parameter_define_begin
float Attack_DecayRatio 6.600000
float UseSkill_DecayRatio 660xx.xx0000
float Attack_BoostValue 5xx.xx0000
float UseSkill_BoostValue 1000xx.xx0000
int PhysicalSpecial 1069826
parameter_define_end
class_end

class liliths_shadow_guard : ai_party_lilith2
class_end



class ai_boss_anakim_new : party_leader_ag_physicalspecial

parameter_define_begin
string Privates "anakims_holly_guardian:anakims_holly_guardian:1:1 5min;anakims_holly_guardian:anakims_holly_guardian :1:15min;anakims_divine_guard:anakims_divine_guard :1:15min;anakims_divine_guard:anakims_divine_guard :1:15min"
int DDMagic 1104385
parameter_define_end


handler 0 // NO_DESIRE
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

shift_sp 1
push_const 40
push_const 5
func_call 1 // func[AddDoNothingDesire]
shift_sp -2
shift_sp -1
handler_end

handler 1 // ATTACKED
variable_begin
"attacker"
"damage"
"i6"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
shift_sp 1
push_const 100
func_call 55 // func[Rand]
shift_sp -1
push_const 10
less
branch_false L80043
shift_sp 1
push_event // attacker
push_const 36
add
fetch_i
push_parameter DDMagic
push_const 0
push_const 1
push_const 1000000
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
L80043
call_super
handler_end

class_end

class anakim : ai_boss_anakim_new
class_end

class anakims_divine_guard : party_private
class_end

class ai_party_anakim_1 : party_private_physicalspecial
parameter_define_begin
float Attack_DecayRatio 6.600000
float UseSkill_DecayRatio 660xx.xx0000
float Attack_BoostValue 5xx.xx0000
float UseSkill_BoostValue 1000xx.xx0000
int PhysicalSpecial 1078529
parameter_define_end
class_end


class anakims_holly_guardian : ai_party_anakim_1
class_end

hamidouch 10.09.2005 16:09

also here is the npc pos, spawning em in giants cave

// NPCTerritory for BOSS maker by DarkKiss
territory_begin [raid_boss_lilith] {{186817;56127;-7240;-7240};{187017;56127;-7240;-7240};{187017;56327;-7240;-7240};{186817;56327;-7240;-7240}} territory_end
npcmaker_begin [raid_boss_lilith] initial_spawn = all
npc_begin [lilith] pos={186917;56227;-7240;0} total=1 respawn=4hour Privates=[liliths_agent_wizard:liliths_agent_wizard:1:5min;l iliths_agent_wizard:liliths_agent_wizard:1:5min;li liths_shadow_guard:liliths_shadow_guard:1:5min;lil iths_shadow_guard:liliths_shadow_guard:1:5min] npc_end
npcmaker_end

// NPCTerritory for BOSS maker by DarkKiss
territory_begin [raid_boss_anakim] {{186796;56165;-4576;-4576};{186996;56165;-4576;-4576};{186996;56365;-4576;-4576};{186796;56365;-4576;-4576}} territory_end
npcmaker_begin [raid_boss_anakim] initial_spawn = all
npc_begin [anakim] pos={186896;56265;-4576;0} total=1 respawn=4hour Privates=[anakims_holly_guardian:anakims_holly_guardian:1:5m in;anakims_holly_guardian:anakims_holly_guardian:1 :5min;anakims_divine_guard:anakims_divine_guard:1: 5min;anakims_divine_guard:anakims_divine_guard:1:5 min] npc_end
npcmaker_end

and remenber to set parameter int ddmagic on every new ai,
if someone also now if theres a way to call for a core ai,
without setting handlers on each class would be cool

flakka 10.09.2005 16:44

Sweet! Getting closer to a functional ai.obj!

Thanks a lot hami! :wink:

Flamestrike 10.09.2005 17:50

Sweet Jesus , This is Awsome !!!

Flamestrike 10.09.2005 19:54

Btw you need to add in npcdata too
Otherwise it will not work

krapno 10.09.2005 19:55

npcai={[lilith]}
npcai={[anakim]}
(...)

DaRkShAdOw 10.09.2005 20:12

but hes skills set in npcdata :?

Flamestrike 10.09.2005 20:16

You need the npc_ai in npcdata
I`m gonna add one copy from Baium's and modd it to suit Anakim & Lilith
If this works gonna post it

Flamestrike 10.09.2005 20:34

Here's Lilith


Code:

npc_begin        warrior        10283        [lilith]        level=66        exp=2719752xx.xx5        acquire_exp_rate=7.2        undying=0        can_be_attacked=1        acquire_sp=60        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=[]        slot_rhand=[]        slot_lhand=[]        base_attack_type=bow        base_can_penetrate=0        base_attack_range=1100        base_damage_range={0;0;80;120}        base_rand_dam=0        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=67xx.xx146118935        org_mp=1219.8        base_defend=5xx.xx5040328361        base_magic_attack=5xx.xx5709791816        base_magic_defend=2xx.xx7189482006        base_physical_attack=40xx.xx431336161        physical_hit_modify=10        physical_avoid_modify=0        base_attack_speed=293        base_reuse_delay=1500        base_critical=8        magic_use_speed_modify=0        status={normal}        align=-1296        collision_radius=12        collision_height=31        category={}        clan={}        clan_help_range=1200        guild={}        pledge={}        pledge_leader=0        alliance={}        alliance_leader=0        ignore_clan_list={}        ruler=0        ruling_domain={}        npc_ai={[karik]}        corpse_time=7        no_sleep_mode=0        npc_end

And here's Anakim

Code:

npc_begin        warrior        10286        [anakim]        level=66        exp=2719752xx.xx5        acquire_exp_rate=7.2        undying=0        can_be_attacked=1        acquire_sp=60        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=[]        slot_rhand=[]        slot_lhand=[]        base_attack_type=bow        base_can_penetrate=0        base_attack_range=1100        base_damage_range={0;0;80;120}        base_rand_dam=0        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=67xx.xx146118935        org_mp=1219.8        base_defend=5xx.xx5040328361        base_magic_attack=5xx.xx5709791816        base_magic_defend=2xx.xx7189482006        base_physical_attack=40xx.xx431336161        physical_hit_modify=10        physical_avoid_modify=0        base_attack_speed=293        base_reuse_delay=1500        base_critical=8        magic_use_speed_modify=0        status={normal}        align=-1296        collision_radius=12        collision_height=31        category={}        clan={}        clan_help_range=1200        guild={}        pledge={}        pledge_leader=0        alliance={}        alliance_leader=0        ignore_clan_list={}        ruler=0        ruling_domain={}        npc_ai={[karik]}        corpse_time=7        no_sleep_mode=0        npc_end

hamidouch 10.09.2005 20:51

you got to set npc_ai={[lilith]} and also define the skill it use ( evil shackle boss ), if you use another skill it wont work.

CubAfull 10.09.2005 21:04

:shock: OMG men you have sleep, rooth effect, how you make this.

thank for AI.obj thank

Sundh 10.09.2005 21:13

omg ye what did you edit/change to get root/sleep effect to show?

Flamestrike 10.09.2005 21:22

Quote:

Originally Posted by hamidouch
you got to set npc_ai={[lilith]} and also define the skill it use ( evil shackle boss ), if you use another skill it wont work.


Yup that's true...At least they are working :)
Thanks m8
Gonna add them skills later.

Shinare 10.09.2005 21:39

Quote:

Originally Posted by Sundh
omg ye what did you edit/change to get root/sleep effect to show?

and stun and silence, wooot. plz share how u did that, awesome work !

kepler001 10.09.2005 21:44

???

Metalmurphy 10.09.2005 21:49

Hes probably talking about that post on ragezone (that got deleted, i wonder why?... xD)

But like the screenshot shows it wasnt hamidouch who's done it, would be nice if you could share that, you or whoever made the fix.

hamidouch 10.09.2005 22:25

like you said i didnt made that
and i cant share it, soz.
for info its l2server hex editing 6 adress rewritten.

torune 11.09.2005 00:35

these ai looks really familar

Flamestrike 11.09.2005 00:45

Quote:

Originally Posted by hamidouch
you got to set npc_ai={[lilith]} and also define the skill it use ( evil shackle boss ), if you use another skill it wont work.

Another small thing :

In npcdata @ Anakim & Lilith just set their npc_ai to npc_ai=anakim and npc_ai=lilith. They are using their own skills. Just worked for me and works just fine.

CubAfull 11.09.2005 07:40

it is a pain that you cannot share it :cry: , but I understand :wink:
tank

sorry for my english Im from cuba XD

Dave 12.09.2005 02:46

correct npcdata
 
can you post code for npcdata that has "you got to set npc_ai={[lilith]} and also define the skill it use ( evil shackle boss ), if you use another skill it wont work." correctly written. It does work with out it, but im guessnig just like baium works better with it.

maximus 13.09.2005 03:28

Hi

Ex:

npc_ai={[lilith];{[HoldMagic]=@s_npc_hold6}}

its fibe??

maximus 13.09.2005 05:48

Hi

Guys see that

hamidouch 13.09.2005 13:29

you lack skills definition in npcdata

Flamestrike 13.09.2005 17:44

whoah , try update your npcdata.


All times are GMT. The time now is 22:41.