Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 14.09.2005, 16:50   #1
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default [Sharing] Baium using 4 skills !

well i think that its time to share this with the rest of the community, dont flame, spam, and all that shit please, just took the code and done, if you want edit the drop list and done, is working without bugs, and use the npcpos posted by BG.

Npcdata.txt
Code:
npc_begin warrior 12372 [baium] level=85 exp=602565565 acquire_exp_rate=1.8 undying=0 can_be_attacked=1 acquire_sp=10000 race=dragon sex=male temper=100 safe_height=100 org_jump=15 skill_list={} magic_list={} max_item=50 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={{{{[adena];20000000;30000000;100}};100};{{{[heavy_war_axe];1;1;25};{[rp_hazard_bow_i];1;1;12};{[dark_elven_long_bow];1;1;25};{[rp_sword_of_damascus_i];1;1;19};{[rp_shrnoen's_leather_gaiters_i];1;1;19}};60};{{{[divine_hose];1;1;25};{[divine_tunic];1;1;15};{[blessed_gloves];1;1;30};{[divine_boots];1;1;30}};80};{{{[adamantite_earing];1;1;35};{[adamantite_ring];1;1;45};{[adamantite_necklace];1;1;20}};100};{{{[scroll_of_escape_to_castle];1;9;35};{[silver_arrow];100;500;40};{[blue_wolve's_breastplate_part];1;9;25}};100}} slot_chest=[] slot_rhand=[] slot_lhand=[] base_attack_type=fist base_can_penetrate=0 base_attack_range=100 base_damage_range={0;0;80;300} base_rand_dam=12 str=60 int=60 dex=60 wit=60 con=60 men=60 hp_increase=200 mp_increase=150 org_hp_regen=12 org_mp_regen=12 ground_low={50;0;10} ground_high={186;-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=900 sight={0;0;2500;120;5} agro_range=2000 org_hp=1000000 org_mp=500000 base_defend=1200 base_magic_attack=900 base_magic_defend=1200 base_physical_attack=3000 physical_hit_modify=6 physical_avoid_modify=6 base_attack_speed=333 base_reuse_delay=0 base_critical=6 magic_use_speed_modify=0 status={normal} align=-1444 collision_radius=65 collision_height=174 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[baium];{[PhysicalSpecial]=@s_baium_normal_attack};{[HoldMagic]=@s_energy_wave};{[SelfRangeDDMagic]=@s_earth_quake};{[DeBuff]=@s_thunderbolt}} corpse_time=10 no_sleep_mode=1 npc_end
Npc_pch.txt
Code:
[baium] = 1012372
Skilldata.txt
Code:
skill_begin skill_name = [s_baium_normal_attack] /* [????] */ skill_id = 4127 level = 1 operate_type = A1 magic_level = 80 effect = {{i_p_attack_over_hit;22000}} is_magic = 0 mp_consume2 = 0 cast_range = 100 effective_range = 150 skill_hit_time = 1.5 skill_cool_time = 0.7 skill_hit_cancel_time = 0.5 reuse_delay = 0 attribute = attr_none effect_point = -100 target_type = enemy affect_scope = range affect_range = 100 affect_object = not_friend next_action = none skill_end
skill_begin skill_name = [s_energy_wave] /* [??] */ skill_id = 4128 level = 1 operate_type = A2 magic_level = 80 effect = {{i_m_attack;1200};{i_fly_away}} is_magic = 0 mp_consume2 = 0 cast_range = -1 effective_range = -1 skill_hit_time = 2.3 skill_cool_time = 2.7 skill_hit_cancel_time = 0.5 reuse_delay = 0 abnormal_lv = 1 abnormal_type = fly_away attribute = attr_wind effect_point = -200 target_type = self affect_scope = point_blank affect_range = 200 affect_object = not_friend next_action = none skill_end
skill_begin skill_name = [s_earth_quake] /* [??] */ skill_id = 4129 level = 1 operate_type = A1 magic_level = 80 effect = {{i_m_attack;1000}} is_magic = 0 mp_consume2 = 0 cast_range = -1 effective_range = -1 skill_hit_time = 1.5 skill_cool_time = 2 skill_hit_cancel_time = 0.5 reuse_delay = 0 attribute = attr_earth effect_point = -100 target_type = self affect_scope = point_blank affect_range = 200 affect_object = not_friend next_action = none skill_end
skill_begin skill_name = [s_thunderbolt] /* [??] */ skill_id = 4130 level = 1 operate_type = A2 magic_level = 70 effect = {{i_m_attack;650};{t_hp;-34;1}} is_magic = 1 mp_consume1 = 20 mp_consume2 = 85 cast_range = 600 effective_range = 800 skill_hit_time = 4 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 8 activate_rate = 70 lv_bonus_rate = 1 basic_property = wit abnormal_time = 90 abnormal_lv = 7 abnormal_type = dot_attr attribute = attr_fire effect_point = -100 target_type = enemy_only affect_scope = range affect_range = 2000 next_action = none abnormal_visual_effect = ave_dot_bleeding skill_end
Skill_pch.txt
Code:
[s_baium_normal_attack] = 1056513
[s_energy_wave] = 1056769
[s_earth_quake] = 1057025
[s_thunderbolt] = 1057281
Skill_pch2
Code:
1056513 100 0 0 3 -100 29 -1 0 2 -1 0 -12345
1056769 -1 0 0 0 -200 11 14 1 3 -3 0 -12345
1057025 -1 0 0 0 -100 9 -1 0 2 -1 0 -12345
1057281 600 0 105 4 -100 12 32 7 4 4 1 -12345
AI.obj
Code:
class warrior_baium_physicalspecial : warrior
parameter_define_begin
	int PhysicalSpecial 1056513
