Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 28.09.2005, 09:55   #1
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default [Share] HTML Trap

Just update your ai class codes for these locations... btw we had 3 people on our server try to use the exploits during a siege and they all went to lvl 1 :P also this only removes 550mil xp(modify if you want) it doesnt make them lvl 1 per say if you were lvl 75 youd probably end up around lvl 60 and at 60 probably lvl 1 due to the exp need at that lvl. also there are many other places to patch in the ai code but ill feed you guys slowly.
and these work perfectly it checks appropriatly for the door if you are clan member and the chamberlain if you are castle owner.


duante
duante is offline  
Old 28.09.2005, 09:55   #2
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default the code

Siege Teleporter Patch
Code:
class siege_instant_teleporter : default_npc
parameter_define_begin
	string fnHi "thi.htm"
	string fnNotMyPledge ""
	int pos_x01 1
	int pos_y01 1
	int pos_z01 1
	int pos_x02 1
	int pos_y02 1
	int pos_z02 1
	int pos_x03 1
	int pos_y03 1
	int pos_z03 1
	int pos_x11 1
	int pos_y11 1
	int pos_z11 1
	int pos_x12 1
	int pos_y12 1
	int pos_z12 1
	int pos_x13 1
	int pos_y13 1
	int pos_z13 1
	int pos_x21 1
	int pos_y21 1
	int pos_z21 1
	int pos_x22 1
	int pos_y22 1
	int pos_z22 1
	int pos_x23 1
	int pos_y23 1
	int pos_z23 1
	int pos_x31 1
	int pos_y31 1
	int pos_z31 1
	int pos_x32 1
	int pos_y32 1
	int pos_z32 1
	int pos_x33 1
	int pos_y33 1
	int pos_z33 1
	int pos_x41 1
	int pos_y41 1
	int pos_z41 1
	int pos_x42 1
	int pos_y42 1
	int pos_z42 1
	int pos_x43 1
	int pos_y43 1
	int pos_z43 1
parameter_define_end
handler 3	//  TALKED
	variable_begin
		"talker"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 115	//  func[Castle_GetPledgeState]
	shift_sp -1
	push_const 2
	equal
	push_reg_sp
	fetch_i
	branch_true L785
	shift_sp 1
	func_call 126	//  func[Castle_GetPledgeId]
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  pledge_id
	push_const 664
	add
	fetch_i
	equal
	push_reg_sp
	fetch_i
	branch_false L786
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  pledge_id
	push_const 664
	add
	fetch_i
	push_const 0
	not_equal
	and
L786
	or
L785
	branch_false L788
L787
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnHi
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L789
L788
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnNotMyPledge
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L789
handler_end

handler 32	//  MENU_SELECTED
	variable_begin
		"talker"
		"ask"
		"reply"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 115	//  func[Castle_GetPledgeState]
	shift_sp -1
	push_const 2
	equal
	push_reg_sp
	fetch_i
	branch_true L785000
	shift_sp 1
	func_call 126	//  func[Castle_GetPledgeId]
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  pledge_id
	push_const 664
	add
	fetch_i
	equal
	push_reg_sp
	fetch_i
	branch_false L786000
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  pledge_id
	push_const 664
	add
	fetch_i
	push_const 0
	not_equal
	and
L786000
	or
L785000
	branch_false L790000

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 5
	negate
	equal
	branch_false L791
L790
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 0
	equal
	branch_false L793
L792
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 33
	less
	branch_false L795
L794
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x01
	push_parameter pos_y01
	push_parameter pos_z01
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L796
L795
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 66
	less
	branch_false L798
L797
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x02
	push_parameter pos_y02
	push_parameter pos_z02
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L799
L798
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x03
	push_parameter pos_y03
	push_parameter pos_z03
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
L799
L796
	jump L800
L793
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 1
	equal
	branch_false L802
L801
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 33
	less
	branch_false L804
L803
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x11
	push_parameter pos_y11
	push_parameter pos_z11
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L805
L804
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 66
	less
	branch_false L807
L806
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x12
	push_parameter pos_y12
	push_parameter pos_z12
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L808
L807
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x13
	push_parameter pos_y13
	push_parameter pos_z13
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
L808
L805
	jump L809
L802
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 2
	equal
	branch_false L811
L810
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 33
	less
	branch_false L813
L812
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x21
	push_parameter pos_y21
	push_parameter pos_z21
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L814
L813
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 66
	less
	branch_false L816
L815
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x22
	push_parameter pos_y22
	push_parameter pos_z22
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L817
L816
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x23
	push_parameter pos_y23
	push_parameter pos_z23
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
L817
L814
	jump L818
L811
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 3
	equal
	branch_false L820
L819
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 33
	less
	branch_false L822
L821
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x31
	push_parameter pos_y31
	push_parameter pos_z31
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L823
L822
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 66
	less
	branch_false L825
L824
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x32
	push_parameter pos_y32
	push_parameter pos_z32
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L826
L825
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x33
	push_parameter pos_y33
	push_parameter pos_z33
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
L826
L823
	jump L827
L820
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 4
	equal
	branch_false L829
L828
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 33
	less
	branch_false L831
L830
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x41
	push_parameter pos_y41
	push_parameter pos_z41
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L832
L831
	shift_sp 1
	push_const 100
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 66
	less
	branch_false L834
L833
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x42
	push_parameter pos_y42
	push_parameter pos_z42
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L835
L834
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter pos_x43
	push_parameter pos_y43
	push_parameter pos_z43
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L835

L790000
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 50000000
	negate
	func_call 171	//  func[IncrementParam]

	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

L835
L832
L829
L827
L818
L809
L800
L791
handler_end

