View Single Post
Old 19.06.2007, 04:49   #2
McBigMac
Архивный участник
 
Join Date: Aug 2005
Posts: 34
Default

The push reg_sp part:
" push_reg_sp
fetch_i
push_const 2"

Is your ask/reply number.

Check the html for the pet manager, change the push_const 2 to a number not used, copy one of the lines of the other c4 pets and change the reply ID within it.


Change all the L's/S's (Branches/Strings) too something new(unused number for example, "1337" "1338" etc) and make sure they follow each other. Also recount all your lines within that handler when done and exchange it with the number at the top of the handler.

Change the own item counts/DeletelItem to your new pet ticket id.
Change getitem func to your pet summon item id.

In the create pet function

push_const 6649 <---- Item Id for pet item summon
push_const 1012782 <----- Npcpch id of pet
push_const 26 <------- Level

Code:
L3813
	push_reg_sp
	fetch_i
	push_const 2
	equal
	branch_false L3818
L3817
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  talker
	push_const 40
	add
	fetch_i
	push_const 7584   <=== ticket baby coogar
	func_call 184680579	//  func[OwnItemCount]
	shift_sp -2
	push_const 0
	greater
	branch_false L3820
L3819
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  talker
	push_const 40
	add
	fetch_i
	push_const 7584   <=== ticket baby coogar
	push_const 1
	func_call 184746114	//  func[DeleteItem1]
	shift_sp -3
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  talker
	push_const 40
	add
	fetch_i
	push_const 6649 <==== baby coogar chime
	func_call 184680580	//  func[GetItemData]
	shift_sp -2
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  talker
	push_const 40
	add
	fetch_i
	push_const 6649 <==== baby coogar chime
	push_const 1012782
	push_const 26
	func_call 184811786	//  func[CreatePet]
	shift_sp -4
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  talker
	push_const 40
	add
	fetch_i
S879.	"pet_manager_trade_pet.htm"
	push_string S879
	func_call 184680516	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
	jump L3821
Pretty much change that.
McBigMac is offline