Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 26.11.2006, 20:44   #5
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default

Here is the AI for big tree:
Code:
class 1 event_tree_use_skill : default_npc
handler 13 24	//  CREATED
	variable_begin
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 5001
	push_const 1000
	push_const 60
	mul
	push_const 20
	mul
	func_call 184680487	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 5002
	push_const 1000
	push_const 10
	mul
	func_call 184680487	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
handler_end

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

	push_event	//  timer_id
	push_const 236
	add
	fetch_i4
	push_const 5001
	equal
	branch_false L20684
L20683
	push_event	//  myself
	push_const 704
	add
	fetch_i
	func_call 184549616	//  func[Despawn]
	shift_sp -1
	jump L20685
L20684
	push_event	//  timer_id
	push_const 236
	add
	fetch_i4
	push_const 5002
	equal
	branch_false L20687
L20686
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 547585
	func_call 184615128	//  func[Skill_GetConsumeMP]
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i	//  mp
	push_const 400
	add
	fetch_d
	less
	push_reg_sp
	fetch_i
	branch_false L20688
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 547585
	func_call 184615127	//  func[Skill_GetConsumeHP]
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i	//  hp
	push_const 392
	add
	fetch_d
	less
	and
	push_reg_sp
	fetch_i
	branch_false L20688
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 547585
	func_call 184615133	//  func[Skill_InReuseDelay]
	shift_sp -1
	push_const 0
	equal
	and
L20688
	branch_false L20690
L20689
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i
	push_const 547585
	push_const 1
	push_const 1
	push_const 1000000
	func_call 184877074	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
L20690
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 5002
	push_const 10000
	func_call 184680487	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
L20687
L20685
	call_super
handler_end

class_end
kin 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 15:04.