View Single Post
Old 09.08.2005, 22:36   #5
Duna
Архивный участник
 
Join Date: Aug 2005
Posts: 14
Default

I thought about fix this bug and u can try this.

for example fix for castle.

U must edit ur ai file and find this class

Code:
class chamberlain : default_npc
Now u must find this code in class chamberlain

Code:
handler 32	//  MENU_SELECTED
	variable_begin
		"talker"
		"ask"
		"reply"
		"fhtml0"
		"i0"
		"i1"
		"i2"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 201
	negate
	equal
	branch_false L889
L888
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_reg_sp
	fetch_i
	push_const 1
	equal
	branch_false L892
Add this code in next line

Code:
L48000
        shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L48001
Now find this code
Code:
L891
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L894
And add this code in the next line

Code:
L48001
        shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnNotMyLord
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
Ps. I dont know what is happend because i dont have computer where i can try this fix but u can try and this is good way to fix thix bug with help.htm i think. Maybe i write wrong code because i nevery try change ai.

Pss. Sry for my poor english and gl
Duna is offline