Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 08.07.2005, 02:37   #1
drugolo
Архивный участник
 
Join Date: Jun 2005
Posts: 93
Default Exchange Adena > SP

Add this at the beginning of menu_select of class clan_master.

Code:
        push_event	//  ask
	push_const 100 //wanna change from Adena to SP
	add //code by Drake Bloodbane - The Dragon Chronicle
	fetch_i
	push_const 333
	equal
	branch_false L650
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 0
	equal
	branch_false L650
L655
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  is_pledge_master
	push_const 672
	add
	fetch_i
	push_const 0
	not_equal
	branch_false L657

L651
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 57
	func_call 81	//  func[OwnItemCount]
	shift_sp -2
	push_const 250000000	//	adena
	greater_equal
	branch_false L659
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 57
	push_const 250000000	// adena
	func_call 80	//  func[DeleteItem1]
	shift_sp -3
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 1
	push_const 5000000	//	SP
	func_call 171	//  func[IncrementParam]
	shift_sp -3
	shift_sp -1
L658 //good message
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S23948.	"SP_ok.htm"
	push_string S23948
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L96
L657 //no leader
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S23950.	"SP_noleader.htm"
	push_string S23950
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L96
L659 //wrong message
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
S23949.	"SP_bad.htm"
	push_string S23949
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L660
	jump L96
L650
drugolo is offline  
Old 08.07.2005, 16:43   #2
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

good!
Digital 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:47.