parameter_define_end
handler 1	//  ATTACKED
	variable_begin
		"attacker"
		"damage"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  is_pc
	push_const 108
	add
	fetch_i
	push_const 0
	not_equal
	push_reg_sp
	fetch_i
	branch_true L1815
	shift_sp 1
	push_const 9
	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  npc_class_id
	push_const 1620
	add
	fetch_i
	func_call 143	//  func[IsInCategory]
	shift_sp -2
	or
L1815
	branch_false L1817
L1816
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 10
	less
	push_reg_sp
	fetch_i
	branch_false L1818
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  top_desire_target
	push_const 2412
	add
	fetch_i
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	equal
	and
L1818
	branch_false L1820
L1819
	shift_sp 1
	push_parameter PhysicalSpecial
	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 L1821
	shift_sp 1
	push_parameter PhysicalSpecial
	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 L1821
	shift_sp 1
	push_parameter PhysicalSpecial
	func_call 160	//  func[Skill_InReuseDelay]
	shift_sp -1
	push_const 0
	equal
	and
L1821
	branch_false L1823
L1822
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	push_parameter PhysicalSpecial
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L1823
L1820
L1817
	call_super
handler_end

handler 23	//  CLAN_ATTACKED
	variable_begin
		"attacker"
		"damage"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	func_call 20	//  func[GetLifeTime]
	push_const 7
	greater
	push_reg_sp
	fetch_i
	branch_false L1824
	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  is_pc
	push_const 108
	add
	fetch_i
	push_const 0
	not_equal
	push_reg_sp
	fetch_i
	branch_true L1825
	shift_sp 1
	push_const 9
	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  npc_class_id
	push_const 1620
	add
	fetch_i
	func_call 143	//  func[IsInCategory]
	shift_sp -2
	or
L1825
	and
	push_reg_sp
	fetch_i
	branch_false L1824
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  p_state
	push_const 2308
	add
	fetch_i
	push_const 3
	not_equal
	and
L1824
	branch_false L1827
L1826
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 10
	less
	branch_false L1829
L1828
	shift_sp 1
	push_parameter PhysicalSpecial
	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 L1830
	shift_sp 1
	push_parameter PhysicalSpecial
	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 L1830
	shift_sp 1
	push_parameter PhysicalSpecial
	func_call 160	//  func[Skill_InReuseDelay]
	shift_sp -1
	push_const 0
	equal
	and