class_end
Chamberlain Patch
Code:
class chamberlain : default_npc
parameter_define_begin
	string fnHi "chamberlain_saius001.htm"
	string fnViewReport "chamberlain_saius002.htm"
	string fnViewTaxRate "chamberlain_saius003.htm"
	string fnSetTaxRate "chamberlain_saius004.htm"
	string fnSetGate "chamberlain_saius005.htm"
	string fnSetSiegeTime1 "chamberlain_saius006.htm"
	string fnViewSiegeTime "chamberlain_saius007.htm"
	string fnManageWarehouse "chamberlain_saius008.htm"
	string fnNotMyLord "chamberlain_saius009.htm"
	string fnAfterSetTaxRate "chamberlain_saius010.htm"
	string fnAfterOpenGate "chamberlain_saius011.htm"
	string fnAfterCloseGate "chamberlain_saius012.htm"
	string fnAlreadySetSiege "chamberlain_saius013.htm"
	string fnNotRegeistTime "chamberlain_saius014.htm"
	string fnSetSiegeTime2 "chamberlain_saius015.htm"
	string fnSetSiegeTime3 "chamberlain_saius016.htm"
	string fnSetSiegeTime4 "chamberlain_saius017.htm"
	string fnSetSiegeTime5 "chamberlain_saius018.htm"
	string fnAfterSetSiegeTime "chamberlain_saius019.htm"
	string fnSiegeViewReport "chamberlain_saius020.htm"
	string fnSiegeStoppedFunction "chamberlain_saius021.htm"
	string fnManorManage "chamberlain_saius022.htm"
	string fnViewCropList "chamberlain_saius023.htm"
	string fnNewCrop1 "chamberlain_saius024.htm"
	string fnNewCrop2 "chamberlain_saius025.htm"
	string fnNewCrop3 "chamberlain_saius026.htm"
	string fnAddCrop1 "chamberlain_saius027.htm"
	string fnAddCrop2 "chamberlain_saius028.htm"
	string fnAddCrop3 "chamberlain_saius029.htm"
	string fnSetCropDrop1 "chamberlain_saius030.htm"
	string fnDeleteCropDrop1 "chamberlain_saius031.htm"
	string fnReduceCropDrop1 "chamberlain_saius032.htm"
	string fnDropConfirmed "chamberlain_saius033.htm"
	string fnDropUnderflow "chamberlain_saius034.htm"
	string fnDropOverflow "chamberlain_saius035.htm"
	string fnSetCropPrice1 "chamberlain_saius036.htm"
	string fnPriceConfirmed "chamberlain_saius037.htm"
	string fnSetCropDrop2 "chamberlain_saius038.htm"
	string fnDeleteCropDrop2 "chamberlain_saius039.htm"
	string fnReduceCropDrop2 "chamberlain_saius040.htm"
	string fnSetCropPrice2 "chamberlain_saius041.htm"
	string fnSetCropDrop3 "chamberlain_saius042.htm"
	string fnDeleteCropDrop3 "chamberlain_saius043.htm"
	string fnReduceCropDrop3 "chamberlain_saius044.htm"
	string fnSetCropPrice3 "chamberlain_saius045.htm"
	string fnAddCropDrop1 "chamberlain_saius046.htm"
	string fnAddCropDrop2 "chamberlain_saius047.htm"
	string fnAddCropDrop3 "chamberlain_saius048.htm"
	string fnNotEnoughMoney "chamberlain_saius049.htm"
	string fnBanish "chamberlain_saius050.htm"
	string fnAfterBanish "chamberlain_saius051.htm"
	string fnSiegeDefendList "chamberlain_saius052.htm"
	string fnDoorStrengthen "chamberlain_saius053.htm"
	string fnDoorLevel "chamberlain_saius054.htm"
	string fnDoorStrengthenConfirm "chamberlain_saius055.htm"
	string fnCurrentDoorLevelHigher "chamberlain_saius056.htm"
	string fnDoorHpLevelUp "chamberlain_saius057.htm"
	string fnSetSlowZone "chamberlain_saius058.htm"
	string fnSetDmgLevel "chamberlain_saius059.htm"
	string fnDmgZoneConfirm "chamberlain_saius060.htm"
	string fnCurrentDmgzoneLevelHigher "chamberlain_saius061.htm"
	string fnDmgZoneLevelUp "chamberlain_saius062.htm"
	string DDoorName1_1 "aden_castle_outter_001"
	string DDoorName1_2 "aden_castle_outter_002"
	string DDoorName2_1 "aden_castle_left_001"
	string DDoorName2_2 "aden_castle_left_002"
	string DDoorName3_1 "aden_castle_right_001"
	string DDoorName3_2 "aden_castle_right_002"
	string DDoorName4_1 "aden_castle_inner_001"
	string DDoorName4_2 "aden_castle_inner_002"
	string DDoorName5_1 "aden_castle_left_003"
	string DDoorName5_2 "aden_castle_left_004"
	string DDoorName6_1 "aden_castle_right_003"
	string DDoorName6_2 "aden_castle_right_004"
	string SDoorName1 "aden_castle_terrace"
	string WallName1 "aden_castle_wall_in"
	string WallName2 "aden_castle_wall_left"
	string WallName3 "aden_castle_wall_right"
	string dmgzonename1 "aden_damage1_ctrltower"
	string dmgzonename2 "aden_damage2_ctrltower"
	int DDoorPrice1_1 3000000
	int DDoorPrice1_2 4000000
	int DDoorPrice1_3 5000000
	int DDoorPrice2_1 750000
	int DDoorPrice2_2 900000
	int DDoorPrice2_3 1000000
	int DDoorPrice3_1 750000
	int DDoorPrice3_2 900000
	int DDoorPrice3_3 1000000
	int DDoorPrice4_1 750000
	int DDoorPrice4_2 900000
	int DDoorPrice4_3 1000000
	int WallPrice1_1 1600000
	int WallPrice1_2 1800000
	int WallPrice1_3 2000000
	int WallPrice1_1 1600000
	int WallPrice1_2 1800000
	int WallPrice1_3 2000000
	int WallPrice1_1 1600000
	int WallPrice1_2 1800000
	int WallPrice1_3 2000000
	int dmgzoneprice1_1 3000000
	int dmgzoneprice1_2 4000000
	int dmgzoneprice1_3 5000000
	int dmgzoneprice1_4 6000000
	int dmgzoneprice1_1 3000000
	int dmgzoneprice1_2 4000000
	int dmgzoneprice1_3 5000000
	int dmgzoneprice1_4 6000000
parameter_define_end
handler 3	//  TALKED
	variable_begin
		"talker"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L886
L885
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnHi
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L887
L886
	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
L887
handler_end

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

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	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
L891
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L894
L893
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeViewReport
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L895
L894
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnViewReport
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L895
	jump L890
	jump L896
L892
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L897
L896
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	push_parameter fnViewTaxRate
	func_call 84	//  func[FHTML_SetFileName]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S85.	"current_tax_rate"
	push_string S85
	shift_sp 1
	func_call 105	//  func[Residence_GetTaxRateCurrent]
	func_call 85	//  func[FHTML_SetInt]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S86.	"next_tax_rate"
	push_string S86
	shift_sp 1
	func_call 104	//  func[Residence_GetTaxRate]
	func_call 85	//  func[FHTML_SetInt]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	func_call 88	//  func[ShowFHTML]
	shift_sp -2
	shift_sp -1
	jump L890
	jump L898
