Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 08.12.2005, 17:48   #1
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default s_quiver_of_arrow_grade_a skill

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.
Dave is offline  
Old 08.12.2005, 17:56   #2
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

isnt that hard think a little, read, and figure it out how to make it . There are 2 good ways.
SoaPy is offline  
Old 08.12.2005, 18:23   #3
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default would something like this work?

effect = {{i_summon_mithril_arrow;50}}
Dave is offline  
Old 08.12.2005, 18:26   #4
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

no dave -.-

there 2 ways, well 2 goods ways to make it.

1- //created
2- //spelled
SoaPy is offline  
Old 08.12.2005, 18:27   #5
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

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
npcdata.txt
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
ai.obj
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
Phantom2005 is offline  
Old 08.12.2005, 18:47   #6
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default Whooa thank you

Thank you so much, I would have never guessed AI and NPC scripts for this. Atleast I got skilldata right. LOL.
Dave is offline  
Old 08.12.2005, 20:19   #7
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

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
SoaPy is offline  
Old 09.12.2005, 00:33   #8
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default Hmm just a question

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..
Dave is offline  
Old 09.12.2005, 01:01   #9
dar55
Архивный участник
 
Join Date: Aug 2005
Posts: 180
Default

Quote:
Originally Posted by SoaPy
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
if i use this code, my L2npc crash
dar55 is offline  
Old 09.12.2005, 01:04   #10
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

how you are using it ? dont know really if it work, but i need to be sure that you are adding it correctly
SoaPy is offline  
Old 09.12.2005, 01:06   #11
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

Quote:
Originally Posted by dar55
Quote:
Originally Posted by SoaPy
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
if i use this code, my L2npc crash
try with if you think its correctly added

func_call 77 // func[GiveItem1]
shift_sp -2
shift_sp -1

i have problems calculling the SP with the func Rand
SoaPy is offline  
Old 09.12.2005, 03:21   #12
dar55
Архивный участник
 
Join Date: Aug 2005
Posts: 180
Default

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
ok, this not crash, but not Give arrows
dar55 is offline  
Old 09.12.2005, 06:02   #13
Sdw
Архивный участник
 
Join Date: Sep 2005
Posts: 150
Default

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
Sdw is offline  
Old 09.12.2005, 12:12   #14
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

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
SoaPy is offline  
Old 09.12.2005, 16:51   #15
Dave
Архивный участник
 
Join Date: Jun 2005
Posts: 364
Default What about npc texture

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?
Dave is offline  
Old 09.12.2005, 16:55   #16
bwgreen
Архивный участник
 
Join Date: Sep 2005
Posts: 408
Default

try setting it's collision height to -1
bwgreen is offline  
Old 19.12.2005, 00:58   #17
khul
Архивный участник
 
Join Date: Oct 2005
Posts: 153
Default

Quote:
Originally Posted by SoaPy
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
I can see you change item ID for 1345 for Arrow S grade but.....
Why code need this changes shown in RED ? Would you plz explain me the reason ? i would aprecciate it very much. Thanks in advance.
khul is offline  
Old 19.12.2005, 01:23   #18
archonus
Архивный участник
 
Join Date: Apr 2005
Posts: 75
Default

i think is the random numbers of arrows when u summon it ^^
from 650 to 1950 arrows
archonus is offline  
Old 19.12.2005, 01:23   #19
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

cause, s_quiver_arrow_a is 450-1800 arrows and s_quiver_arrow_s is 650-2600 arrows
SoaPy is offline  
Old 26.12.2005, 13:56   #20
wen
Архивный участник
 
Join Date: Sep 2005
Posts: 21
Default

what about to define that npc used to summon at the client side?
wen 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 23:33.