Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 06.05.2006, 12:05   #1
serafim
Архивный участник
 
Join Date: May 2006
Posts: 42
Default [SmallShare]Territory Status

my first share...
replayc with your old class :
Code:
class merchant : default_npc
parameter_define_begin
	string ShopName ""
	string fnHi "mhi.htm"
	string fnSell "msell.htm"
	string fnBuy "mbye.htm"
	string fnUnableItemSell "muib.htm"
	string fnYouAreChaotic "mcm.htm"
	string fnNowSiege "mns.htm"
parameter_define_end
property_define_begin
	buyselllist_begin SellList0
	buyselllist_end
	buyselllist_begin SellList1
	buyselllist_end
	buyselllist_begin SellList2
	buyselllist_end
	buyselllist_begin SellList3
	buyselllist_end
	buyselllist_begin SellList4
	buyselllist_end
	buyselllist_begin SellList5
	buyselllist_end
	buyselllist_begin SellList6
	buyselllist_end
	buyselllist_begin SellList7
	buyselllist_end
	buyselllist_begin BuyList0
		{57; 0 }
		{3471; 0 }
		{6; 0 }
		{425; 0 }
		{461; 0 }
		{10; 0 }
		{1146; 0 }
		{1147; 0 }
		{2368; 0 }
		{2369; 0 }
		{2370; 0 }
		{748; 0 }
		{1142; 0 }
		{1181; 0 }
		{1182; 0 }
		{1213; 0 }
		{3026; 0 }
		{3027; 0 }
		{3028; 0 }
		{3029; 0 }
		{3471; 0 }
		{3023; 0 }
		{3024; 0 }
		{3025; 0 }
		{3838; 0 }
		{3832; 0 }
		{3833; 0 }
		{3834; 0 }
		{3835; 0 }
		{3836; 0 }
		{3837; 0 }
		{3839; 0 }
		{3840; 0 }
		{3841; 0 }
		{3842; 0 }
		{3844; 0 }
		{3846; 0 }
		{3847; 0 }
		{2375; 0 }
		{3500; 0 }
		{3501; 0 }
		{3502; 0 }
	buyselllist_end
	buyselllist_begin BuyList1
	buyselllist_end
	buyselllist_begin BuyList2
	buyselllist_end
	buyselllist_begin BuyList3
	buyselllist_end
	buyselllist_begin BuyList4
	buyselllist_end
property_define_end
handler 3	//  TALKED
	variable_begin
		"talker"
		"i0"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  i0
	push_const 192
	add
	push_reg_sp
	fetch_i
	shift_sp 1
	push_const 3
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 1
	add
	assign
	shift_sp -1
	shift_sp 1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  sm
	push_const 2400
	add
	fetch_i
	push_event	//  i0
	push_const 192
	add
	fetch_i
	push_const 30
	push_const 50
	func_call 13	//  func[AddEffectActionDesire]
	shift_sp -4
	shift_sp -1
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  karma
	push_const 412
	add
	fetch_i
	push_const 0
	greater
	branch_false L723
L722
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnYouAreChaotic
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L724
L723
	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
L724
handler_end

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

	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 1
	negate
	equal
	branch_false L726
L725
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 0
	equal
	branch_false L728
L727
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property SellList0
	push_parameter ShopName
	push_parameter fnBuy
S50.	""
	push_string S50
S51.	""
	push_string S51
	func_call 47	//  func[Sell]
	shift_sp -6
	shift_sp -1
L728
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 1
	equal
	branch_false L730
L729
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property SellList1
	push_parameter ShopName
	push_parameter fnBuy
S52.	""
	push_string S52
S53.	""
	push_string S53
	func_call 47	//  func[Sell]
	shift_sp -6
	shift_sp -1
L730
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 2
	equal
	branch_false L732
L731
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property SellList2
	push_parameter ShopName
	push_parameter fnBuy
S54.	""
	push_string S54
S55.	""
	push_string S55
	func_call 47	//  func[Sell]
	shift_sp -6
	shift_sp -1
L732
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 3
	equal
	branch_false L734
L733
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property SellList3
	push_parameter ShopName
	push_parameter fnBuy
S56.	""
	push_string S56
S57.	""
	push_string S57
	func_call 47	//  func[Sell]
	shift_sp -6
	shift_sp -1
L734
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 4
	equal
	branch_false L736
