Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 20.05.2006, 18:54   #1
MelkorTheStrong
Архивный участник
 
Join Date: Mar 2006
Posts: 135
Default [Help] Siege Golem?

Wow I feel kind of dumb posting this. but oh well. My siege golem won't summon at all. Skill gives unsuitable terms.


AI:

Code:
class summon_siege_golem : default_npc
handler 13   //  CREATED
   variable_begin
      "myself"
      "_choiceN"
      "_code"
      "_from_choice"
   variable_end

   shift_sp 1
   push_const xx.xx0000
   func_call 14   //  func[AddPetDefaultDesire_Follow]
   shift_sp -1
   shift_sp -1
   shift_sp 1
   push_const 100020
   push_const 1000
   func_call 28   //  func[AddTimerEx]
   shift_sp -2
   shift_sp -1
   shift_sp 1
   push_const 100021
   push_const 1000
   push_const 60
   mul
   func_call 28   //  func[AddTimerEx]
   shift_sp -2
   shift_sp -1
handler_end

handler 0   //  NO_DESIRE
   variable_begin
      "myself"
      "_choiceN"
      "_code"
      "_from_choice"
   variable_end

   shift_sp 1
   push_const xx.xx0000
   func_call 14   //  func[AddPetDefaultDesire_Follow]
   shift_sp -1
   shift_sp -1
handler_end

handler 32   //  MENU_SELECTED
   variable_begin
      "talker"
      "ask"
      "reply"
      "i0"
      "c0"
      "myself"
      "_choiceN"
      "_code"
      "_from_choice"
   variable_end

   push_event   //  i0
   push_const 192
   add
   push_reg_sp
   fetch_i
   push_event   //  myself
   push_const 28
   add
   fetch_i   //  master
   push_const 2404
   add
   fetch_i   //  target_id
   push_const 388
   add
   fetch_i
   assign
   shift_sp -1
   shift_sp 1
   push_const 1044225
   func_call 155   //  func[Skill_GetConsumeMP]
   shift_sp -1
   push_event   //  myself
   push_const 28
   add
   fetch_i   //  sm
   push_const 2400
   add
   fetch_i   //  mp
   push_const 352
   add
   fetch_d
   less
   push_reg_sp
   fetch_i
   branch_false L2107
   shift_sp 1
   push_const 1044225
   func_call 154   //  func[Skill_GetConsumeHP]
   shift_sp -1
   push_event   //  myself
   push_const 28
   add
   fetch_i   //  sm
   push_const 2400
   add
   fetch_i   //  hp
   push_const 344
   add
   fetch_d
   less
   and
   push_reg_sp
   fetch_i
   branch_false L2107
   shift_sp 1
   push_const 1044225
   func_call 160   //  func[Skill_InReuseDelay]
   shift_sp -1
   push_const 0
   equal
   and
L2107
   branch_false L2109
L2108
   shift_sp 1
   push_event   //  i0
   push_const 192
   add
   fetch_i
   push_const 1044225
   push_const 0
   push_event   //  reply
   push_const 104
   add
   fetch_i
   push_event   //  ask
   push_const 100
   add
   fetch_i
   push_const 1000000
   func_call 11   //  func[AddUseSkillDesireEx]
   shift_sp -6
   shift_sp -1
L2109
handler_end

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

   push_event   //  timer_id
   push_const 176
   add
   fetch_i
   push_const 100020
   equal
   branch_false L2111
L2110
   push_event   //  myself
   push_const 28
   add
   fetch_i   //  master
   push_const 2404
   add
   fetch_i   //  alive
   push_const 112
   add
   fetch_i
   push_const 0
   equal
   branch_false L2113
L2112
   shift_sp 1
   func_call 175   //  func[Despawn]
   shift_sp -1
L2113
   shift_sp 1
   push_const 100020
   push_const 1000
   func_call 28   //  func[AddTimerEx]
   shift_sp -2
   shift_sp -1
L2111
   push_event   //  timer_id
   push_const 176
   add
   fetch_i
   push_const 100021
   equal
   branch_false L2115
