Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 28.03.2006, 03:54   #1
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default [Share] C4 Pets stuff

all credits go to huali

NPCDATA里的:
//猫女王
npc_begin summon 13137 [summ_queen_of_cat_1] level=42 exp=18995665 acquire_exp_rate=10 undying=0 can_be_attacked=0 acquire_sp=1500 race=humanoid sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_summon_magic_defence} magic_list={} max_item=50 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} 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=40 mp_increase=7 org_hp_regen=6.5 org_mp_regen=2.4 ground_low={48;0;10} ground_high={140;-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;10} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=1713 org_mp=679 base_defend=100 base_magic_attack=90 base_magic_defend=120 base_physical_attack=200 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=8 collision_height=15 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[queen_of_cat]} corpse_time=7 no_sleep_mode=0 npc_end
注意:这个只能是人类才能召唤的!!
//独角兽瑟拉皮尔
npc_begin summon 13151 [summ_unicorn_seraphim_1] level=42 exp=18995665 acquire_exp_rate=10 undying=0 can_be_attacked=0 acquire_sp=1500 race=humanoid sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_summon_magic_defence} magic_list={} max_item=50 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} 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=40 mp_increase=7 org_hp_regen=6.5 org_mp_regen=2.4 ground_low={27;0;10} ground_high={140;-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;10} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=1713 org_mp=679 base_defend=100 base_magic_attack=90 base_magic_defend=120 base_physical_attack=200 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=11 collision_height=26 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[unicorn_seraphim]} corpse_time=7 no_sleep_mode=0 npc_end
注意:这个是精灵召唤的
在AI里的:
class queen_of_cat : pet_use_one_skill
class_end
class unicorn_seraphim: pet_use_one_skill
class_end
class pet_use_one_skill : default_npc
parameter_define_begin
int DDMagic 769
parameter_define_end
handler 13 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

shift_sp 1
push_const xx.xx0000
func_call 14 // func[AddPetDefaultDesire_Follow]
shift_sp -1
shift_sp -1
handler_end

handler 0 // NO_DESIRE
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

shift_sp 1
push_const xx.xx0000
func_call 14 // func[AddPetDefaultDesire_Follow]
shift_sp -1
shift_sp -1
handler_end

handler 32 // MENU_SELECTED
variable_begin
"ask"
"reply"
"i0"
"c0"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

push_event // i0
push_const 192
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // master
push_const 2404
add
fetch_i // target_index
push_const 384
add
fetch_i
assign
shift_sp -1
push_event // i0
push_const 192
add
fetch_i
push_const 0
less_equal
branch_false L2123
L2122
exit_handler
L2123
push_event // c0
push_const 272
add
push_reg_sp
fetch_i
shift_sp 1
push_event // i0
push_const 192
add
fetch_i
func_call 30 // func[GetCreatureFromIndex]
shift_sp -1
assign
shift_sp -1
push_event // c0
push_const 272
add
fetch_i
branch_false L2125
L2124
push_event // i0
push_const 192
add
push_reg_sp
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // level
push_const 888
add
fetch_i
push_const 10
div
assign
shift_sp -1
push_event // i0
push_const 192
add
fetch_i
push_const 0
not_equal
branch_false L2127
L2126
push_event // i0
push_const 192
add
push_reg_sp
fetch_i
push_event // i0
push_const 192
add
fetch_i
push_const 1
sub
assign
shift_sp -1
L2127
push_event // i0
push_const 192
add
push_reg_sp
fetch_i
push_event // i0
push_const 192
add
fetch_i
push_parameter DDMagic
add
assign
shift_sp -1
shift_sp 1
push_event // i0
push_const 192
add
fetch_i
func_call 155 // func[Skill_GetConsumeMP]
shift_sp -1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // mp
push_const 352
add
fetch_d
less
push_reg_sp
fetch_i
branch_false L2128
shift_sp 1
push_event // i0
push_const 192
add
fetch_i
func_call 154 // func[Skill_GetConsumeHP]
shift_sp -1
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i // hp
push_const 344
add
fetch_d
less
and
push_reg_sp
fetch_i
branch_false L2128
shift_sp 1
push_event // i0
push_const 192
add
fetch_i
func_call 160 // func[Skill_InReuseDelay]
shift_sp -1
push_const 0
equal
and
L2128
branch_false L2130
L2129
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // master
push_const 2404
add
fetch_i // target_id
push_const 388
add
fetch_i
push_event // i0
push_const 192
add
fetch_i
push_const 0
push_event // reply
push_const 104
add
fetch_i
push_event // ask
push_const 100
add
fetch_i
push_const 1000000
func_call 11 // func[AddUseSkillDesireEx]
shift_sp -6
shift_sp -1
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // master
push_const 2404
add
fetch_i // target_id
push_const 388
add
fetch_i
push_event // reply
push_const 104
add
fetch_i
push_event // ask
push_const 100
add
fetch_i
push_const 50000
func_call 3 // func[AddAttackDesireEx]
shift_sp -4
shift_sp -1
L2130
L2125
handler_end

