![]() |
|
|
#1 |
|
Архивный участник
Join Date: Mar 2005
Posts: 475
|
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 |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Mar 2005
Posts: 475
|
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 |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Mar 2005
Posts: 1,143
|
Sweet! Getting closer to a functional ai.obj!
Thanks a lot hami! :wink: |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
Sweet Jesus , This is Awsome !!!
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
Btw you need to add in npcdata too
Otherwise it will not work |
|
|
|
|
#6 |
|
Архивный участник
Join Date: May 2005
Posts: 368
|
npcai={[lilith]}
npcai={[anakim]} (...) |
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2005
Posts: 89
|
but hes skills set in npcdata :?
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
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 |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
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
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Mar 2005
Posts: 475
|
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.
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Aug 2005
Posts: 119
|
:shock: OMG men you have sleep, rooth effect, how you make this.
thank for AI.obj thank |
|
|
|
|
#12 |
|
Архивный участник
Join Date: Apr 2005
Posts: 202
|
omg ye what did you edit/change to get root/sleep effect to show?
|
|
|
|
|
#13 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
Quote:
Yup that's true...At least they are working ![]() Thanks m8 Gonna add them skills later. |
|
|
|
|
|
#14 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 104
|
Quote:
|
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Jun 2005
Posts: 549
|
???
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Feb 2005
Posts: 766
|
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. |
|
|
|
|
#17 |
|
Архивный участник
Join Date: Mar 2005
Posts: 475
|
like you said i didnt made that
and i cant share it, soz. for info its l2server hex editing 6 adress rewritten. |
|
|
|
|
#18 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
these ai looks really familar
|
|
|
|
|
#19 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
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. |
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Aug 2005
Posts: 119
|
it is a pain that you cannot share it :cry: , but I understand :wink:
tank sorry for my english Im from cuba XD |
|
|
|
|
#21 |
|
Архивный участник
Join Date: Jun 2005
Posts: 364
|
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.
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: Jun 2005
Posts: 135
|
Hi
Ex: npc_ai={[lilith];{[HoldMagic]=@s_npc_hold6}} its fibe?? |
|
|
|
|
#23 |
|
Архивный участник
Join Date: Jun 2005
Posts: 135
|
Hi
Guys see that |
|
|
|
|
#24 |
|
Архивный участник
Join Date: Mar 2005
Posts: 475
|
you lack skills definition in npcdata
|
|
|
|
|
#25 |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
whoah , try update your npcdata.
|
|
|
|
|