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