L1830
	branch_false L1832
L1831
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	push_parameter PhysicalSpecial
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L1832
L1829
L1827
	call_super
handler_end

class_end

class warrior_casting_baium_hold_magic : warrior_baium_physicalspecial
parameter_define_begin
	int HoldMagic 1056769
parameter_define_end
handler 13	//  CREATED
	variable_begin
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	push_reg_sp
	fetch_i
	push_const 0
	assign
	shift_sp -1
	call_super
handler_end

handler 1	//  ATTACKED
	variable_begin
		"attacker"
		"damage"
		"i6"
		"c0"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  is_pc
	push_const 108
	add
	fetch_i
	push_const 0
	not_equal
	push_reg_sp
	fetch_i
	branch_true L1854
	shift_sp 1
	push_const 9
	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  npc_class_id
	push_const 1620
	add
	fetch_i
	func_call 143	//  func[IsInCategory]
	shift_sp -2
	or
L1854
	branch_false L1856
L1855
	shift_sp 1
	push_const 2001
	push_const 12000
	func_call 28	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
	push_event	//  i6
	push_const 216
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	assign
	shift_sp -1
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	func_call 51	//  func[DistFromMe]
	shift_sp -1
	push_const 300
	greater
	push_reg_sp
	fetch_i
	branch_false L1857
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	fetch_i
	push_const 0
	equal
	and
L1857
	branch_false L1859
L1858
	push_event	//  i6
	push_const 216
	add
	fetch_i
	push_const 50
	less
	branch_false L1861
L1860
	shift_sp 1
	push_parameter HoldMagic
	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 L1862
	shift_sp 1
	push_parameter HoldMagic
	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 L1862
	shift_sp 1
	push_parameter HoldMagic
	func_call 160	//  func[Skill_InReuseDelay]
	shift_sp -1
	push_const 0
	equal
	and
L1862
	branch_false L1864
L1863
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	push_parameter HoldMagic
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L1864
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	push_reg_sp
	fetch_i
	push_const 1
	assign
	shift_sp -1
L1861
	jump L1865
L1859
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	func_call 51	//  func[DistFromMe]
	shift_sp -1
	push_const 100
	greater
	push_reg_sp
	fetch_i
	branch_false L1866
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	fetch_i
	push_const 0
	equal
	and
L1866
	branch_false L1868
L1867
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  top_desire_target
	push_const 2412
	add
	fetch_i
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	equal
	push_reg_sp
	fetch_i
	branch_false L1869
	push_event	//  i6
	push_const 216
	add
	fetch_i
	push_const 50
	less
	and
L1869
	push_reg_sp
	fetch_i
	branch_true L1870
	push_event	//  i6
	push_const 216
	add
	fetch_i
	push_const 10
	less
	or
L1870
	branch_false L1872
L1871
	shift_sp 1
	push_parameter HoldMagic
	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 L1873
	shift_sp 1
	push_parameter HoldMagic
	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 L1873
	shift_sp 1
	push_parameter HoldMagic
	func_call 160	//  func[Skill_InReuseDelay]
	shift_sp -1
	push_const 0
	equal
	and
L1873
	branch_false L1875
L1874
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	push_parameter HoldMagic
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L1875
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	push_reg_sp
	fetch_i
	push_const 1
	assign
	shift_sp -1
L1872
L1868
L1865
	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  attack_type
	push_const 1148
	add
	fetch_i
	push_const 6
	equal
	push_reg_sp
	fetch_i
	branch_false L1876
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	fetch_i
	push_const 0
	equal
	and
L1876
	branch_false L1878
L1877
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 50
	less
	branch_false L1880
L1879
	shift_sp 1
	push_parameter HoldMagic
	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 L1881
	shift_sp 1
	push_parameter HoldMagic
	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 L1881
	shift_sp 1
	push_parameter HoldMagic
	func_call 160	//  func[Skill_InReuseDelay]
	shift_sp -1
	push_const 0
	equal
	and