L897
	push_reg_sp
	fetch_i
	push_const 3
	equal
	branch_false L899
L898
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L901
L900
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeStoppedFunction
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L902
L901
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSetTaxRate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L902
	jump L890
	jump L903
L899
	push_reg_sp
	fetch_i
	push_const 4
	equal
	branch_false L904
L903
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L906
L905
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeStoppedFunction
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L907
L906
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSetGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L907
	jump L890
	jump L908
L904
	push_reg_sp
	fetch_i
	push_const 5
	equal
	branch_false L909
L908
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 200	//  func[OpenSiegeInfo]
	shift_sp -1
	shift_sp -1
	jump L890
	jump L910
L909
	push_reg_sp
	fetch_i
	push_const 9
	equal
	branch_false L911
L910
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	push_parameter fnManageWarehouse
	func_call 84	//  func[FHTML_SetFileName]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S87.	"tax_income"
	push_string S87
	shift_sp 1
	func_call 148	//  func[Residence_GetTaxIncome]
	func_call 85	//  func[FHTML_SetInt]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	func_call 88	//  func[ShowFHTML]
	shift_sp -2
	shift_sp -1
	jump L890
	jump L912
L911
	push_reg_sp
	fetch_i
	push_const 10
	equal
	branch_false L913
L912
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	push_parameter fnManorManage
	func_call 84	//  func[FHTML_SetFileName]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S88.	"gludin_panacen"
	push_string S88
	shift_sp 1
	push_const 1468
	func_call 145	//  func[Castle_GetCropRate]
	shift_sp -1
	func_call 86	//  func[FHTML_SetFloat]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S89.	"gludin_vermouth"
	push_string S89
	shift_sp 1
	push_const 1469
	func_call 145	//  func[Castle_GetCropRate]
	shift_sp -1
	func_call 86	//  func[FHTML_SetFloat]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S90.	"artemeter"
	push_string S90
	shift_sp 1
	push_const 1470
	func_call 145	//  func[Castle_GetCropRate]
	shift_sp -1
	func_call 86	//  func[FHTML_SetFloat]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S91.	"gludin_panacen_price"
	push_string S91
	shift_sp 1
	push_const 1468
	func_call 146	//  func[Castle_GetCropPrice]
	shift_sp -1
	func_call 85	//  func[FHTML_SetInt]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S92.	"gludin_vermouth_price"
	push_string S92
	shift_sp 1
	push_const 1469
	func_call 146	//  func[Castle_GetCropPrice]
	shift_sp -1
	func_call 85	//  func[FHTML_SetInt]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S93.	"artemeter_price"
	push_string S93
	shift_sp 1
	push_const 1470
	func_call 146	//  func[Castle_GetCropPrice]
	shift_sp -1
	func_call 85	//  func[FHTML_SetInt]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	func_call 88	//  func[ShowFHTML]
	shift_sp -2
	shift_sp -1
	jump L890
	jump L914
L913
	push_reg_sp
	fetch_i
	push_const 11
	equal
	branch_false L915
L914
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L917
L916
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeStoppedFunction
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L918
L917
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnBanish
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L918
	jump L890
	jump L919
L915
	push_reg_sp
	fetch_i
	push_const 12
	equal
	branch_false L920
L919
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L922
L921
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeStoppedFunction
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L923
L922
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeDefendList
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L923
	jump L890
	jump L924
L920
L924
L890
	shift_sp -1
	jump L925
L889
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 202
	negate
	equal
	branch_false L927
L926
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L929
L928
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeStoppedFunction
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L930
L929
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_reg_sp
	fetch_i
	push_const 1
	equal
	branch_false L933
L932
	shift_sp 1
	push_const 0
	func_call 106	//  func[Residence_SetTaxRate]
	shift_sp -1
	shift_sp -1
	jump L931
	jump L934
L933
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L935
L934
	shift_sp 1
	push_const 5
	func_call 106	//  func[Residence_SetTaxRate]
	shift_sp -1
	shift_sp -1
	jump L931
	jump L936
L935
	push_reg_sp
	fetch_i
	push_const 3
	equal
	branch_false L937
L936
	shift_sp 1
	push_const 10
	func_call 106	//  func[Residence_SetTaxRate]
	shift_sp -1
	shift_sp -1
	jump L931
	jump L938
L937
	push_reg_sp
	fetch_i
	push_const 4
	equal
	branch_false L939
L938
	shift_sp 1
	push_const 15
	func_call 106	//  func[Residence_SetTaxRate]
	shift_sp -1
	shift_sp -1
	jump L931
	jump L940
L939
L940
L931
	shift_sp -1
L930
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterSetTaxRate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L941
L927
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 203
	negate
	equal
	branch_false L943
L942
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L945
L944
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeStoppedFunction
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L946
L945
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_reg_sp
	fetch_i
	push_const 1
	equal
	branch_false L949
L948
	shift_sp 1
	push_parameter DDoorName1_1
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName1_2
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterOpenGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L950
L949
	push_reg_sp
	fetch_i
	push_const 101
	equal
	branch_false L951
L950
	shift_sp 1
	push_parameter DDoorName1_1
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName1_2
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterCloseGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L952
L951
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L953
L952
	shift_sp 1
	push_parameter DDoorName2_1
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName2_2
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterOpenGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L954
L953
	push_reg_sp
	fetch_i
	push_const 102
	equal
	branch_false L955
L954
	shift_sp 1
	push_parameter DDoorName2_1
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName2_2
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterCloseGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L956
L955
	push_reg_sp
	fetch_i
	push_const 3
	equal
	branch_false L957
L956
	shift_sp 1
	push_parameter DDoorName3_1
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName3_2
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterOpenGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L958
L957
	push_reg_sp
	fetch_i
	push_const 103
	equal
	branch_false L959
L958
	shift_sp 1
	push_parameter DDoorName3_1
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName3_2
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterCloseGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L960
L959
	push_reg_sp
	fetch_i
	push_const 4
	equal
	branch_false L961
L960
	shift_sp 1
	push_parameter DDoorName4_1
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName4_2
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterOpenGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L962
L961
	push_reg_sp
	fetch_i
	push_const 104
	equal
	branch_false L963
L962
	shift_sp 1
	push_parameter DDoorName4_1
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName4_2
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterCloseGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L964
L963
	push_reg_sp
	fetch_i
	push_const 5
	equal
	branch_false L965
L964
	shift_sp 1
	push_parameter DDoorName5_1
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName5_2
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterOpenGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L966
L965
	push_reg_sp
	fetch_i
	push_const 105
	equal
	branch_false L967
