![]() |
[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 |
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 |
Sweet! Getting closer to a functional ai.obj!
Thanks a lot hami! :wink: |
Sweet Jesus , This is Awsome !!!
|
Btw you need to add in npcdata too
Otherwise it will not work |
npcai={[lilith]}
npcai={[anakim]} (...) |
but hes skills set in npcdata :?
|
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 |
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_endAnd 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 |
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.
|
:shock: OMG men you have sleep, rooth effect, how you make this.
thank for AI.obj thank |
omg ye what did you edit/change to get root/sleep effect to show?
|
Quote:
Yup that's true...At least they are working :) Thanks m8 Gonna add them skills later. |
Quote:
|
???
|
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. |
like you said i didnt made that
and i cant share it, soz. for info its l2server hex editing 6 adress rewritten. |
these ai looks really familar
|
Quote:
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. |
it is a pain that you cannot share it :cry: , but I understand :wink:
tank sorry for my english Im from cuba XD |
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.
|
Hi
Ex: npc_ai={[lilith];{[HoldMagic]=@s_npc_hold6}} its fibe?? |
Hi
Guys see that |
you lack skills definition in npcdata
|
whoah , try update your npcdata.
|
can u share here evil shackle skill? thanks
|
Is there a tutorial that exsplains what the code in ai.obj really means in English? Or what language is it in? Any links are good!
Also, Anyone have the skill_pch2.txt data? Becasus emost of these skills come up as errors in the L2NPC.exe |
it's sort of assembler i think,
and too know what it means report to handlers name, and look basic private/leader AI's BTW this ai works but it's really not good enough for a raid boss my players owns em hardcore, by running arrround.... the boss target the first personn he see, wil ltry to kill it, unless someone does him mass damage, then he will target this player and forget the first one... but since evry player is running lilith wont kil lanyone... i cant make it use the skill when player start run away... |
Hami. Simple. Increase the run speed. Who care if it is a lie, Simple solution, make him run 220 Speed, no one can run that fast, so he is BOUND to get 1 skill off, and own ever :P
|
Or make the skill range greater.
|
how to increase efficiently a npc speed?
passiv skill? |
Give it WW2 by default. Make a skill. What eva :) It is a good solution for now until you can find the harder part of the AI.
|
Anyone have the skills for these mobs,
Only S_evil I have is Code:
[s_summon_evil_eye1] = 287233 |
Hi
Guys i have this in my npc data Code:
npc_begin warrior 10277 [liliths_oracle_marilion] level=66 exp=271975264 acquire_exp_rate=12.6 undying=0 can_be_attacked=1 acquire_sp=150 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=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=67xx.xx146118935 org_mp=1220 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_endThx for help |
Um no.
Code:
npc_begin warrior 10283 [lilith] level=80 exp=578893709 acquire_exp_rate=12.6 undying=0 can_be_attacked=1 acquire_sp=240000 race=demonic sex=female temper=100 safe_height=100 org_jump=15 skill_list={@s_npc_critical_power;@s_npc_critical_chance;@s_strong_to_pdamage;@s_strong_to_bow} magic_list={} max_item=50 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={{{{[adena];43750;50000;100}};70};{{{[mana_potion];5;10;90};{[quick_healing_potion];1;4;10}};286.3};{{{[tears_of_fallen_angel];1;1;10};{[shining_bow];1;1;10};{[god's_blade];1;1;11};{[dragon_knife];1;1;11};{[aurakyria_lancia];1;1;12};{[sword_of_damascus*sword_of_damascus];1;1;11};{[herumoonkus's_hammer];1;1;13};{[dragon_axe];1;1;12}};0.91};{{{[dragon_scale_mail];1;1;6};{[dragon_scale_gaiters];1;1;7};{[dragon_leather_mail];1;1;5};{[dragon_helmet];1;1;7};{[dragon_headgear];1;1;7};{[dragon_leather_gloves];1;1;6};{[dragon_gauntlet];1;1;6};{[dragon_leather_boots];1;1;6};{[sanddragon's_earing];1;1;7};{[ring_of_aurakyria];1;1;7};{[dragon_necklace];1;1;7};{[crystal_swimsuit_set];1;1;7};{[dragon_shield];1;1;7}};26.6};{{{[scrl_of_ench_wp_a];1;1;3};{[scrl_of_ench_am_a];1;1;3};{[scrl_of_ench_wp_s];1;1;1.5};{[scrl_of_ench_am_s];1;1;1.5};{[l2day_scroll_of_guidance];1;1;7};{[l2day_scroll_of_death_whisper];1;1;7};{[l2day_scroll_of_focus];1;1;7};{[l2day_scroll_of_greater_acumen];1;1;7};{[l2day_scroll_of_haste];1;1;7};{[l2day_scroll_of_agility];1;1;7};{[l2day_scroll_of_empower];1;1;7};{[l2day_scroll_of_might];1;1;7};{[l2day_scroll_of_wind_walk];1;1;7};{[l2day_scroll_of_shield];1;1;7};{[l2day_scroll_of_escape];1;1;7};{[l2day_scroll_of_resurrection];1;1;7};{[l2day_scroll_of_mana_regeneration];1;1;7}};39.2}} slot_chest=[] slot_rhand=[] slot_lhand=[] base_attack_type=sword 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=50 org_mp_regen=2.7 ground_low={37;-0;10} ground_high={200;-30;30} underwater_low={50;0;10} underwater_ |
Thx kenster if u can see the lvl is 80 in others post is lvl 66 for what? lvl 66 is the rial lvl for this npc?
|
No. They are copying the text from Kariks or other mobs, to get a simple layout of the items. You found, it seems the real npcdata, that I would like to use, wonder if you have Anakim, or where you got it? Anyway, re-post the rest of your data for main mob lilith, and we will check it.
|
mmm npc correct
maximus the npc is correct but the l2.exe no access to npc level more 70 this anakin goob but .exe say unknow
|
Code:
npc_begin warrior 10286 [anakim] level=90 exp=602565565 acquire_exp_rate=18 undying=0 can_be_attacked=1 acquire_sp=100000 race=dragon sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_baium_normal_attack;@s_energy_wave;@s_earth_quake;@s_thunderbolt;@s_group_hold;@s_full_magic_defence} magic_list={} max_item=50 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={{{{[adena];30000000;40000000;100}};100};{{{[heavy_war_axe];1;1;25};{[dasparion's_staff];1;1;12};{[dark_elven_long_bow];1;1;25};{[sword_of_damascus];1;1;19};{[lancia];1;1;19}};60};{{{[divine_hose];1;1;25};{[divine_tunic];1;1;15};{[blessed_gloves];1;1;30};{[divine_boots];1;1;30}};80};{{{[adamantite_earing];1;1;35};{[adamantite_ring];1;1;45};{[adamantite_necklace];1;1;20}};100};{{{[scroll_of_escape_to_castle];1;9;35};{[silver_arrow];100;500;40};{[greater_healing_potion];1;9;25}};100}} 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=7 str=40 int=21 dex=30 wit=20 con=43 men=25 hp_increase=200 mp_increase=150 org_hp_regen=4 org_mp_regen=1.8 ground_low={50;0;10} ground_high={186;-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=1500000 org_mp=500000 base_defend=1100 base_magic_attack=1195 base_magic_defend=1489 base_physical_attack=1856 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=-484 collision_radius=15 collision_height=55 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[anakim];{[SelfRangeDDMagic]=@s_npc_spear_attack1};{[DDMagic]=@s_boss_holy_light_burst7};{[DeBuff]=@s_thunderbolt}} corpse_time=30 no_sleep_mode=0 npc_endMY NPC_AI npc_ai={[anakim];{[SelfRangeDDMagic]=@s_npc_spear_attack1};{[DDMagic]=@s_boss_holy_light_burst7};{[DeBuff]=@s_thunderbolt}} ty |
why you have baium skills on anakim ?
|
| All times are GMT. The time now is 23:54. |