L735
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property SellList4
	push_parameter ShopName
	push_parameter fnBuy
S58.	""
	push_string S58
S59.	""
	push_string S59
	func_call 47	//  func[Sell]
	shift_sp -6
	shift_sp -1
L736
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 5
	equal
	branch_false L738
L737
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property SellList5
	push_parameter ShopName
	push_parameter fnBuy
S60.	""
	push_string S60
S61.	""
	push_string S61
	func_call 47	//  func[Sell]
	shift_sp -6
	shift_sp -1
L738
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 6
	equal
	branch_false L740
L739
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property SellList6
	push_parameter ShopName
	push_parameter fnBuy
S62.	""
	push_string S62
S63.	""
	push_string S63
	func_call 47	//  func[Sell]
	shift_sp -6
	shift_sp -1
L740
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 7
	equal
	branch_false L742
L741
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property SellList7
	push_parameter ShopName
	push_parameter fnBuy
S64.	""
	push_string S64
S65.	""
	push_string S65
	func_call 47	//  func[Sell]
	shift_sp -6
	shift_sp -1
L742
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 8
	equal
	branch_false L744
L743
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property BuyList0
	push_parameter ShopName
	push_parameter fnSell
	push_parameter fnUnableItemSell
	push_const 50
	negate
	func_call 48	//  func[Buy]
	shift_sp -6
	shift_sp -1
L744
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 9
	equal
	branch_false L746
L745
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property BuyList1
	push_parameter ShopName
	push_parameter fnSell
	push_parameter fnUnableItemSell
	push_const 50
	negate
	func_call 48	//  func[Buy]
	shift_sp -6
	shift_sp -1
L746
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 10
	equal
	branch_false L748
L747
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property BuyList2
	push_parameter ShopName
	push_parameter fnSell
	push_parameter fnUnableItemSell
	push_const 50
	negate
	func_call 48	//  func[Buy]
	shift_sp -6
	shift_sp -1
L748
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 11
	equal
	branch_false L750
L749
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property BuyList3
	push_parameter ShopName
	push_parameter fnSell
	push_parameter fnUnableItemSell
	push_const 50
	negate
	func_call 48	//  func[Buy]
	shift_sp -6
	shift_sp -1
L750
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 12
	equal
	branch_false L752
L751
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_property BuyList4
	push_parameter ShopName
	push_parameter fnSell
	push_parameter fnUnableItemSell
	push_const 50
	negate
	func_call 48	//  func[Buy]
	shift_sp -6
	shift_sp -1
L752
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 13
	equal
	branch_false L754
L753
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S66.	"territorystaus.htm"
	push_string S66
	func_call 84	//  func[FHTML_SetFileName]
	shift_sp -2
	shift_sp -1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  sm
	push_const 2400
	add
	fetch_i	//  residence_id
	push_const 736
	add
	fetch_i
	push_reg_sp
	fetch_i
	push_const 1
	equal
	branch_false L757
L756
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S67.	"castlename"
	push_string S67
S68.	"Gludio"
	push_string S68
	func_call 87	//  func[FHTML_SetStr]
	shift_sp -3
	shift_sp -1
	jump L755
	jump L758
L757
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L759
L758
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S69.	"castlename"
	push_string S69
S70.	"Dion"
	push_string S70
	func_call 87	//  func[FHTML_SetStr]
	shift_sp -3
	shift_sp -1
	jump L755
	jump L760
L759
	push_reg_sp
	fetch_i
	push_const 3
	equal
	branch_false L761
L760
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S71.	"castlename"
	push_string S71
S72.	"Giran"
	push_string S72
	func_call 87	//  func[FHTML_SetStr]
	shift_sp -3
	shift_sp -1
	jump L755
	jump L762
L761
	push_reg_sp
	fetch_i
	push_const 4
	equal
	branch_false L763
L762
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S73.	"castlename"
	push_string S73
S74.	"Oren"
	push_string S74
	func_call 87	//  func[FHTML_SetStr]
	shift_sp -3
	shift_sp -1
	jump L755
	jump L764
L763
	push_reg_sp
	fetch_i
	push_const 5
	equal
	branch_false L765
L764
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S75.	"castlename"
	push_string S75
S76.	"Aden"
	push_string S76
	func_call 87	//  func[FHTML_SetStr]
	shift_sp -3
	shift_sp -1
	jump L755
	jump L766
