View Single Post
Old 18.08.2005, 13:08   #10
dVampire
Архивный участник
 
Join Date: Jun 2005
Posts: 14
Default

In my server (la2.intersat.md), i have already this skill, it work like summon npc. I share only ai script. I think skilldata and npcdata for this skill you can do.
Code:
class Quiver_a : (null)
handler 13	//  CREATED
	variable_begin
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	shift_sp 1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  master
	push_const 2404
	add
	fetch_i
	push_const 1344
	shift_sp 1
	push_const 1320
	func_call 55	//  func[Rand]
	shift_sp -1
	push_const 480
	add
	func_call 77	//  func[GiveItem1]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	func_call 175      // func[Despawn]
	shift_sp -1
handler_end
class_end
dVampire is offline