L966
	shift_sp 1
	push_parameter DDoorName5_1
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName5_2
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterCloseGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L968
L967
	push_reg_sp
	fetch_i
	push_const 6
	equal
	branch_false L969
L968
	shift_sp 1
	push_parameter DDoorName6_1
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName6_2
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterOpenGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L970
L969
	push_reg_sp
	fetch_i
	push_const 106
	equal
	branch_false L971
L970
	shift_sp 1
	push_parameter DDoorName6_1
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName6_2
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterCloseGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L972
L971
	push_reg_sp
	fetch_i
	push_const 11
	equal
	branch_false L973
L972
	shift_sp 1
	push_parameter SDoorName1
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterOpenGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L974
L973
	push_reg_sp
	fetch_i
	push_const 111
	equal
	branch_false L975
L974
	shift_sp 1
	push_parameter SDoorName1
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterCloseGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L976
L975
	push_reg_sp
	fetch_i
	push_const 99
	equal
	branch_false L977
L976
	shift_sp 1
	push_const 0
	func_call 114	//  func[Castle_GateOpenClose]
	shift_sp -1
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterOpenGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L978
L977
	push_reg_sp
	fetch_i
	push_const 199
	equal
	branch_false L979
L978
	shift_sp 1
	push_const 1
	func_call 114	//  func[Castle_GateOpenClose]
	shift_sp -1
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterCloseGate
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L947
	jump L980
L979
L980
L947
	shift_sp -1
L946
	jump L981
L943
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 204
	negate
	equal
	branch_false L983
L982
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_reg_sp
	fetch_i
	push_const 1
	equal
	branch_false L986
L985
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnDoorStrengthen
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L984
	jump L987
L986
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L988
L987
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSetSlowZone
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L984
	jump L989
L988
L989
L984
	shift_sp -1
	jump L990
L983
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 205
	negate
	equal
	branch_false L992
L991
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S94.	"gate_num"
	push_string S94
	push_event	//  reply
	push_const 104
	add
	fetch_i
	func_call 25	//  func[SetCookie]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnDoorLevel
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L993
L992
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 206
	negate
	equal
	branch_false L995
L994
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_reg_sp
	fetch_i
	push_const 1
	equal
	branch_false L998
L997
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S95.	"gate_level"
	push_string S95
	push_const 200
	func_call 25	//  func[SetCookie]
	shift_sp -3
	shift_sp -1
	jump L996
	jump L999
L998
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L1000
L999
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S96.	"gate_level"
	push_string S96
	push_const 300
	func_call 25	//  func[SetCookie]
	shift_sp -3
	shift_sp -1
	jump L996
	jump L1001
L1000
	push_reg_sp
	fetch_i
	push_const 3
	equal
	branch_false L1002
L1001
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S97.	"gate_level"
	push_string S97
	push_const 500
	func_call 25	//  func[SetCookie]
	shift_sp -3
	shift_sp -1
	jump L996
	jump L1003
L1002
L1003
L996
	shift_sp -1
	push_event	//  i0
	push_const 192
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S98.	"gate_num"
	push_string S98
	func_call 26	//  func[GetCookie]
	shift_sp -2
	assign
	shift_sp -1
	push_event	//  i1
	push_const 196
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S99.	"gate_level"
	push_string S99
	func_call 26	//  func[GetCookie]
	shift_sp -2
	assign
	shift_sp -1
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 1
	equal
	push_reg_sp
	fetch_i
	branch_false L1004
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 200
	equal
	and
L1004
	branch_false L1006
L1005
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter DDoorPrice1_1
	assign
	shift_sp -1
L1006
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 1
	equal
	push_reg_sp
	fetch_i
	branch_false L1007
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 300
	equal
	and
L1007
	branch_false L1009
L1008
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter DDoorPrice1_2
	assign
	shift_sp -1
L1009
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 1
	equal
	push_reg_sp
	fetch_i
	branch_false L1010
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 500
	equal
	and
L1010
	branch_false L1012
L1011
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter DDoorPrice1_3
	assign
	shift_sp -1
L1012
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 2
	equal
	push_reg_sp
	fetch_i
	branch_true L1013
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 3
	equal
	or
L1013
	push_reg_sp
	fetch_i
	branch_false L1014
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 200
	equal
	and
L1014
	branch_false L1016
L1015
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter DDoorPrice2_1
	assign
	shift_sp -1
L1016
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 2
	equal
	push_reg_sp
	fetch_i
	branch_true L1017
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 3
	equal
	or
L1017
	push_reg_sp
	fetch_i
	branch_false L1018
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 300
	equal
	and
L1018
	branch_false L1020
L1019
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter DDoorPrice2_2
	assign
	shift_sp -1
L1020
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 2
	equal
	push_reg_sp
	fetch_i
	branch_true L1021
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 3
	equal
	or
L1021
	push_reg_sp
	fetch_i
	branch_false L1022
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 500
	equal
	and
L1022
	branch_false L1024
L1023
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter DDoorPrice2_3
	assign
	shift_sp -1
L1024
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 4
	equal
	push_reg_sp
	fetch_i
	branch_false L1025
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 200
	equal
	and
L1025
	branch_false L1027
L1026
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter DDoorPrice4_1
	assign
	shift_sp -1
L1027
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 4
	equal
	push_reg_sp
	fetch_i
	branch_false L1028
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 300
	equal
	and
L1028
	branch_false L1030
L1029
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter DDoorPrice4_2
	assign
	shift_sp -1
L1030
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 4
	equal
	push_reg_sp
	fetch_i
	branch_false L1031
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 500
	equal
	and
L1031
	branch_false L1033
L1032
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter DDoorPrice4_3
	assign
	shift_sp -1
L1033
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 21
	equal
	push_reg_sp
	fetch_i
	branch_false L1034
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 200
	equal
	and
L1034
	branch_false L1036
L1035
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter WallPrice1_1
	assign
	shift_sp -1
L1036
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 21
	equal
	push_reg_sp
	fetch_i
	branch_false L1037
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 300
	equal
	and
L1037
	branch_false L1039
L1038
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter WallPrice1_2
	assign
	shift_sp -1
L1039
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 21
	equal
	push_reg_sp
	fetch_i
	branch_false L1040
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 500
	equal
	and
L1040
	branch_false L1042
L1041
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter WallPrice1_3
	assign
	shift_sp -1
L1042
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 22
	equal
	push_reg_sp
	fetch_i
	branch_false L1043
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 200
	equal
	and