L765
	push_reg_sp
	fetch_i
	push_const 6
	equal
	branch_false L767
L766
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S77.	"castlename"
	push_string S77
S78.	"Innadril"
	push_string S78
	func_call 87	//  func[FHTML_SetStr]
	shift_sp -3
	shift_sp -1
	jump L755
	jump L768
L767
	push_reg_sp
	fetch_i
	push_const 7
	equal
	branch_false L769
L768
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S79.	"castlename"
	push_string S79
S80.	"Goddar"
	push_string S80
	func_call 87	//  func[FHTML_SetStr]
	shift_sp -3
	shift_sp -1
	jump L755
	jump L770
L769
L770
L755
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S81.	"clanname"
	push_string S81
	shift_sp 1
	func_call 101	//  func[Castle_GetPledgeName]
	func_call 87	//  func[FHTML_SetStr]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S82.	"clanleadername"
	push_string S82
	shift_sp 1
	func_call 102	//  func[Castle_GetOwnerName]
	func_call 87	//  func[FHTML_SetStr]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  fhtml0
	push_const 316
	add
	fetch_i
S83.	"taxpercent"
	push_string S83
	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
L754
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 14
	equal
	branch_false L772
L771
	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
L772
L726
handler_end

class_end
create territorystaus.htm
Code:
<html>
<body>
<font color="FCC800">[Territory Status]</font>



Name : <?castlename?> Territory of Aden Kingdom

Lord : <?clanleadername?> (Clan : <?clanname?> )

Tax Rate :  <?taxpercent?>  %


<center>
<button value="Back"  a action="bypass -h menu_select?ask=-1&reply=14"  width="60" height="15" back="sek.cbui94" fore="sek.cbui92">
</center>
</body>
</html>
add to all your merchant this string :

<a action="bypass -h menu_select?ask=-1&reply=13">See the Lord and Tax Rate Information</a>
serafim is offline  
Old 06.05.2006, 12:19   #2
mantrastic
Архивный участник
 
Join Date: Apr 2006
Posts: 338
Default

nice dude , well try it tnx!
mantrastic is offline  
Old 06.05.2006, 13:34   #3
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

what need use for open this dialog?

bypass -h menu_select?ask=-104&reply=13

?
HF is offline  
Old 06.05.2006, 13:48   #4
serafim
Архивный участник
 
Join Date: May 2006
Posts: 42
Default

Quote:
Originally Posted by HF
what need use for open this dialog?

bypass -h menu_select?ask=-104&reply=13

?
bypass -h menu_select?ask=-1&reply=13
serafim is offline  
Old 09.05.2006, 11:30   #5
vex
Архивный участник
 
Join Date: Dec 2005
Posts: 83
Default

hmm, my L2NPC crash when i click on this link
vex is offline  
Old 09.05.2006, 13:34   #6
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

serafim:
Your shares is very good for me, wait more.
hel is offline  
Old 10.05.2006, 15:53   #7
MuNLoK
Архивный участник
 
Join Date: Sep 2005
Posts: 255
Default

Quote:
<button value="Back" a action="bypass -h menu_select?ask=-1&reply=14" width="60" height="15" back="sek.cbui94" fore="sek.cbui92">

value"Back" a action="

a action????? XDD

Delete this a
MuNLoK is offline  
Old 10.05.2006, 16:01   #8
MuNLoK
Архивный участник
 
Join Date: Sep 2005
Posts: 255
Default

like official:

Code:
<html><body>

<font color="FCC800">[Territory Status]</font>
 


<font color="FFFFFF">Name : <?castlename?> Territory of Aden Kingdom</font>
 
<font color="FFFFFF">Lord : </font><font color="50FFFF"><?clanleadername?></font><font color="FFFFFF"> (</font><font color="50FFFF"><?clanname?></font><font color="FFFFFF"> clan)</font>
 
<font color="FFFFFF">Tax Rate : </font><font color="50FFFF"><?taxpercent?></font><font color="FFFFFF">%</font>

  
<button value="Initial Screen" action="bypass -h menu_select?ask=-1&reply=14" width="60" height="15" back="sek.cbui94" fore="sek.cbui92"> 
</body></html>
MuNLoK is offline  
Old 10.05.2006, 16:27   #9
Amanda
Архивный участник
 
Join Date: May 2006
Posts: 13
Default

nice share
Amanda 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 20:02.