class_end
在NPC_PCH里的:
[summ_queen_of_cat_1] = 1013137
[summ_unicorn_seraphim_1] = 1013151

在itemdata里:

item_begin etcitem 3832 [q_herb_of_breka] item_type=etcitem slot_bit_type={none} armor_type=none etcitem_type=pet_collar blessed=0 weight=20 default_action=action_skill_maintain consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=0 spiritshot_count=0 immediate_effect=0 price=0 default_price=10000 item_skill=[s_summ_queen_of_cat_1] critical_attack_skill=[none] material_type=steel crystal_type=none crystal_count=0 is_trade=1 is_drop=0 is_destruct=1 physical_damage=0 random_damage=0 weapon_type=none can_penetrate=0 critical=0 hit_modify=0 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=0 effective_range=0 damage_range={} attack_speed=0 reuse_delay=0 mp_consume=0 magical_damage=0 durability=0 damaged=0 physical_defense=0 magical_defense=0 mp_bonus=0 category={} enchanted=0 html=[item_default.htm] equip_pet={0} magic_weapon=0 item_end
item_begin etcitem 3833 [q_herb_of_vanor] item_type=etcitem slot_bit_type={none} armor_type=none etcitem_type=pet_collar blessed=0 weight=20 default_action=action_skill_maintain consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=0 spiritshot_count=0 immediate_effect=1 price=0 default_price=10 item_skill=[s_summ_unicorn_seraphim_1] critical_attack_skill=[none] material_type=steel crystal_type=none crystal_count=0 is_trade=1 is_drop=0 is_destruct=1 physical_damage=0 random_damage=0 weapon_type=none can_penetrate=0 critical=0 hit_modify=0 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=0 effective_range=0 damage_range={} attack_speed=0 reuse_delay=0 mp_consume=0 magical_damage=0 durability=0 damaged=0 physical_defense=0 magical_defense=0 mp_bonus=0 category={} enchanted=0 html=[item_default.htm] equip_pet={0} magic_weapon=0 item_end
在item_pch里
[q_herb_of_breka] = 3832
[q_herb_of_vanor] = 3833

在skilldata里:
skill_begin skill_name = [s_summ_queen_of_cat_1] /* [召唤猫女王] */ skill_id = 1331 level = 1 operate_type = A1 magic_level = 42 effect = {{i_summon;[summ_queen_of_cat_1];10}} operate_cond = {{can_summon}} is_magic = 1 mp_consume1 = 14 mp_consume2 = 56 item_consume = {[crystal_c];9} cast_range = -1 effective_range = -1 skill_hit_time = 6 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 20 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end

skill_begin skill_name = [s_summ_unicorn_seraphim_1] /* [召唤 独角兽瑟拉皮尔] */ skill_id = 1332 level = 1 operate_type = A1 magic_level = 42 effect = {{i_summon;[summ_unicorn_seraphim_1];70}} operate_cond = {{can_summon}} is_magic = 1 mp_consume1 = 14 mp_consume2 = 56 item_consume = {[crystal_c];9} cast_range = -1 effective_range = -1 skill_hit_time = 6 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 20 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end

在skill_pch1里:
[s_summ_queen_of_cat_1] = 340737
[s_summ_unicorn_seraphim_1] = 340993
在skill_pch2里:
340737 -1 0 70 0 0 29 -1 0 6 14 1 -12345
340993 -1 0 70 0 0 29 -1 0 6 14 1 -12345
Digital is offline  
Old 28.03.2006, 08:28   #2
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

You sir are teh man! ;o
xerogen is offline  
Old 28.03.2006, 22:16   #3
Eanae
Архивный участник
 
Join Date: Jun 2005
Posts: 262
Default

Hmm this AI makes their skills work? And what's the itemdata for?

PS: These are c4 summons, not pets.
Eanae is offline  
Old 04.04.2006, 03:05   #4
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

all pets man
check list all C4 skills Not have summons for C4 skills
all pets

http://www.lineage2.com/Knowledge/ra...pectral_master
kepler001 is offline  
Old 04.04.2006, 03:18   #5
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

are summons kepler

http://www.lineage2.com/Knowledge/summon_1.html
SoaPy is offline  
Old 04.04.2006, 03:37   #6
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

sorry
ist summon http://www.lineage2.com/Knowledge/ra...antom_summoner
up lvl 68 new summons
kepler001 is offline  
Old 04.04.2006, 08:23   #7
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

They are new summons givin to ES,PS,WARLOCK. Hes missing the PS tho.

Also Digital just posted them so u can either use them as:
A) a skill
B) an item summon.

isnt hard to just remove the item, if u wanna make it right copy other summons and change stats. No the AI doesnt make them do there skills. The new C4 Summons have Buffs/Debuffs for masters enemys like 4 each. There pretty freakin sweet.
xerogen is offline  
Old 04.04.2006, 15:16   #8
Eanae
Архивный участник
 
Join Date: Jun 2005
Posts: 262
Default

I'm guessing the ask / reply goes in order of the icons on the box when coding the skill AI?

Ex) Icon one is reply 1, icon 2 is reply 2. etc.
Eanae is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 18:54.