L1043
	branch_false L1045
L1044
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter WallPrice1_1
	assign
	shift_sp -1
L1045
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 22
	equal
	push_reg_sp
	fetch_i
	branch_false L1046
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 300
	equal
	and
L1046
	branch_false L1048
L1047
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter WallPrice1_2
	assign
	shift_sp -1
L1048
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 22
	equal
	push_reg_sp
	fetch_i
	branch_false L1049
	push_event	//  i1
	push_const 196
	add
	fetch_i
	push_const 500
	equal
	and
L1049
	branch_false L1051
L1050
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	push_parameter WallPrice1_3
	assign
	shift_sp -1
L1051
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S100.	"gate_price"
	push_string S100
	push_event	//  i2
	push_const 200
	add
	fetch_i
	func_call 25	//  func[SetCookie]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	push_parameter fnDoorStrengthenConfirm
	func_call 84	//  func[FHTML_SetFileName]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S101.	"gate_price"
	push_string S101
	push_event	//  i2
	push_const 200
	add
	fetch_i
	func_call 85	//  func[FHTML_SetInt]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	func_call 88	//  func[ShowFHTML]
	shift_sp -2
	shift_sp -1
	jump L1052
L995
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 207
	negate
	equal
	push_reg_sp
	fetch_i
	branch_false L1053
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 1
	equal
	and
L1053
	branch_false L1055
L1054
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L1057
L1056
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeStoppedFunction
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1058
L1057
	push_event	//  i0
	push_const 192
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S102.	"gate_num"
	push_string S102
	func_call 26	//  func[GetCookie]
	shift_sp -2
	assign
	shift_sp -1
	push_event	//  i1
	push_const 196
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S103.	"gate_price"
	push_string S103
	func_call 26	//  func[GetCookie]
	shift_sp -2
	assign
	shift_sp -1
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_reg_sp
	fetch_i
	push_const 1
	equal
	branch_false L1061
L1060
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter DDoorName1_1
	func_call 202	//  func[GetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1059
	jump L1062
L1061
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L1063
L1062
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter DDoorName2_1
	func_call 202	//  func[GetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1059
	jump L1064
L1063
	push_reg_sp
	fetch_i
	push_const 3
	equal
	branch_false L1065
L1064
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter DDoorName3_1
	func_call 202	//  func[GetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1059
	jump L1066
L1065
	push_reg_sp
	fetch_i
	push_const 4
	equal
	branch_false L1067
L1066
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter DDoorName4_1
	func_call 202	//  func[GetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1059
	jump L1068
L1067
	push_reg_sp
	fetch_i
	push_const 21
	equal
	branch_false L1069
L1068
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter WallName1
	func_call 202	//  func[GetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1059
	jump L1070
L1069
	push_reg_sp
	fetch_i
	push_const 22
	equal
	branch_false L1071
L1070
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter WallName3
	func_call 202	//  func[GetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1059
	jump L1072
L1071
L1072
L1059
	shift_sp -1
L1058
	jump L1073
L1055
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 208
	negate
	equal
	branch_false L1075
L1074
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 1
	equal
	branch_false L1077
L1076
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S104.	"dmgzone_num"
	push_string S104
	push_const 1
	func_call 25	//  func[SetCookie]
	shift_sp -3
	shift_sp -1
	jump L1078
L1077
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 2
	equal
	branch_false L1080
L1079
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S105.	"dmgzone_num"
	push_string S105
	push_const 2
	func_call 25	//  func[SetCookie]
	shift_sp -3
	shift_sp -1
L1080
L1078
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSetDmgLevel
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1081
L1075
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 209
	negate
	equal
	branch_false L1083
L1082
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S106.	"dmgzone_level"
	push_string S106
	push_event	//  reply
	push_const 104
	add
	fetch_i
	func_call 25	//  func[SetCookie]
	shift_sp -3
	shift_sp -1
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_reg_sp
	fetch_i
	push_const 1
	equal
	branch_false L1086
L1085
	push_event	//  i0
	push_const 192
	add
	push_reg_sp
	fetch_i
	push_parameter dmgzoneprice1_1
	assign
	shift_sp -1
	jump L1084
	jump L1087
L1086
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L1088
L1087
	push_event	//  i0
	push_const 192
	add
	push_reg_sp
	fetch_i
	push_parameter dmgzoneprice1_2
	assign
	shift_sp -1
	jump L1084
	jump L1089
L1088
	push_reg_sp
	fetch_i
	push_const 3
	equal
	branch_false L1090
L1089
	push_event	//  i0
	push_const 192
	add
	push_reg_sp
	fetch_i
	push_parameter dmgzoneprice1_3
	assign
	shift_sp -1
	jump L1084
	jump L1091
L1090
	push_reg_sp
	fetch_i
	push_const 4
	equal
	branch_false L1092
L1091
	push_event	//  i0
	push_const 192
	add
	push_reg_sp
	fetch_i
	push_parameter dmgzoneprice1_4
	assign
	shift_sp -1
	jump L1084
	jump L1093
L1092
L1093
L1084
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S107.	"dmgzone_price"
	push_string S107
	push_event	//  i0
	push_const 192
	add
	fetch_i
	func_call 25	//  func[SetCookie]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	push_parameter fnDmgZoneConfirm
	func_call 84	//  func[FHTML_SetFileName]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S108.	"dmgzone_price"
	push_string S108
	push_event	//  i0
	push_const 192
	add
	fetch_i
	func_call 85	//  func[FHTML_SetInt]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	func_call 88	//  func[ShowFHTML]
	shift_sp -2
	shift_sp -1
	jump L1094
L1083
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 210
	negate
	equal
	push_reg_sp
	fetch_i
	branch_false L1095
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 1
	equal
	and
L1095
	branch_false L1097
L1096
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L1099
L1098
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeStoppedFunction
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1100
L1099
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S109.	"dmgzone_num"
	push_string S109
	func_call 26	//  func[GetCookie]
	shift_sp -2
	push_const 1
	equal
	branch_false L1102
L1101
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter dmgzonename1
	func_call 204	//  func[GetControlTowerLevel]
	shift_sp -2
	shift_sp -1
	jump L1103
L1102
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S110.	"dmgzone_num"
	push_string S110
	func_call 26	//  func[GetCookie]
	shift_sp -2
	push_const 2
	equal
	branch_false L1105
L1104
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter dmgzonename2
	func_call 204	//  func[GetControlTowerLevel]
	shift_sp -2
	shift_sp -1
L1105
L1103
L1100
	jump L1106
