Thread: ≈ Help Ai
View Single Post
Old 01.12.2005, 01:33   #1
dar55
Архивный участник
 
Join Date: Aug 2005
Posts: 180
Default Help Ai

I have this code
Code:
handler 10	//  MY_DYING
	variable_begin
		"c1"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  c1
	push_const 276
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	func_call 83	//  func[GetLastAttacker]
	assign
	shift_sp -1

	shift_sp 1
	push_event	//  c1
	push_const 276
	add
	fetch_i
	push_const 4629
	func_call 81	//  func[OwnItemCount]
	shift_sp -2
	push_const 0
	equal
	and
	branch_false L7672

	shift_sp 1
	push_event	//  c1
	push_const 276
	add
	fetch_i
	push_const 4630
	push_const 1
	func_call 77	//  func[GiveItem1]
	shift_sp -3
	shift_sp -1

	shift_sp 1
	push_event	//  c1
	push_const 276
	add
	fetch_i
	push_const 4629
	push_const 1
	func_call 80	//  func[DeleteItem1]
	shift_sp -3
	shift_sp -1
L7672
L7670
	call_super
handler_end
If i kill 1 monster, then all good work. But, if kill many monsters, error...
12/01/2005 04:02:xx.xx1, Kicked for invalid items. (nick)(276)

Who know how fix this error?
dar55 is offline