L1881
	branch_false L1883
L1882
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	push_parameter HoldMagic
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L1883
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	push_reg_sp
	fetch_i
	push_const 1
	assign
	shift_sp -1
L1880
L1878
L1856
	call_super
handler_end

handler 12	//  TIMER_FIRED_EX
	variable_begin
		"timer_id"
		"i6"
		"c0"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  timer_id
	push_const 176
	add
	fetch_i
	push_const 2001
	equal
	branch_false L1885
L1884
	push_event	//  c0
	push_const 272
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	func_call 83	//  func[GetLastAttacker]
	assign
	shift_sp -1
	push_event	//  i6
	push_const 216
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	assign
	shift_sp -1
	push_event	//  i6
	push_const 216
	add
	fetch_i
	push_const 80
	less
	push_reg_sp
	fetch_i
	branch_false L1886
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	fetch_i
	push_const 0
	equal
	and
L1886
	branch_false L1888
L1887
	shift_sp 1
	push_parameter HoldMagic
	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 L1889
	shift_sp 1
	push_parameter HoldMagic
	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 L1889
	shift_sp 1
	push_parameter HoldMagic
	func_call 160	//  func[Skill_InReuseDelay]
	shift_sp -1
	push_const 0
	equal
	and
L1889
	branch_false L1891
L1890
	shift_sp 1
	push_event	//  c0
	push_const 272
	add
	fetch_i
	push_parameter HoldMagic
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L1891
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	push_reg_sp
	fetch_i
	push_const 1
	assign
	shift_sp -1
L1888
L1885
	call_super
handler_end

class_end

class warrior_baium_casting_splash : warrior_casting_baium_hold_magic
parameter_define_begin
	int SelfRangeDDMagic 1057025
parameter_define_end
handler 1	//  ATTACKED
	variable_begin
		"attacker"
		"damage"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  is_pc
	push_const 108
	add
	fetch_i
	push_const 0
	not_equal
	push_reg_sp
	fetch_i
	branch_true L1669
	shift_sp 1
	push_const 9
	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  npc_class_id
	push_const 1620
	add
	fetch_i
	func_call 143	//  func[IsInCategory]
	shift_sp -2
	or
L1669
	branch_false L1671
L1670
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	func_call 51	//  func[DistFromMe]
	shift_sp -1
	push_const 200
	less
	push_reg_sp
	fetch_i
	branch_false L1672
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 10
	less
	and
	push_reg_sp
	fetch_i
	branch_false L1672
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  top_desire_target
	push_const 2412
	add
	fetch_i
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	equal
	and
L1672
	branch_false L1674
L1673
	shift_sp 1
	push_parameter SelfRangeDDMagic
	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 L1675
	shift_sp 1
	push_parameter SelfRangeDDMagic
	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 L1675
	shift_sp 1
	push_parameter SelfRangeDDMagic
	func_call 160	//  func[Skill_InReuseDelay]
	shift_sp -1
	push_const 0
	equal
	and
L1675
	branch_false L1677
L1676
	shift_sp 1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  sm
	push_const 2400
	add
	fetch_i
	push_parameter SelfRangeDDMagic
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L1677
L1674
L1671
	call_super
handler_end

handler 23	//  CLAN_ATTACKED
	variable_begin
		"attacker"
		"damage"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	func_call 20	//  func[GetLifeTime]
	push_const 7
	greater
	push_reg_sp
	fetch_i
	branch_false L1678
	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  is_pc
	push_const 108
	add
	fetch_i
	push_const 0
	not_equal
	push_reg_sp
	fetch_i
	branch_true L1679
	shift_sp 1
	push_const 9
	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  npc_class_id
	push_const 1620
	add
	fetch_i
	func_call 143	//  func[IsInCategory]
	shift_sp -2
	or
L1679
	and
L1678
	branch_false L1681