L1097
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 219
	negate
	equal
	branch_false L1108
L1107
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L1110
L1109
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeStoppedFunction
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1111
L1110
	shift_sp 1
	func_call 119	//  func[Castle_BanishOthers]
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnAfterBanish
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L1111
	jump L1112
L1108
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L9886

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 220
	negate
	equal
	push_reg_sp
	fetch_i
	branch_false L1113
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 1
	equal
	and
L1113
	branch_false L1115
L1114
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	shift_sp 1
	func_call 148	//  func[Residence_GetTaxIncome]
	func_call 111	//  func[Residence_VaultTakeOutMoney]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnHi
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1115
L9886
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 50000000
	negate
	func_call 171	//  func[IncrementParam]

	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
L1115
L1112
L1106
L1094
L1081
L1073
L1052
L993
L990
L981
L941
L925
handler_end

handler 75	//  DOOR_HP_LEVEL_INFORMED
	variable_begin
		"talker"
		"level"
		"fhtml0"
		"i0"
		"i1"
		"i2"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L1117
L1116
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeStoppedFunction
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1118
L1117
	push_event	//  i0
	push_const 192
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S111.	"gate_price"
	push_string S111
	func_call 26	//  func[GetCookie]
	shift_sp -2
	assign
	shift_sp -1
	push_event	//  i1
	push_const 196
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S112.	"gate_level"
	push_string S112
	func_call 26	//  func[GetCookie]
	shift_sp -2
	assign
	shift_sp -1
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S113.	"gate_num"
	push_string S113
	func_call 26	//  func[GetCookie]
	shift_sp -2
	assign
	shift_sp -1
	push_event	//  level
	push_const 188
	add
	fetch_i
	push_event	//  i1
	push_const 196
	add
	fetch_i
	greater_equal
	branch_false L1120
L1119
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	push_parameter fnCurrentDoorLevelHigher
	func_call 84	//  func[FHTML_SetFileName]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S114.	"doorlevel"
	push_string S114
	push_event	//  level
	push_const 188
	add
	fetch_i
	func_call 85	//  func[FHTML_SetInt]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	func_call 88	//  func[ShowFHTML]
	shift_sp -2
	shift_sp -1
	jump L1121
L1120
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 57
	func_call 81	//  func[OwnItemCount]
	shift_sp -2
	push_event	//  i0
	push_const 192
	add
	fetch_i
	greater_equal
	branch_false L1123
L1122
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 57
	push_event	//  i0
	push_const 192
	add
	fetch_i
	func_call 80	//  func[DeleteItem1]
	shift_sp -3
	shift_sp -1
	push_event	//  i2
	push_const 200
	add
	fetch_i
	push_reg_sp
	fetch_i
	push_const 1
	equal
	branch_false L1126
L1125
	shift_sp 1
	push_parameter DDoorName1_1
	push_event	//  i1
	push_const 196
	add
	fetch_i
	func_call 201	//  func[SetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName1_2
	push_event	//  i1
	push_const 196
	add
	fetch_i
	func_call 201	//  func[SetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1124
	jump L1127
L1126
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L1128
L1127
	shift_sp 1
	push_parameter DDoorName2_1
	push_event	//  i1
	push_const 196
	add
	fetch_i
	func_call 201	//  func[SetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName2_2
	push_event	//  i1
	push_const 196
	add
	fetch_i
	func_call 201	//  func[SetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1124
	jump L1129
L1128
	push_reg_sp
	fetch_i
	push_const 3
	equal
	branch_false L1130
L1129
	shift_sp 1
	push_parameter DDoorName3_1
	push_event	//  i1
	push_const 196
	add
	fetch_i
	func_call 201	//  func[SetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName3_2
	push_event	//  i1
	push_const 196
	add
	fetch_i
	func_call 201	//  func[SetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1124
	jump L1131
L1130
	push_reg_sp
	fetch_i
	push_const 4
	equal
	branch_false L1132
L1131
	shift_sp 1
	push_parameter DDoorName4_1
	push_event	//  i1
	push_const 196
	add
	fetch_i
	func_call 201	//  func[SetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DDoorName4_2
	push_event	//  i1
	push_const 196
	add
	fetch_i
	func_call 201	//  func[SetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1124
	jump L1133
L1132
	push_reg_sp
	fetch_i
	push_const 21
	equal
	branch_false L1134
L1133
	shift_sp 1
	push_parameter WallName1
	push_event	//  i1
	push_const 196
	add
	fetch_i
	func_call 201	//  func[SetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter WallName2
	push_event	//  i1
	push_const 196
	add
	fetch_i
	func_call 201	//  func[SetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1124
	jump L1135
L1134
	push_reg_sp
	fetch_i
	push_const 22
	equal
	branch_false L1136
L1135
	shift_sp 1
	push_parameter WallName3
	push_event	//  i1
	push_const 196
	add
	fetch_i
	func_call 201	//  func[SetDoorHpLevel]
	shift_sp -2
	shift_sp -1
	jump L1124
	jump L1137
L1136
L1137
L1124
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnDoorHpLevelUp
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1138
L1123
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnNotEnoughMoney
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L1138
L1121
L1118
handler_end

handler 76	//  CONTROLTOWER_LEVEL_INFORMED
	variable_begin
		"talker"
		"level"
		"fhtml0"
		"i0"
		"i1"
		"i2"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L1140
L1139
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeStoppedFunction
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1141
L1140
	push_event	//  i0
	push_const 192
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S115.	"dmgzone_price"
	push_string S115
	func_call 26	//  func[GetCookie]
	shift_sp -2
	assign
	shift_sp -1
	push_event	//  i1
	push_const 196
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S116.	"dmgzone_level"
	push_string S116
	func_call 26	//  func[GetCookie]
	shift_sp -2
	assign
	shift_sp -1
	push_event	//  i2
	push_const 200
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S117.	"dmgzone_num"
	push_string S117
	func_call 26	//  func[GetCookie]
	shift_sp -2
	assign
	shift_sp -1
	push_event	//  level
	push_const 188
	add
	fetch_i
	push_const 2
	push_event	//  i1
	push_const 196
	add
	fetch_i
	mul
	greater_equal
	branch_false L1143
L1142
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	push_parameter fnCurrentDmgzoneLevelHigher
	func_call 84	//  func[FHTML_SetFileName]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S118.	"dmglevel"
	push_string S118
	push_event	//  level
	push_const 188
	add
	fetch_i
	push_const 2
	div
	func_call 85	//  func[FHTML_SetInt]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
	func_call 88	//  func[ShowFHTML]
	shift_sp -2
	shift_sp -1
	jump L1144
