View Single Post
Old 02.08.2007, 13:51   #13
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Quote:
Originally Posted by FidoW View Post
Then start looking again because CreatePrivates works with strings and not with integers

Code:
void CNPC::CreatePrivates(WCHAR* privates);
Code:
class 1 party_leader_param_warrior : warrior
parameter_define_begin
	int AttackLowHP 0
	string Privates "orc:party_private:1:20sec"
	int ShoutTarget 0
	int SummonPrivateRate 0
parameter_define_end
handler 13 39	//  CREATED
	variable_begin
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_parameter SummonPrivateRate
	push_const 0
	equal
	branch_false L7720
L7719
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_parameter Privates
	func_call 184615141	//  func[CreatePrivates]
	shift_sp -1
	shift_sp -1
Sorry, didn't have my cheat sheet open at the time.
It's CreateOnePrivate

tks
khelben is offline