View Single Post
Old 24.06.2006, 21:14   #16
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

I have tontor patch and not problem..

I have another problem.. in html is price 1000a per buff.. but in AI code is not any line about checking amount adena and deleting it.. please can anyone help me and tell me what add to this code to get this buff payed?

Im think about this..but dunno where to paste it..

Code:
//ASK ABOUT BUFF==========>
L91040
	push_event	//  ask
	push_const 100
	add
	fetch_i
	push_const 384	//  bypass -h menu_select?ask=-384
	negate
	equal
	branch_false L91042	//  ˛»ĘÇŇ˝ÁĆ·ţÎńµÄ ask id
//CHECK FOR MONEY========>
L140500
	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 50000
	greater_equal
	branch_false L140800
//DELETE MONEY==============>
L140700
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 57
	push_const 50000
	func_call 80	//  func[DeleteItem1]
	shift_sp -3
	shift_sp -1
	shift_sp 1
//CAST BUFF ON PLAYER ========>
L91041
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_event	//  reply
	push_const 104
	add
	fetch_i
	push_const 0
	push_const 1
	push_const 1000000
	func_call 10	//  func[AddUseSkillDesire]
	shift_sp -5
	shift_sp -1
//CAUSE IF PLAYER DONT HAVE ADENA =============>
L140800
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_parameter fnNotEnoughAdena
	func_call 43	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L91042
handler_end
Is this OK? I understand AI a little..but can't make my own code...
rodier is offline