Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 14.10.2007, 08:00   #10
sikorskys
Guest
 
Posts: n/a
Default [SHARE] Interlude Prime Hours AI

Quote:


Originally Posted by mcrabben7
View Post

The days don't make any sense. I was testing it and 0 = Saturday, but later it didn't. I'm confused.

It's working:

Code:

Code:
	
	// i_ai4 = gg->GetDateTime(0,6);
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  i_ai4
	push_const 324
	add
	push_reg_sp
	fetch_i
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_const 0
	push_const 6
	func_call 218234890	//  func[GetDateTime]
	shift_sp -2
	assign4
	shift_sp -1

	// Monday - Friday
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  i_ai4
	push_const 324
	add
	fetch_i4
	push_const 1
	greater_equal
	branch_false L200

	push_event	//  myself
	push_const 704
	add
	fetch_i	//  i_ai4
	push_const 324
	add
	fetch_i4
	push_const 5
	less_equal
	branch_false L200

	... do something
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата оценена по относительному времени в снимке (14 Hours Ago); точное время не сохранилось. Открыть источник.
 
 

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 11:36.