Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Seeks Help]C3 skills: s_quiver_of_arrow_grade_a/s (https://postpacific.loc-online.com/showthread.php?t=1478)

djvogans 16.08.2005 19:41

[Seeks Help]C3 skills: s_quiver_of_arrow_grade_a/s
 
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


Fulminus 16.08.2005 21:22

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 ;)

knife_sj 17.08.2005 12:58

a stupid propouse, maybe, the skill can summon a npc :P
and then u kill the npc and the npc drop the arrows. :D

Stupid but Efficient

archy 17.08.2005 13:30

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)

Osito2Dancer 17.08.2005 20:03

Quote:

Originally Posted by archy
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)

Very Nice Idea you evil SoB :lol: . (No offense, just j/k)

Ill implement that! (first one. The second... ill ask you how xD).

Oso

tespio 18.08.2005 07:37

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.

archy 18.08.2005 08:49

Didnt even know that skill effect existed..
Does it? or are you just making shit up now, im at work so cant try it :-)

tespio 18.08.2005 10:36

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
So does p_create_item exists? :)

archy 18.08.2005 11:47

I dont think it does, your reference is the ability to create items of level 1.
Not create item id 1

dVampire 18.08.2005 13:08

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


archy 18.08.2005 13:27

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.

tespio 18.08.2005 14:39

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.

archy 18.08.2005 15:50

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.


All times are GMT. The time now is 15:55.