L1680
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	func_call 51	//  func[DistFromMe]
	shift_sp -1
	push_const 200
	less
	push_reg_sp
	fetch_i
	branch_false L1682
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 10
	less
	and
	push_reg_sp
	fetch_i
	branch_false L1682
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  top_desire_target
	push_const 2412
	add
	fetch_i
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	equal
	and
L1682
	branch_false L1684
L1683
	shift_sp 1
	push_parameter SelfRangeDDMagic
	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 L1685
	shift_sp 1
	push_parameter SelfRangeDDMagic
	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 L1685
	shift_sp 1
	push_parameter SelfRangeDDMagic
	func_call 160	//  func[Skill_InReuseDelay]
	shift_sp -1
	push_const 0
	equal
	and
L1685
	branch_false L1687
L1686
	shift_sp 1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  sm
	push_const 2400
	add
	fetch_i
	push_parameter SelfRangeDDMagic
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L1687
L1684
L1681
	call_super
handler_end

class_end

class warrior_baium_casting_curse : warrior_baium_casting_splash
parameter_define_begin
	int DeBuff 1057281
parameter_define_end
handler 1	//  ATTACKED
	variable_begin
		"attacker"
		"damage"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  is_pc
	push_const 108
	add
	fetch_i
	push_const 0
	not_equal
	push_reg_sp
	fetch_i
	branch_true L1711
	shift_sp 1
	push_const 9
	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  npc_class_id
	push_const 1620
	add
	fetch_i
	func_call 143	//  func[IsInCategory]
	shift_sp -2
	or
L1711
	branch_false L1713
L1712
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 10
	less
	push_reg_sp
	fetch_i
	branch_false L1714
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	shift_sp 1
	push_parameter DeBuff
	func_call 158	//  func[Skill_GetAbnormalType]
	shift_sp -1
	func_call 67	//  func[GetAbnormalLevel]
	shift_sp -2
	push_const 0
	less_equal
	and
	push_reg_sp
	fetch_i
	branch_false L1714
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  top_desire_target
	push_const 2412
	add
	fetch_i
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	equal
	and
L1714
	branch_false L1716
L1715
	shift_sp 1
	push_parameter DeBuff
	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 L1717
	shift_sp 1
	push_parameter DeBuff
	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 L1717
	shift_sp 1
	push_parameter DeBuff
	func_call 160	//  func[Skill_InReuseDelay]
	shift_sp -1
	push_const 0
	equal
	and
L1717
	branch_false L1719
L1718
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	push_parameter DeBuff
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L1719
L1716
L1713
	call_super
handler_end

handler 23	//  CLAN_ATTACKED
	variable_begin
		"attacker"
		"damage"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	func_call 20	//  func[GetLifeTime]
	push_const 7
	greater
	push_reg_sp
	fetch_i
	branch_false L1720
	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  is_pc
	push_const 108
	add
	fetch_i
	push_const 0
	not_equal
	push_reg_sp
	fetch_i
	branch_true L1721
	shift_sp 1
	push_const 9
	push_event	//  attacker
	push_const 36
	add
	fetch_i	//  npc_class_id
	push_const 1620
	add
	fetch_i
	func_call 143	//  func[IsInCategory]
	shift_sp -2
	or
L1721
	and
L1720
	branch_false L1723
L1722
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 10
	less
	push_reg_sp
	fetch_i
	branch_false L1724
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	shift_sp 1
	push_parameter DeBuff
	func_call 158	//  func[Skill_GetAbnormalType]
	shift_sp -1
	func_call 67	//  func[GetAbnormalLevel]
	shift_sp -2
	push_const 0
	less_equal
	and
L1724
	branch_false L1726
L1725
	shift_sp 1
	push_parameter DeBuff
	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 L1727
	shift_sp 1
	push_parameter DeBuff
	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 L1727
	shift_sp 1
	push_parameter DeBuff
	func_call 160	//  func[Skill_InReuseDelay]
	shift_sp -1
	push_const 0
	equal
	and
L1727
	branch_false L1729
L1728
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	push_parameter DeBuff
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L1729
L1726
L1723
	call_super
