Thread: ≈ NPC Animation
View Single Post
Old 08.03.2006, 20:06   #10
Aspire
Архивный участник
 
Join Date: Nov 2005
Posts: 403
Default

Code:
handler 13	//  CREATED
	variable_begin
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_const *
	func_call 52	//  func[SetTimerPeriodByTick]
	shift_sp -1
	shift_sp -1
handler_end

handler 11	//  TIMER_FIRED
	variable_begin
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  sm
	push_const 2400
	add
	fetch_i
	push_const 2
	push_const 3000
	push_const 10000
	func_call 13	//  func[AddEffectActionDesire]
	shift_sp -4
	shift_sp -1
handler_end
* randomize this time for diferent clases.
Aspire is offline