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

Quote:
Originally Posted by rawrz
why not just use ai.obj? no need to manually add the pet to the DB...
Code:
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 2375 //Item ID of collar
	push_const 1012077 //NPC id of pet (npc_pch)
	func_call 196	//  func[CreatePet]
	shift_sp -3
	shift_sp -1
Thanks for this cool example.. this help me alot.. I look on ai code for pet wolf
rodier is offline