handler_end

class_end


class baium : warrior_baium_casting_curse
handler 5      // SEE_CREATURE
     variable_begin
           "creature"
           "myself"
           "_choiceN"
           "_code"
           "_from_choice"
     variable_end

     shift_sp 1
     func_call 20      // func[GetLifeTime]
     push_const 7
     greater
     push_reg_sp
     fetch_i
     branch_false L1892
     shift_sp 1
     push_event      // myself
     push_const 28
     add
     fetch_i      // sm
     push_const 2400
     add
     fetch_i
     func_call 177      // func[InMyTerritory]
     shift_sp -1
     and
L1892
     branch_false L1894
L1893
     shift_sp 1
     push_event      // creature
     push_const 68
     add
     fetch_i
     push_const 1
     push_const 200
     func_call 2      // func[AddAttackDesire]
     shift_sp -3
     shift_sp -1
L1894
handler_end

class_end
SoaPy is offline  
Old 14.09.2005, 16:52   #2
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Very nice!

Will give it a try in a bit. Thanks for the share!
flakka is offline  
Old 14.09.2005, 17:07   #3
Enishi
Архивный участник
 
Join Date: Apr 2005
Posts: 354
Default

Nice :P
Will give you a report after I test it ^^
Enishi is offline  
Old 14.09.2005, 17:36   #4
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

goooood^^
especially the ai stuff is interestin...
toolpunk is offline  
Old 14.09.2005, 17:59   #5
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

awesome
thks
btw i dont think u have to define skills their
skill_list={@s_baium_normal_attack;@s_energy_wave; @s_earth_quake;@s_thunderbolt}

its for passive skills
hamidouch is offline  
Old 14.09.2005, 18:33   #6
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

Quote:
Originally Posted by hamidouch
awesome
thks
btw i dont think u have to define skills their
skill_list={@s_baium_normal_attack;@s_energy_wave; @s_earth_quake;@s_thunderbolt}

its for passive skills
yes i know ^^, but i added this line just before posted the code, dont know why .

[Updated now]
SoaPy is offline  
Old 14.09.2005, 19:41   #7
lineagejen
Архивный участник
 
Join Date: Sep 2005
Posts: 7
Default

nice job...
thx
lineagejen is offline  
Old 14.09.2005, 20:14   #8
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

/me bows down to SoaPy!

/me looks at SoaPy's sig

/me bows down again
Metalmurphy is offline  
Old 14.09.2005, 20:16   #9
soulkiller26
Архивный участник
 
Join Date: May 2005
Posts: 16
Default

Very good single work... I have a doubt since I make to go down to him a little the attack does so many skill that some do not do them. -

Sorry by my badly ingles
soulkiller26 is offline  
Old 18.09.2005, 07:50   #10
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

I have checked this over and over, and I still get invalid skill_name_id errors for 1057281 and 1056769

Eh?
Kenster is offline  
Old 18.09.2005, 07:57   #11
Sundh
Архивный участник
 
Join Date: Apr 2005
Posts: 202
Default

check in skill_pch and you will see witch skill who use 1057281 & 1056769

1057281 should be [s_striking_of_thunderbolt]
and 1056769 should be [s_energy_wave]
Sundh is offline  
Old 18.09.2005, 08:04   #12
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

This is what I got.