L1143
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 57
	func_call 81	//  func[OwnItemCount]
	shift_sp -2
	push_event	//  i0
	push_const 192
	add
	fetch_i
	greater_equal
	branch_false L1146
L1145
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 57
	push_event	//  i0
	push_const 192
	add
	fetch_i
	func_call 80	//  func[DeleteItem1]
	shift_sp -3
	shift_sp -1
	push_event	//  i2
	push_const 200
	add
	fetch_i
	push_reg_sp
	fetch_i
	push_const 1
	equal
	branch_false L1149
L1148
	shift_sp 1
	push_parameter dmgzonename1
	push_const 2
	push_event	//  i1
	push_const 196
	add
	fetch_i
	mul
	func_call 203	//  func[SetControlTowerLevel]
	shift_sp -2
	shift_sp -1
	jump L1147
	jump L1150
L1149
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L1151
L1150
	shift_sp 1
	push_parameter dmgzonename2
	push_const 2
	push_event	//  i1
	push_const 196
	add
	fetch_i
	mul
	func_call 203	//  func[SetControlTowerLevel]
	shift_sp -2
	shift_sp -1
	jump L1147
	jump L1152
L1151
L1152
L1147
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnDmgZoneLevelUp
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1153
L1146
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnNotEnoughMoney
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L1153
L1144
L1141
handler_end

class_end
duante is offline  
Old 28.09.2005, 09:59   #3
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default

DoorKeeper Patch
Code:
class doorkeeper : default_npc
parameter_define_begin
	string DoorName1 "partisan001"
	string DoorName2 "partisan002"
	string fnHi "gludio_outter_doorman001.htm"
	string fnNotMyLord "gludio_outter_doorman002.htm"
	string fnUnderSiege "gludio_outter_doorman003.htm"
parameter_define_end
handler 3	//  TALKED
	variable_begin
		"talker"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	push_reg_sp
	fetch_i
	branch_true L1260
	shift_sp 1
	func_call 126	//  func[Castle_GetPledgeId]
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  pledge_id
	push_const 664
	add
	fetch_i
	equal
	push_reg_sp
	fetch_i
	branch_false L1261
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  pledge_id
	push_const 664
	add
	fetch_i
	push_const 0
	not_equal
	and
L1261
	or
L1260
	branch_false L1263
L1262
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L1265
L1264
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnUnderSiege
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1266
L1265
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnHi
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L1266
	jump L1267
L1263
	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
L1267
handler_end

handler 32	//  MENU_SELECTED
	variable_begin
		"talker"
		"ask"
		"reply"
		"fhtml0"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	jump L1269

	shift_sp 1
	func_call 126	//  func[Castle_GetPledgeId]
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  pledge_id
	push_const 664
	add
	fetch_i
	equal
	push_reg_sp
	fetch_i
	branch_false L191434
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  pledge_id
	push_const 664
	add
	fetch_i
	push_const 0
	not_equal
	and
	branch_false L191434

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 201
	negate
	equal
	branch_false L1269
L1268
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L1271
L1270
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnUnderSiege
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1272
L1271
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_reg_sp
	fetch_i
	push_const 1
	equal
	branch_false L1275
L1274
	shift_sp 1
	push_parameter DoorName1
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DoorName2
	push_const 0
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	jump L1273
	jump L1276
L1275
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L1277
L1276
	shift_sp 1
	push_parameter DoorName1
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	shift_sp 1
	push_parameter DoorName2
	push_const 1
	func_call 125	//  func[Castle_GateOpenClose2]
	shift_sp -2
	shift_sp -1
	jump L1273
	jump L1278
L91434
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 50000000
	negate
	func_call 171	//  func[IncrementParam]

L1277
L1278
L1273
	shift_sp -1
L1272
L1269
handler_end

class_end
Merchant Seller Patch
Code:
class mseller : merchant
parameter_define_begin
	string fnHi "mseller001.htm"
	string fnNotMyLord "mseller002.htm"
	string fnSiegeMyLord "mseller003.htm"
	string fnBuy "mseller004.htm"
parameter_define_end
property_define_begin
	buyselllist_begin SellList0
		{4013; 15 }
	buyselllist_end
property_define_end
handler 3	//  TALKED
	variable_begin
		"talker"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L1434
L1433
	shift_sp 1
	func_call 116	//  func[Castle_IsUnderSiege]
	branch_false L1436
L1435
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnSiegeMyLord
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L1437
L1436
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnHi
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L1437
	jump L1438
L1434
	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
L1438
handler_end

handler 32	//  MENU_SELECTED
	variable_begin
		"talker"
		"ask"
		"reply"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	func_call 100	//  func[IsMyLord]
	shift_sp -1
	branch_false L91434

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 201
	negate
	equal
	push_reg_sp
	fetch_i
	branch_false L1439
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 1
	equal
	and
L1439
	branch_false L1441
L1440
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property SellList0
	push_parameter ShopName
	push_parameter fnBuy
S247.	""
	push_string S247
S248.	""
	push_string S248
	func_call 47	//  func[Sell]
	shift_sp -6
	shift_sp -1
	jump L1441
L91434
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 100000000
	negate
	func_call 171	//  func[IncrementParam]

	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 0
	push_const 50000000
	negate
	func_call 171	//  func[IncrementParam]

L1441
handler_end

class_end
duante is offline  
Old 28.09.2005, 11:24   #4
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

Great shares ur doing duante but they're all in the wrong place

Nice work anyway xD
Metalmurphy is offline  
Old 28.09.2005, 11:26   #5
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default

Quote:
Originally Posted by Metalmurphy
Great shares ur doing duante but they're all in the wrong place

Nice work anyway xD
nothing flakka cant fix...
duante is offline  
Old 28.09.2005, 11:52   #6
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

Well basically doorman exploiters go there while their lvl 1 or something... they don't care if they level back...
Phantom2005 is offline  
Old 28.09.2005, 12:14   #7
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default

Quote:
Originally Posted by Phantom2005
Well basically doorman exploiters go there while their lvl 1 or something... they don't care if they level back...
well you keep singing that song... the point of this fix is to make it so you cant use the html exploit... so even if they went with a lvl 1 it wouldnt work... besides the chance of somebody making a lvl 1 and walking it all the way out to a castle is by far slimmer then somebody just assuming they are safe and getting de-leveled which on my server ive had 4 known incidents so far where they took their real character out and got de-leveled. for every 1 person that thinks to take a lvl 1 char for an exploit there are 100 more that wont. many people lack the capacity to think before they act. so for those there is the de-level script . besides if you allready knew the exploit was patched and you would be de-leveled there would be no point to take a lvl 1 character out because youd allready know the exploit didnt work. did you think this through logically before you posted?

