![]() |
|
|
#1 |
|
Архивный участник
Join Date: Apr 2005
Posts: 306
|
anyone can help me with that ?
this is my code from skilldata and this is not OK . Skill has no effect (do not create arrows) ![]() 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 = {} operate_cond = {} is_magic = 1 mp_consume2 = 250 cast_range = -1 effective_range = -1 skill_hit_time = 0 skill_cool_time = 0 skill_hit_cancel_time = 0.5 attribute = attr_none effect_point = 108 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 = {} operate_cond = {} is_magic = 1 mp_consume2 = 500 cast_range = -1 effective_range = -1 skill_hit_time = 0 skill_cool_time = 0 skill_hit_cancel_time = 0.5 attribute = attr_none effect_point = 120 target_type = self affect_scope = single next_action = none skill_end
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jul 2005
Posts: 23
|
Unfortunately, I cannot answer your question. What I would like to mention is that someone else had asked help before about how to make a skill that creates an item. As far as I remember, nobody was able to help him back then...Some had said it's impossible, some said it's possible but requires hexing (therefore it's too hard), and in any case nobody gave any solutions...
I wish you luck...and if you find out how to do that, I'd like to learn, too! There are some neat skills one can come up with if we get this working
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Feb 2005
Posts: 165
|
a stupid propouse, maybe, the skill can summon a npc :P
and then u kill the npc and the npc drop the arrows. ![]() Stupid but Efficient |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
Its actually quite simple, make a skill that summons a npc - make the npc give you item "on summon" and despawn..
badabing you got a somewhat working skill ;-) And theres a second option, but ill leave that up for your exploration (its in ai.obj) |
|
|
|
|
#5 | |
|
Архивный участник
Join Date: Mar 2005
Posts: 442
|
Quote:
Ill implement that! (first one. The second... ill ask you how xD). Oso |
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: May 2005
Posts: 34
|
Maybe just using the effect = {{p_create_item;[mithril_arrow];400}} but i'm still trying to figure which would be the operate_cond for this.
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
Didnt even know that skill effect existed..
Does it? or are you just making shit up now, im at work so cant try it :-) |
|
|
|
|
#8 |
|
Архивный участник
Join Date: May 2005
Posts: 34
|
Well does it? I was using as refference an entry in the skilldata.txt as it follows
Code:
skill_begin skill_name = [s_create_item1] /* [????? ???] */ skill_id = 172 level = 1 operate_type = P effect = {{p_create_item;1}} skill_end
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
I dont think it does, your reference is the ability to create items of level 1.
Not create item id 1 |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Jun 2005
Posts: 14
|
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 |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
Yep, thats the first option i described, one of the problems with it is that its very easy to crash the l2npc server using this method.
Or at least, put some rather high latency on it, depending on the amount of players you have. |
|
|
|
|
#12 |
|
Архивный участник
Join Date: May 2005
Posts: 34
|
What you simply dont get is that this skill is not supposed to work the way i already see others are using it. It's not supposed to spawn/summon a monster but simply based on a item_consume ={} var to create a friggin quiver of arrows. And archy yeah i know that 1 is the level of create item skill .. the base ideea of it is that the skill effect exists. You got my point wrong.. I'm sure must be a workaround for this skill.
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
well tespio, i think the work around would be to modify the item_consume into allowing positive items, as in give items and take items..
But hex yet again. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|