Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 26.09.2006, 12:42   #1
Thunderstorm
Архивный участник
 
Join Date: Dec 2005
Posts: 56
Default Help with whitewing_commander

This mob is necessary for passage 3rd of profession. When his player beats mob immediately it makes Despawn.Help please. Here my ai.obj
Code:
class 1 whitewing_commander : lv3_dwarf
handler 10 394	//  MY_DYING
	variable_begin
		"always_list"
		"code_info"
		"i9"
		"last_attacker"
		"lparty"
		"member"
		"npc0"
		"random1_list"
		"target"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  always_list
	push_const 688
	add
	push_reg_sp
	fetch_i
	push_event	//  gg
	push_const 632
	add
	fetch_i
	func_call 218103813	//  func[AllocCodeInfoList]
	assign
	shift_sp -1
	push_event	//  random1_list
	push_const 680
	add
	push_reg_sp
	fetch_i
	push_event	//  gg
	push_const 632
	add
	fetch_i
	func_call 218103813	//  func[AllocCodeInfoList]
	assign
	shift_sp -1
	push_event	//  target
	push_const 96
	add
	push_reg_sp
	fetch_i
	push_event	//  last_attacker
	push_const 656
	add
	fetch_i
	assign
	shift_sp -1
	push_const 1
	branch_false L124897
L124896
	push_event	//  always_list
	push_const 688
	add
	fetch_i
	push_const 0
	push_event	//  target
	push_const 96
	add
	fetch_i
	func_call 251789313	//  func[SetInfo]
	shift_sp -2
	shift_sp -1
L124897
L124898
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_event	//  code_info
	push_const 696
	add
	push_reg_sp
	fetch_i
	push_event	//  always_list
	push_const 688
	add
	fetch_i
	func_call 251658240	//  func[Next]
	assign
	fetch_i
	func_call 218169356	//  func[IsNull]
	shift_sp -1
	push_const 0
	equal
	branch_false L124899
	push_event	//  code_info
	push_const 696
	add
	fetch_i	//  code
	push_const 60
	add
	fetch_i4
	push_reg_sp
	fetch_i
	push_const 0
	equal
	branch_false L124902
L124901
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 74
	func_call 184615017	//  func[SetCurrentQuestID]
	shift_sp -1
	shift_sp -1
	push_event	//  target
	push_const 96
	add
	push_reg_sp
	fetch_i
	push_event	//  code_info
	push_const 696
	add
	fetch_i
	func_call 335544321	//  func[RandomSelectOne]
	assign
	shift_sp -1
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_event	//  target
	push_const 96
	add
	fetch_i
	func_call 218169356	//  func[IsNull]
	shift_sp -1
	push_const 0
	equal
	push_reg_sp
	fetch_i
	branch_false L124903
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  target
	push_const 96
	add
	fetch_i
	func_call 184614996	//  func[DistFromMe]
	shift_sp -1
	push_const 1500
	less_equal
	and
L124903
	branch_false L124905
L124904
	push_event	//  target
	push_const 96
	add
	fetch_i	//  is_pc
	push_const 100
	add
	fetch_i4
	push_const 1
	equal
	branch_false L124907
L124906
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  target
	push_const 96
	add
	fetch_i
	push_const 74
	func_call 184680543	//  func[HaveMemo]
	shift_sp -2
	push_const 1
	equal
	push_reg_sp
	fetch_i
	branch_false L124908
	push_event	//  target
	push_const 96
	add
	fetch_i	//  occupation
	push_const 192
	add
	fetch_i4
	push_const 3
	equal
	and
	push_reg_sp
	fetch_i
	branch_false L124908
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  target
	push_const 96
	add
	fetch_i
	push_const 74
	func_call 184680547	//  func[GetMemoState]
	shift_sp -2
	push_const 7
	equal
	and
	push_reg_sp
	fetch_i
	branch_false L124908
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  target
	push_const 96
	add
	fetch_i
	push_const 7334
	func_call 184680579	//  func[OwnItemCount]
	shift_sp -2
	push_const 0
	equal
	and
	push_reg_sp
	fetch_i
	branch_false L124908
	push_event	//  target
	push_const 96
	add
	fetch_i	//  dbid
	push_const 988
	add
	fetch_i4
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i	//  param2
	push_const 2280
	add
	fetch_i4
	equal
	and
L124908
	branch_false L124910
L124909
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 7452
S14464.	""
	push_string S14464
S14465.	""
	push_string S14465
S14466.	""
	push_string S14466
