Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 18.11.2006, 18:34   #1
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default Blacksmith of Mammon - problem

When I summon it (not trying to find in catacombs but simple summon) and trying to speak to it, this NPC just disapears. What is wrong?
Here is the part from AI
Code:
class 1 ssq_npc_blacksmith_of_mammon : merchant
parameter_define_begin
int PosX1 0
int PosY1 0
int PosZ1 0
int PosX2 0
int PosY2 0
int PosZ2 0
int PosX3 0
int PosY3 0
int PosZ3 0
int PosX4 0
int PosY4 0
int PosZ4 0
int PosX5 0
int PosY5 0
int PosZ5 0
int PosX6 0
int PosY6 0
int PosZ6 0
int PosX7 0
int PosY7 0
int PosZ7 0
parameter_define_end
property_define_begin
	buyselllist_begin SellList0
	buyselllist_end
property_define_end
handler 13 13	//  CREATED
variable_begin
	"myself"
	"_choiceN"
	"_code"
	"_from_choice"
variable_end
push_event	//  myself
push_const 704
add
fetch_i
push_const 5098
push_const 30
push_const 60
mul
push_const 1000
mul
func_call 184680487	//  func[AddTimerEx]
shift_sp -2
shift_sp -1
handler_end
handler 3 82	//  TALKED
variable_begin
	"talker"
	"myself"
	"_choiceN"
	"_code"
	"_from_choice"
variable_end
push_event	//  myself
push_const 704
add
fetch_i
func_call 184549715	//  func[GetSSQStatus]
push_const 3
not_equal
branch_false L24536
L24535
push_event	//  myself
push_const 704
add
fetch_i
func_call 184549616	//  func[Despawn]
shift_sp -1
exit_handler
L24536
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
func_call 184615265	//  func[GetSSQPart]
shift_sp -1
push_const 0
not_equal
push_reg_sp
fetch_i
branch_false L24537
push_event	//  myself
push_const 704
add
fetch_i
push_const 2
func_call 184615253	//  func[GetSSQSealOwner]
shift_sp -1
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
func_call 184615265	//  func[GetSSQPart]
shift_sp -1
equal
and
L24537
branch_false L24539
L24538
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_parameter fnHi
func_call 184680516	//  func[ShowPage]
shift_sp -2
shift_sp -1
jump L24540
L24539
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  talker
	push_const 40
	add
	fetch_i
S4198.	"blacksmith_of_mammon002.htm"
	push_string S4198
	func_call 184680516	//  func[ShowPage]
	shift_sp -2
	shift_sp -1
L24540
handler_end

handler 12 484	//  TIMER_FIRED_EX
	variable_begin
		"timer_id"
		"i0"
		"i1"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  timer_id
	push_const 236
	add
	fetch_i4
	push_const 5098
	equal
	branch_false L24542

L24541
	push_event	//  i0
	push_const 260
	add
	push_reg_sp
	fetch_i
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_const 70
	func_call 218169344	//  func[Rand]
	shift_sp -1
	assign4
	shift_sp -1
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 10
	less_equal
	push_reg_sp
	fetch_i
	branch_false L24543
	push_parameter PosX1
	push_const 0
	not_equal
	and
L24543
	branch_false L24545
L24544
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i
	push_parameter PosX1
	push_parameter PosY1
	push_parameter PosZ1
	func_call 184811596	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L24546
L24545
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 10
	greater
	push_reg_sp
	fetch_i
	branch_false L24547
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 20
	less_equal
	and
	push_reg_sp
	fetch_i
	branch_false L24547
	push_parameter PosX2
	push_const 0
	not_equal
	and
L24547
	branch_false L24549
L24548
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i
	push_parameter PosX2
	push_parameter PosY2
	push_parameter PosZ2
	func_call 184811596	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L24550
L24549
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 20
	greater
	push_reg_sp
	fetch_i
	branch_false L24551
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 30
	less_equal
	and
	push_reg_sp
	fetch_i
	branch_false L24551
	push_parameter PosX3
	push_const 0
	not_equal
	and
L24551
	branch_false L24553
L24552
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i
	push_parameter PosX3
	push_parameter PosY3
	push_parameter PosZ3
	func_call 184811596	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L24554
L24553
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 30
	greater
	push_reg_sp
	fetch_i
	branch_false L24555
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 40
	less_equal
	and
	push_reg_sp
	fetch_i
	branch_false L24555
	push_parameter PosX4
	push_const 0
	not_equal
	and
L24555
	branch_false L24557
L24556
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i
	push_parameter PosX4
	push_parameter PosY4
	push_parameter PosZ4
	func_call 184811596	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L24558
L24557
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 40
	greater
	push_reg_sp
	fetch_i
	branch_false L24559
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 50
	less_equal
	and
	push_reg_sp
	fetch_i
	branch_false L24559
	push_parameter PosX5
	push_const 0
	not_equal
	and
L24559
	branch_false L24561
L24560
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i
	push_parameter PosX5
	push_parameter PosY5
	push_parameter PosZ5
	func_call 184811596	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L24562
L24561
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 50
	greater
	push_reg_sp
	fetch_i
	branch_false L24563
	push_event	//  i0
	push_const 260
	add
	fetch_i4
	push_const 60
	less
	and
	push_reg_sp
	fetch_i
	branch_false L24563
	push_parameter PosX6
	push_const 0
	not_equal
	and
L24563
	branch_false L24565
L24564
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i
	push_parameter PosX6
	push_parameter PosY6
	push_parameter PosZ6
	func_call 184811596	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L24566
L24565
	push_parameter PosX7
	push_const 0
	not_equal
	branch_false L24568
