![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jun 2005
Posts: 364
|
does anyone have this working? if so can you share. when I try to use it does not call arrows and im not sure how to change in skilldata.
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
isnt that hard think a little, read, and figure it out how to make it
. There are 2 good ways.
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jun 2005
Posts: 364
|
effect = {{i_summon_mithril_arrow;50}}
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
no dave -.-
there 2 ways, well 2 goods ways to make it. 1- //created 2- //spelled |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Aug 2005
Posts: 394
|
Wrong section but ah well i'll make it one...(a modification thread)
Basically this is A La Hamidouch style so... give him credit... and it's not as retail it only summons 480 and 650 not BETWEEN 480 and 1800 & between 650 and 2600 skilldata.txt: Code:
skill_begin skill_name = [s_quiver_of_arrow_grade_a] /* [c3 skill] */ skill_id = 323 level = 1 operate_type = A1 magic_level = 56 effect = {{i_summon;[summon_mithril_arrow];70}} operate_cond = {} is_magic = 1 mp_consume2 = 250 cast_range = -1 effective_range = -1 skill_hit_time = 6 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 3600 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end
skill_begin skill_name = [s_quiver_of_arrow_grade_s] /* [c3 skill] */ skill_id = 324 level = 1 operate_type = A1 magic_level = 60 effect = {{i_summon;[summon_shining_arrow];70}} operate_cond = {} is_magic = 1 mp_consume2 = 500 cast_range = -1 effective_range = -1 skill_hit_time = 6 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 3600 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end
Code:
npc_begin summon 15000 [summon_mithril_arrow] level=1 exp=0 acquire_exp_rate=0 undying=1 can_be_attacked=0 acquire_sp=0 race=human sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} 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=fist base_can_penetrate=0 base_attack_range=4000 base_damage_range={0;0;80;120} base_rand_dam=30 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase=40 mp_increase=7 org_hp_regen=7.5 org_mp_regen=2.7 ground_low={80;0;10} ground_high={120;-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=5000 org_mp=5000 base_defend=5000 base_magic_attack=1 base_magic_defend=5000 base_physical_attack=1 physical_hit_modify=4.75 physical_avoid_modify=0 base_attack_speed=800 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=1 collision_height=350 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[summon_mithril_arrow]} corpse_time=1 no_sleep_mode=0 npc_end
npc_begin summon 15001 [summon_shining_arrow] level=1 exp=0 acquire_exp_rate=0 undying=1 can_be_attacked=0 acquire_sp=0 race=human sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_full_magic_defence} 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=fist base_can_penetrate=0 base_attack_range=4000 base_damage_range={0;0;80;120} base_rand_dam=30 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase=40 mp_increase=7 org_hp_regen=7.5 org_mp_regen=2.7 ground_low={80;0;10} ground_high={120;-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=5000 org_mp=5000 base_defend=5000 base_magic_attack=1 base_magic_defend=5000 base_physical_attack=1 physical_hit_modify=4.75 physical_avoid_modify=0 base_attack_speed=800 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-4900 collision_radius=1 collision_height=350 category={} clan={} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[summon_shining_arrow]} corpse_time=1 no_sleep_mode=0 npc_end
Code:
class summon_mithril_arrow : (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 //Item ID push_const 480 //Amount func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_const 300001 push_const 100 //100 MS before Despawn func_call 28 // func[AddTimerEx] shift_sp -2 shift_sp -1 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 300001 equal branch_false L999989 L999988 shift_sp 1 func_call 175 // func[Despawn] shift_sp -1 L999989 handler_end class_end class summon_shining_arrow : (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 1345 //Item ID push_const 650 //Amount func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 shift_sp 1 push_const 300001 push_const 100 //100 MS before Despawn func_call 28 // func[AddTimerEx] shift_sp -2 shift_sp -1 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 300001 equal branch_false L999989 L999988 shift_sp 1 func_call 175 // func[Despawn] shift_sp -1 L999989 handler_end class_end |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Jun 2005
Posts: 364
|
Thank you so much, I would have never guessed AI and NPC scripts for this. Atleast I got skilldata right. LOL.
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
i made this but i dont know if my stack is right, cause maybe i need a push_reg_sp to copy one of the values, dont know yet cause didnt test.
add fetch_i push_const 1345 push_const 1320 func_call 55 // [Rand] shift_sp -1 push_const 480 add func_call 77 // func[GiveItem1] shift_sp -3 shift_sp -1 |
|
|
|
|
#8 |
|
Архивный участник
Join Date: Jun 2005
Posts: 364
|
the script worked perfectly, other than the white bunnie (which I know why). Im assuming because it calls a "summon" from npcdata, that it needs a mesh. Can someone give a hint to what client to use so everytime I summon arrows, a bunny dont show over my head. lol..
|
|
|
|
|
#9 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 180
|
Quote:
|
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
how you are using it ? dont know really if it work, but i need to be sure that you are adding it correctly
|
|
|
|
|
#11 | ||
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
Quote:
func_call 77 // func[GiveItem1] shift_sp -2 shift_sp -1 i have problems calculling the SP with the func Rand |
||
|
|
|
|
#12 |
|
Архивный участник
Join Date: Aug 2005
Posts: 180
|
Code:
class summon_mithril_arrow : (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 1345 push_const 1320 func_call 55 // [Rand] shift_sp -1 push_const 480 add func_call 77 // func[GiveItem1] shift_sp -2 shift_sp -1 shift_sp 1 push_const 300001 push_const 100 //100 MS before Despawn func_call 28 // func[AddTimerEx] shift_sp -2 shift_sp -1 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 300001 equal branch_false L999989 L999988 shift_sp 1 func_call 175 // func[Despawn] shift_sp -1 L999989 handler_end class_end |
|
|
|
|
#13 |
|
Архивный участник
Join Date: Sep 2005
Posts: 150
|
Code:
class summon_mithril_arrow : (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
class summon_shining_arrow : (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 1345
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
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
sdw ^^ copy and paste dont work :P
for shining arrow is push_const 1345 shift_sp 1 push_const 1950 func_call 55 // func[Rand] shift_sp -1 push_const 650 |
|
|
|
|
#15 |
|
Архивный участник
Join Date: Jun 2005
Posts: 364
|
is there anyway of getting rid of the bunny above my head when I summon the arrows. I guess i could use cubix texture. any ideas?
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Sep 2005
Posts: 408
|
try setting it's collision height to -1
|
|
|
|
|
#17 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 153
|
Quote:
Why code need this changes shown in RED ? Would you plz explain me the reason ? i would aprecciate it very much. Thanks in advance. |
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Apr 2005
Posts: 75
|
i think is the random numbers of arrows when u summon it ^^
from 650 to 1950 arrows |
|
|
|
|
#19 |
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
cause, s_quiver_arrow_a is 450-1800 arrows and s_quiver_arrow_s is 650-2600 arrows
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Sep 2005
Posts: 21
|
what about to define that npc used to summon at the client side?
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|