L2114
   shift_sp 1
   push_event   //  myself
   push_const 28
   add
   fetch_i   //  master
   push_const 2404
   add
   fetch_i
   push_const 2131
   func_call 81   //  func[OwnItemCount]
   shift_sp -2
   push_const 140
   less
   push_reg_sp
   fetch_i
   branch_false L2116
   shift_sp 1
   push_event   //  myself
   push_const 28
   add
   fetch_i   //  master
   push_const 2404
   add
   fetch_i
   push_const 2131
   func_call 81   //  func[OwnItemCount]
   shift_sp -2
   push_const 70
   greater_equal
   and
L2116
   branch_false L2118
L2117
   shift_sp 1
   shift_sp 1
   push_const 1000169
S374.   ""
   push_string S374
S375.   ""
   push_string S375
S376.   ""
   push_string S376
S377.   ""
   push_string S377
S378.   ""
   push_string S378
   func_call 89   //  func[MakeFString]
   shift_sp -6
   func_call 37   //  func[Say]
   shift_sp -1
   shift_sp -1
L2118
   shift_sp 1
   push_event   //  myself
   push_const 28
   add
   fetch_i   //  master
   push_const 2404
   add
   fetch_i
   push_const 2131
   func_call 81   //  func[OwnItemCount]
   shift_sp -2
   push_const 70
   greater_equal
   branch_false L2120
L2119
   shift_sp 1
   push_event   //  myself
   push_const 28
   add
   fetch_i   //  master
   push_const 2404
   add
   fetch_i
   push_const 2131
   push_const 70
   func_call 80   //  func[DeleteItem1]
   shift_sp -3
   shift_sp -1
   jump L2121
L2120
   shift_sp 1
   func_call 175   //  func[Despawn]
   shift_sp -1
L2121
   shift_sp 1
   push_const 100021
   push_const 1000
   push_const 60
   mul
   func_call 28   //  func[AddTimerEx]
   shift_sp -2
   shift_sp -1
L2115
handler_end

class_end
NPCData:

Code:
npc_begin	summon	12251	[siege_golem]	level=55	exp=708530xx.xx5	acquire_exp_rate=18	undying=0	can_be_attacked=1	acquire_sp=220	race=humanoid	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={}	magic_list={}	max_item=50	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	base_attack_type=pole	base_can_penetrate=0	base_attack_range=80	base_damage_range={0;0;300;120}	base_rand_dam=30	str=40	int=21	dex=30	wit=20	con=43	men=25	hp_increase=40	mp_increase=7	org_hp_regen=6.5	org_mp_regen=2.4	ground_low={40;0;10}	ground_high={40;-30;30}	underwater_low={50;0;10}	underwater_high={0;0;30}	fly_low={0;0;10}	fly_high={0;-30;30}	float_low={0;0;10}	float_high={0;-30;30}	org_earshot=100	sight={0;0;2500;120;5}	agro_range=1000	org_hp=5000xx.xx7915047132	org_mp=8xx.xx	base_defend=8xx.xx5970408024	base_magic_attack=2xx.xx791693132	base_magic_defend=6xx.xx8467292763	base_physical_attack=15xx.xx431336161	physical_hit_modify=4.75	physical_avoid_modify=0	base_attack_speed=150	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=-3025	collision_radius=60	collision_height=140	category={}	clan={@lizardman_clan}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[siege_golem]}	corpse_time=7	no_sleep_mode=0	npc_end
Skill Data:

Code:
skill_begin	skill_name=[s_summon_siege_golem]	/* [Summon Siege Golem] */	skill_id=13	level=1	operate_type=A1	magic_level=49	effect={{i_summon;[siege_golem];100};{i_register_siege_golem}}	operate_cond={{can_summon};{can_summon_siege_golem}}	is_magic=0	mp_consume1=530	mp_consume2=0	item_consume={[crystal_c];300}	cast_range=-1	effective_range=-1	skill_hit_time=300	skill_cool_time=0	skill_hit_cancel_time=0.5	reuse_delay=20	attribute=attr_none	effect_point=0	target_type=self	affect_scope=single	next_action=none	skill_end
MelkorTheStrong 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 22:15.