Code:
[s_baium_normal_attack] = 1056513
[s_energy_wave] = 1056769
[s_earth_quake] = 1057025
[s_thunderbolt] = 1057281
Code:
territory_begin   [toi_14]   {{112935;14346;10072;40152};{116631;14671;10072;40152};{116142;17560;10072;40152};{112842;17651;10072;40152}}   territory_end 
npcmaker_begin   [toi_14]   initial_spawn=all 
npc_begin    [baium_npc]    pos={116104;17523;10072;40152}    on_delete_create(1sec,{[baium]}) total = 1    respawn=4hour    respawn_rand=30min    npc_end 
npc_begin    [baium]    nickname=[baium]    pos={116104;17523;10072;40152}    total=1    respawn=no    npc_end 
npcmaker_end
Code:
1056513 100 0 0 3 -100 29 -1 0 2 -1 0 -12345
1056769 -1 0 0 0 -200 11 14 1 3 -2 0 -12345
1057025 -1 0 0 0 -100 9 -1 0 2 -1 0 -12345
1057281 600 0 105 4 -100 12 32 7 4 4 1 -12345
Code:
npc_begin   warrior   12372   [baium]    level=85 exp=602565565 acquire_exp_rate=1.8 undying=0 can_be_attacked=1 acquire_sp=10000 race=dragon 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={{{{[adena];20000000;30000000;100}};100};{{{[heavy_war_axe];1;1;25};{[rp_hazard_bow_i];1;1;12};{[dark_elven_long_bow];1;1;25};{[rp_sword_of_damascus_i];1;1;19};{[rp_shrnoen's_leather_gaiters_i];1;1;19}};60};{{{[divine_hose];1;1;25};{[divine_tunic];1;1;15};{[blessed_gloves];1;1;30};{[divine_boots];1;1;30}};80};{{{[adamantite_earing];1;1;35};{[adamantite_ring];1;1;45};{[adamantite_necklace];1;1;20}};100};{{{[scroll_of_escape_to_castle];1;9;35};{[silver_arrow];100;500;40};{[blue_wolve's_breastplate_part];1;9;25}};100}} slot_chest=[] slot_rhand=[] slot_lhand=[] base_attack_type=fist base_can_penetrate=0 base_attack_range=100 base_damage_range={0;0;80;300} base_rand_dam=12 str=60 int=40 dex=40 wit=40 con=40 men=40 hp_increase=200 mp_increase=150 org_hp_regen=12 org_mp_regen=12 ground_low={50;0;10} ground_high={186;-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=900 sight={0;0;2500;120;5} agro_range=2000 org_hp=1000000 org_mp=500000 base_defend=1200 base_magic_attack=900 base_magic_defend=1200 base_physical_attack=3000 physical_hit_modify=6 physical_avoid_modify=6 base_attack_speed=333 base_reuse_delay=0 base_critical=6 magic_use_speed_modify=0 status={normal} align=-1444 collision_radius=65 collision_height=174 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[baium];{[PhysicalSpecial]=@s_baium_normal_attack};{[HoldMagic]=@s_energy_wave};{[SelfRangeDDMagic]=@s_earth_quake};{[DeBuff]=@s_thunderbolt}} corpse_time=10 no_sleep_mode=1 npc_end
Code:
skill_begin skill_name = [s_baium_normal_attack] /* [????] */ skill_id = 4127 level = 1 operate_type = A1 magic_level = 80 effect = {{i_p_attack_over_hit;22000}} is_magic = 0 mp_consume2 = 0 cast_range = 100 effective_range = 150 skill_hit_time = 1.5 skill_cool_time = 0.7 skill_hit_cancel_time = 0.5 reuse_delay = 0 attribute = attr_none effect_point = -100 target_type = enemy affect_scope = range affect_range = 100 affect_object = not_friend next_action = none skill_end 
skill_begin skill_name = [s_energy_wave] /* [??] */ skill_id = 4128 level = 1 operate_type = A2 magic_level = 80 effect = {{i_m_attack;1200};{i_fly_away}} is_magic = 0 mp_consume2 = 0 cast_range = -1 effective_range = -1 skill_hit_time = 2.3 skill_cool_time = 2.7 skill_hit_cancel_time = 0.5 reuse_delay = 0 abnormal_lv = 1 abnormal_type = fly_away attribute = attr_wind effect_point = -200 target_type = self affect_scope = point_blank affect_range = 200 affect_object = not_friend next_action = none skill_end 
skill_begin skill_name = [s_earth_quake] /* [??] */ skill_id = 4129 level = 1 operate_type = A1 magic_level = 80 effect = {{i_m_attack;1000}} is_magic = 0 mp_consume2 = 0 cast_range = -1 effective_range = -1 skill_hit_time = 1.5 skill_cool_time = 2 skill_hit_cancel_time = 0.5 reuse_delay = 0 attribute = attr_earth effect_point = -100 target_type = self affect_scope = point_blank affect_range = 200 affect_object = not_friend next_action = none skill_end 
skill_begin skill_name = [s_thunderbolt] /* [??] */ skill_id = 4130 level = 1 operate_type = A2 magic_level = 70 effect = {{i_m_attack;650};{t_hp;-34;1}} is_magic = 1 mp_consume1 = 20 mp_consume2 = 85 cast_range = 600 effective_range = 800 skill_hit_time = 4 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 8 activate_rate = 70 lv_bonus_rate = 1 basic_property = wit abnormal_time = 90 abnormal_lv = 7 abnormal_type = dot_attr attribute = attr_fire effect_point = -100 target_type = enemy_only affect_scope = range affect_range = 2000 next_action = none abnormal_visual_effect = ave_dot_bleeding skill_end
Should be an exact copy from above, but I get some errors?
Kenster is offline  
Old 18.09.2005, 08:32   #13
tavisf
Архивный участник
 