duante
duante is offline  
Old 28.09.2005, 13:44   #8
localhost
Архивный участник
 
Join Date: Jul 2005
Posts: 145
Default

I gotta agree with duante on this... beside the point, it still stops them from using the exploit, which of course, is the main reason for this.
localhost is offline  
Old 28.09.2005, 14:02   #9
cassianpry
Архивный участник
 
Join Date: Jul 2005
Posts: 63
Default

anyone have an ai.obj tutorial??
i wanna change this things bypass menu_select?ask=-201&reply=1 in ai.obj to another ID and stop this things.

Not put all in lvl 1 cuz they are lvl 1 and do exploit only to get money
cassianpry is offline  
Old 28.09.2005, 14:27   #10
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

Search in ai.obj->doorkeeper
and after Search for -> 201
search and change it for 3 times i believe...
Phantom2005 is offline  
Old 28.09.2005, 17:20   #11
astranger
Архивный участник
 
Join Date: Mar 2005
Posts: 41
Default

duante can you share your ai.obj m8?

Good Job and thanks for sharing
astranger is offline  
Old 28.09.2005, 17:32   #12
astranger
Архивный участник
 
Join Date: Mar 2005
Posts: 41
Default

Quote:
Originally Posted by cassianpry
anyone have an ai.obj tutorial??
i wanna change this things bypass menu_select?ask=-201&reply=1 in ai.obj to another ID and stop this things.

Not put all in lvl 1 cuz they are lvl 1 and do exploit only to get money
just the above posts says that even a level 1 character can't use the exploit (so it is a full protection)

Correct me if I'm wrong
astranger is offline  
Old 28.09.2005, 17:49   #13
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

Dude they use OTHER NPC'S for that....... Valkon is the most famous one... also Sophia is cool...
Phantom2005 is offline  
Old 28.09.2005, 18:09   #14
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

sophya valcon and sir gustab :s
kepler001 is offline  
Old 28.09.2005, 18:29   #15
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

No it wasnt. It was just a show off thread with screenshots
Metalmurphy is offline  
Old 28.09.2005, 18:31   #16
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default

Quote:
Originally Posted by astranger
Quote:
Originally Posted by cassianpry
anyone have an ai.obj tutorial??
i wanna change this things bypass menu_select?ask=-201&reply=1 in ai.obj to another ID and stop this things.

Not put all in lvl 1 cuz they are lvl 1 and do exploit only to get money
just the above posts says that even a level 1 character can't use the exploit (so it is a full protection)

Correct me if I'm wrong
no it completly blocks the html exploit there is no need to change the ask/reply ids just put the appropriate checks in... the making you lvl 1 is just a fun feature.

duante
duante is offline  
Old 28.09.2005, 20:24   #17
eXcursion
Архивный участник
 
Join Date: Jun 2005
Posts: 49
Default

my question is does this block the crashing part of the exploit our server has been hit by this so many times in the last 3 weeks, if this does stop it i will dance at your wedding lol

i mean we fixed most of the quest npcs to give 0 exp and 0 adena all they get is the mark,i am more worried about the crashes. but i believe we all are.
eXcursion is offline  
Old 28.09.2005, 20:36   #18
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default

I did forget to mention one thing if you notice in the doorkeeper patch i have a jump right at the beginning that skips all the doorkeeper code which basically makes the doorkeeper useless. the problem is that there is a bug i havent had a chance to look at in the original gatekeeper code that is used to crash the npc server. so you can remove this jump to enable your doorkeepers however you take risk at your npc server crashing. like i said the html exploit part just checks if they are infact part of the castles clan if they are good if not so sad. but this problem is beyond that and i havent had time to look into it.

duante

Doorkeeper jump marked below <---
Code:
handler 32   //  MENU_SELECTED 
   variable_begin 
      "talker" 
      "ask" 
      "reply" 
      "fhtml0" 
      "myself" 
      "_choiceN" 
      "_code" 
      "_from_choice" 
   variable_end 

   jump L1269   <--- THE JUMP TO SKIP ALL CODE REMOVE TO ENABLE YOUR GATEKEEPERS

   shift_sp 1 
   func_call 126   //  func[Castle_GetPledgeId] 
   push_event   //  talker 
   push_const 32 
   add 
   fetch_i   //  pledge_id 
   push_const 664 
   add 
   fetch_i 
   equal 
   push_reg_sp 
   fetch_i 
   branch_false L191434
duante is offline  
Old 28.09.2005, 20:41   #19
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default

Quote:
Originally Posted by kepler001
sophya valcon and sir gustab :s
probably off topic but if someone pms/emails me the actual exploit link it is much easier to make a patch detection for them.

duante
duante is offline  
Old 28.09.2005, 21:56   #20
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default

There was a hug mistake in the instant siege teleporter class that has been fixed... please make sure you grab the updated code in the beginning first post... if you allready grabbed it the problem is it forgot to check for alliance members helping during a siege this should be fine now.

duante
duante is offline  
Old 29.09.2005, 00:38   #21
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

Very easy way to make this work. Don't down level them, fossilise them. Can't move, can't trader, can't drop things. and have it perminate. Wha la!
Kenster is offline  
Old 29.09.2005, 10:48   #22
localhost
Архивный участник
 
Join Date: Jul 2005
Posts: 145
Default

LOL, that might be worse than being deleveled...
localhost is offline  
Old 29.09.2005, 13:02   #23
astranger
Архивный участник
 
Join Date: Mar 2005
Posts: 41
Default

Nicely done

Anyone want to share his protected ai.obj for most of the trouble npc's ?

Thanks
astranger is offline  
Old 30.09.2005, 08:31   #24
LDragonL
Архивный участник
 
Join Date: May 2005
Posts: 133
Default

And what about players that level up 20 levels in giran warehouse ?
LDragonL is offline  
Old 30.09.2005, 09:09   #25
LDragonL
Архивный участник
 
Join Date: May 2005
Posts: 133
Default

look at worldww.clanmitos.tk they offer you all kind of shit.
But beware to let them on your server, they're very smart with this shit.

[highlight=red:ed6abf5d4b]flakka edit:[/highlight:ed6abf5d4b] That's not smart. Directly linking a site that exploits to us. Next time use your brain, please.

DO NOT USE DIRECT LINKS THAT ARE BAD.

Thanks.
LDragonL 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 19:33.