Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 10.09.2005, 15:45   #1
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default [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 is offline  
Old 10.09.2005, 16:09   #2
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

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
hamidouch is offline  
Old 10.09.2005, 16:44   #3
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Sweet! Getting closer to a functional ai.obj!

Thanks a lot hami! :wink:
flakka is offline  
Old 10.09.2005, 17:50   #4
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

Sweet Jesus , This is Awsome !!!
Flamestrike is offline  
Old 10.09.2005, 19:54   #5
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

Btw you need to add in npcdata too
Otherwise it will not work
Flamestrike is offline  
Old 10.09.2005, 19:55   #6
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

npcai={[lilith]}
npcai={[anakim]}
(...)
krapno is offline  
Old 10.09.2005, 20:12   #7
DaRkShAdOw
Архивный участник
 
Join Date: May 2005
Posts: 89
Default

but hes skills set in npcdata :?
DaRkShAdOw is offline  
Old 10.09.2005, 20:16   #8
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

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 is offline  
Old 10.09.2005, 20:34   #9
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

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
Flamestrike is offline  
Old 10.09.2005, 20:51   #10
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

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.
hamidouch is offline  
Old 10.09.2005, 21:04   #11
CubAfull
Архивный участник
 
Join Date: Aug 2005
Posts: 119
Default

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

thank for AI.obj thank
CubAfull is offline  
Old 10.09.2005, 21:13   #12
Sundh
Архивный участник
 
Join Date: Apr 2005
Posts: 202
Default

omg ye what did you edit/change to get root/sleep effect to show?
Sundh is offline  
Old 10.09.2005, 21:22   #13
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

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.
Flamestrike is offline  
Old 10.09.2005, 21:39   #14
Shinare
Архивный участник
 
Join Date: Apr 2005
Posts: 104
Default

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 !
Shinare is offline  
Old 10.09.2005, 21:44   #15
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

???
kepler001 is offline  
Old 10.09.2005, 21:49   #16
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

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.
Metalmurphy is offline  
Old 10.09.2005, 22:25   #17
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

like you said i didnt made that
and i cant share it, soz.
for info its l2server hex editing 6 adress rewritten.
hamidouch is offline  
Old 11.09.2005, 00:35   #18
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

these ai looks really familar
torune is offline  
Old 11.09.2005, 00:45   #19
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

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.
Flamestrike is offline  
Old 11.09.2005, 07:40   #20
CubAfull
Архивный участник
 
Join Date: Aug 2005
Posts: 119
Default

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

sorry for my english Im from cuba XD
CubAfull is offline  
Old 12.09.2005, 02:46   #21
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default 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.
Dave is offline  
Old 13.09.2005, 03:28   #22
maximus
Архивный участник
 
Join Date: Jun 2005
Posts: 135
Default

Hi

Ex:

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

its fibe??
maximus is offline  
Old 13.09.2005, 05:48   #23
maximus
Архивный участник
 
Join Date: Jun 2005
Posts: 135
Default

Hi

Guys see that
maximus is offline  
Old 13.09.2005, 13:29   #24
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

you lack skills definition in npcdata
hamidouch is offline  
Old 13.09.2005, 17:44   #25
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

whoah , try update your npcdata.
Flamestrike is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 16:00.