Join Date: Sep 2005
Posts: 13
Default

Keep up the good work m8's
tavisf is offline  
Old 18.09.2005, 11:43   #14
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

Im working on making him start like a stone and when you hit him once then the stone will brake, we will stand up and then will start using his skills. sounds good huh?
top-gear is offline  
Old 18.09.2005, 11:48   #15
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

wasnt such a baium released by botgod?
toolpunk is offline  
Old 18.09.2005, 11:54   #16
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

Quote:
Originally Posted by top-gear
Im working on making him start like a stone and when you hit him once then the stone will brake, we will stand up and then will start using his skills. sounds good huh?
Sounds great, but already been done.
Kenster is offline  
Old 18.09.2005, 14:01   #17
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

huh?by who?I don't have an actually working code for that, I just tried to fix it. Do you have the code fully functional?
top-gear is offline  
Old 18.09.2005, 14:56   #18
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

simple thing on npcpos on_die_summon=baium or something like that
Metalmurphy is offline  
Old 18.09.2005, 16:07   #19
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

I can make him appear like a stone but when I hit him once, he disappears and hits me out of nowhere. If I //summon him, he appears sitting down and he stands up. he is not a stone. I just need to combine those two :P
top-gear is offline  
Old 18.09.2005, 16:38   #20
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

this baium ai used only 2 skills
the general attack and the wind attack
same for every1?
hamidouch is offline  
Old 18.09.2005, 17:20   #21
iamrend
Архивный участник
 
Join Date: May 2005
Posts: 315
Default

Nice soapy
iamrend is offline  
Old 18.09.2005, 21:09   #22
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

Still looking for a solution on page one.
Kenster is offline  
Old 18.10.2005, 08:40   #23
kembl
Архивный участник
 
Join Date: May 2005
Posts: 63
Default

Correct me please!

As I understand, AI.OBJ parser in la2server, walk throught AI class tree and exec only this handlers, that redifined in children classes, so construction like i left at the bottom (get from this topic), cant work!

class warrior_casting_baium_hold_magic : warrior_baium_physicalspecial
parameter_define_begin
int HoldMagic 1056769
parameter_define_end
handler 1 // ATTACKED
....
class_end

class warrior_baium_casting_splash : warrior_casting_baium_hold_magic
parameter_define_begin
int SelfRangeDDMagic 1057025
parameter_define_end
handler 1 // ATTACKED
....
class_end

I.E. every time should work only one ATTACKED handler in warrior_baium_casting_splash

For right work, you mast create some like this

class warrior_baium: warrior
parameter_define_begin
int HoldMagic 1056769
int SelfRangeDDMagic 1057025
etc...
parameter_define_end
handler 1 // ATTACKED

AND THERE DESCRIPTION OF STEP BY STEP (or by expression) SKILL RUNNING

....
class_end

Am i right?
kembl 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 23:13.