S14467.	""
	push_string S14467
S14468.	""
	push_string S14468
	func_call 184942731	//  func[MakeFString]
	shift_sp -6
	func_call 184614973	//  func[Say]
	shift_sp -1
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  target
	push_const 96
	add
	fetch_i
	push_const 7334
	push_const 1
	func_call 184746111	//  func[GiveItem1]
	shift_sp -3
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  target
	push_const 96
	add
	fetch_i
	push_const 74
	push_const 9
	func_call 184746087	//  func[SetFlagJournal]
	shift_sp -3
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  target
	push_const 96
	add
	fetch_i
S14469.	"ItemSound.quest_middle"
	push_string S14469
	func_call 184680685	//  func[SoundEffect]
	shift_sp -2
	shift_sp -1
L124910
L124907
	push_event	//  npc0
	push_const 480
	add
	push_reg_sp
	fetch_i
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i	//  param3
	push_const 2284
	add
	fetch_i4
	func_call 218169351	//  func[GetNPCFromID]
	shift_sp -1
	assign
	shift_sp -1
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_event	//  npc0
	push_const 480
	add
	fetch_i
	func_call 218169356	//  func[IsNull]
	shift_sp -1
	push_const 0
	equal
	branch_false L124912
L124911
	push_event	//  npc0
	push_const 480
	add
	fetch_i	//  i_quest0
	push_const 288
	add
	push_reg_sp
	fetch_i
	push_const 0
	assign4
	shift_sp -1
L124912
L124905
	jump L124900
	jump L124913
L124902
L124913
L124900
	shift_sp -1
	jump L124898
L124899
	push_event	//  code_info
	push_const 696
	add
	push_reg_sp
	fetch_i
	push_event	//  random1_list
	push_const 680
	add
	fetch_i
	func_call 251658242	//  func[RandomSelectOne]
	assign
	shift_sp -1
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_event	//  code_info
	push_const 696
	add
	fetch_i
	func_call 218169356	//  func[IsNull]
	shift_sp -1
	push_const 0
	equal
	branch_false L124915
L124914
	push_event	//  code_info
	push_const 696
	add
	fetch_i	//  code
	push_const 60
	add
	fetch_i4
L124917
L124916
	shift_sp -1
L124915
	call_super
handler_end
Thunderstorm is offline  
Old 26.09.2006, 13:00   #2
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default

Here is the difference with mine. Check it and let us know
Code:
> diff 1.txt  2.txt
28c28
<       func_call 218103813     //  func[AllocCodeInfoList]
---
>       func_call 218103812     //  func[AllocCodeInfoList]
40c40
<       func_call 218103813     //  func[AllocCodeInfoList]
---
>       func_call 218103812     //  func[AllocCodeInfoList]
87c87
<       func_call 218169356     //  func[IsNull]
---
>       func_call 218169355     //  func[IsNull]
133c133
<       func_call 218169356     //  func[IsNull]
---
>       func_call 218169355     //  func[IsNull]
244c244
<       push_const 2280
---
>       push_const 2272
333c333
<       push_const 2284
---
>       push_const 2276
336c336
<       func_call 218169351     //  func[GetNPCFromID]
---
>       func_call 218169350     //  func[GetNPCFromID]
348c348
<       func_call 218169356     //  func[IsNull]
---
>       func_call 218169355     //  func[IsNull]
395c395
<       func_call 218169356     //  func[IsNull]
---
>       func_call 218169355     //  func[IsNull]
>
1.txt - yours
2.txt - mine
kin is offline  
Old 26.09.2006, 13:17   #3
Thunderstorm
Архивный участник
 
Join Date: Dec 2005
Posts: 56
Default

Several another ai in you. But it in exactly the same manner does not work as my. In you ai from CN_.cH4_.ServerScript_.ver(0412)_.rel(0517) in me it only is changed but not your not my they work.
Thunderstorm is offline  
Old 26.09.2006, 15:51   #4
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default

What about "class 1 lv3_dwarf"?
Maybe problem there? Do you have any errors on the server when NPC despawns?
kin is offline  
Old 27.09.2006, 09:03   #5
Thunderstorm
Архивный участник
 
Join Date: Dec 2005
Posts: 56
Default

Quote:
Originally Posted by kin View Post
What about "class 1 lv3_dwarf"?
Maybe problem there? Do you have any errors on the server when NPC despawns?
Possibly error precisely in the class. Then what class is accurate?
Thunderstorm is offline  
 


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:49.