L24567
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  sm
	push_const 544
	add
	fetch_i
	push_parameter PosX7
	push_parameter PosY7
	push_parameter PosZ7
	func_call 184811596	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
L24568
L24566
L24562
L24558
L24554
L24550
L24546
	push_event	//  i1
	push_const 264
	add
	push_reg_sp
	fetch_i
	push_event	//  gg
	push_const 632
	add
	fetch_i
	push_const 30
	func_call 218169344	//  func[Rand]
	shift_sp -1
	assign4
	shift_sp -1
	push_event	//  i1
	push_const 264
	add
	fetch_i4
	push_const 10
	less
	branch_false L24570
L24569
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 1000431
S4199.	""
	push_string S4199
S4200.	""
	push_string S4200
S4201.	""
	push_string S4201
S4202.	""
	push_string S4202
S4203.	""
	push_string S4203
	func_call 184942731	//  func[MakeFString]
	shift_sp -6
	func_call 184614978	//  func[Shout]
	shift_sp -1
	shift_sp -1
	jump L24571
L24570
	push_event	//  i1
	push_const 264
	add
	fetch_i4
	push_const 10
	greater_equal
	push_reg_sp
	fetch_i
	branch_false L24572
	push_event	//  i1
	push_const 264
	add
	fetch_i4
	push_const 20
	less
	and
L24572
	branch_false L24574
L24573
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 1000432
S4204.	""
	push_string S4204
S4205.	""
	push_string S4205
S4206.	""
	push_string S4206
S4207.	""
	push_string S4207
S4208.	""
	push_string S4208
	func_call 184942731	//  func[MakeFString]
	shift_sp -6
	func_call 184614978	//  func[Shout]
	shift_sp -1
	shift_sp -1
	jump L24575
L24574
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 1000433
S4209.	""
	push_string S4209
S4210.	""
	push_string S4210
S4211.	""
	push_string S4211
S4212.	""
	push_string S4212
S4213.	""
	push_string S4213
	func_call 184942731	//  func[MakeFString]
	shift_sp -6
	func_call 184614978	//  func[Shout]
	shift_sp -1
	shift_sp -1
L24575
L24571
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 5098
	push_const 30
	push_const 60
	mul
	push_const 1000
	mul
	func_call 184680487	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
	jump L24576
L24542
	push_event	//  timer_id
	push_const 236
	add
	fetch_i4
	push_const 5099
	equal
	branch_false L24578
L24577
	push_event	//  myself
	push_const 704
	add
	fetch_i
	func_call 184549715	//  func[GetSSQStatus]
	push_const 1
	equal
	branch_false L24580
L24579
	push_event	//  myself
	push_const 704
	add
	fetch_i
	func_call 184549616	//  func[Despawn]
	shift_sp -1
	jump L24581
L24580
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_const 5099
	push_const 60
	push_const 1000
	mul
	func_call 184680487	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
L24581
L24578
L24576
handler_end

class_end
kin is offline  
Old 18.11.2006, 18:50   #2
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default

and here is the npcdata:
Code:
npc_begin	citizen	8126	[blacksmith_of_mammon]	level=70	acquire_exp_rate=0	acquire_sp=0	unsowing=1	clan={}	ignore_clan_list={}	clan_help_range=300	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	shield_defense_rate=0	shield_defense=0	skill_list={@s_race_undead;@s_full_magic_defence}	npc_ai={[blacksmith_of_mammon];{[fnHi]=[blacksmith_of_mammon001.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=85};{[MoveAroundSocial2]=140};{[PosY1]=84320};{[PosZ1]=-6539};{[PosX2]=77760};{[PosY2]=78176};{[PosZ2]=-5123};{[PosX3]=43088};{[PosY3]=143712};{[PosZ3]=-5379};{[PosX4]=46288};{[PosY4]=170096};{[PosZ4]=-4979};{[PosX5]=-19378};{[PosY5]=13264};{[PosZ5]=-4899};{[PosX6]=140480};{[PosY6]=79472};{[PosZ6]=-5427}}	category={}	race=dwarf	sex=male	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=1000	ground_high={120;0;0}	ground_low={50;0;0}	exp=429634528	org_hp=24xx.xx819	org_hp_regen=7.5	org_mp=1345.8	org_mp_regen=2.7	collision_radius={8;8}	collision_height={16.5;16.5}	str=40	int=21	dex=30	wit=20	con=43	men=10	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=6xx.xx373	base_critical=4	physical_hit_modify=4.75	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=4xx.xx463	base_defend=2xx.xx597	base_magic_defend=2xx.xx847	physical_avoid_modify=0	soulshot_count=0	spiritshot_count=0	hit_time_factor=0.6	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	hp_increase=0	mp_increase=0	safe_height=100	npc_end
kin is offline  
Old 18.11.2006, 19:05   #3
Marios145
Архивный участник
 
Join Date: Oct 2006
Posts: 120
Default

maybe its not the seal effective period (2nd week of the 7signs festival) so he unspawns
Marios145 is offline  
Old 18.11.2006, 19:10   #4
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Kin, you so often surprise me. You cant summon this npc, because it no right. Because this npc spawn only in second week of ssq, because he spawn only when seal open and second week of ssq coming. This is protection agains users, who want good items, but no want play with rules.

/rus
Он не должен просто так спауниться, потому что это не отвечает условиям спауна. И правильно.
/
HF is offline  
Old 18.11.2006, 19:38   #5
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default

HF, thanks!
/rus
Спс, успокоил! Я так и подозревал, но решил перестраховаться!
В другом разделе выложил то, что надо
/rus
kin is offline  
Old 22.11.2006, 21:57   #6
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default

HF,
/rus
А у тебя есть координата PosX1? У меня ее нет
/rus

Does someone has PosX1 coordinate for mammon???
kin 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 18:46.