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={[lilith]} corpse_time=7 no_sleep_mode=0 npc_end
AI Thx to Hamiduch
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
Works just fine