Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [Share] Unicorn Merrow, Hydro Screw (https://postpacific.mmorpg-game.online/showthread.php?t=1708)

Phantom2005 04.09.2005 11:43

ok now first of all your skillgrp doesn't include the skill id "4137"
if you could send me ur skillname.txt or skillname-e.txt i don't know which file c2 uses anymore then i can find out for you which skill "Hydro Screw" is in C2

SOnick 04.09.2005 11:51

Quote:

Originally Posted by Phantom2005
ok now first of all your skillgrp doesn't include the skill id "4137"
if you could send me ur skillname.txt or skillname-e.txt i don't know which file c2 uses anymore then i can find out for you which skill "Hydro Screw" is in C2

ok
take it

Phantom2005 04.09.2005 11:59

Hm k try the guide again i think it should work, What actually happens if you press the "Hydro Screw" button? nothing? and does it do damage? if it does nothing be sure you did add things to your ai.obj, and changed blue_eye_a : summon_heal to blue_eye_a : summon_hydroscrew

SOnick 04.09.2005 12:06

it does nothing at all - all it can do - just stright attack on target with it`s horn
my ai.obj part is the same like yours.

Eliot 04.09.2005 12:07

My L2NPC prints : Blue_eye_c : Doesn't have parameter DDMagic. Cannot set. But im sure it's there. Whats wrong ?

hamidouch 04.09.2005 12:08

Quote:

Originally Posted by djvogans
Quote:

Originally Posted by hamidouch

only?
dont have to change ddmagic to buff?
and self targeting


on npcdata u have ai =... DDMagic=
look at cat_the_cat :)
i made kai use self_shield .. one small problemm ... i can't see the effect when kai use the skill .. ( client side i guess)

hum at least does it affect his stats?
cause when i use self damage for kai, it just stop moving, but no stats change neither

SOnick 04.09.2005 12:14

Quote:

Originally Posted by Eliot
My L2NPC prints : Blue_eye_c : Doesn't have parameter DDMagic. Cannot set. But im sure it's there. Whats wrong ?

read topic carefully pls - solution for this error already posted - you must add string to categorydata and must add strings to skill_pch.txt and to skill_pch2.txt

djvogans 04.09.2005 13:26

hamidouch .. yes it does .... i'll pm you l8r

robran 04.09.2005 20:01

my -categorydata- skill_pch- -skill_pch2- are work but come error on l2npc


http://img324.imageshack.us/img324/8490/l2npc18iy.jpg
why?

[working on C3]

Phantom2005 04.09.2005 20:09

you didn't add the summon_hydroscrew class to your ai.obj 4th thing you have to do in my guide...

Quote:

Originally Posted by Phantom2005
[4]Add these lines to your ai.obj:
Code:

class summon_hydroscrew : default_npc
parameter_define_begin
        int DDMagic 300289
parameter_define_end
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
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
                "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_index
        push_const 384
        add
        fetch_i
        assign
        shift_sp -1
        push_event        //  i0
        push_const 192
        add
        fetch_i
        push_const 0
        less_equal
        branch_false L2101
L2100
        exit_handler
L2101
        push_event        //  c0
        push_const 272
        add
        push_reg_sp
        fetch_i
        shift_sp 1
        push_event        //  i0
        push_const 192
        add
        fetch_i
        func_call 30        //  func[GetCreatureFromIndex]
        shift_sp -1
        assign
        shift_sp -1
        push_event        //  c0
        push_const 272
        add
        fetch_i
        branch_false L2103
L2102
        shift_sp 1
        push_parameter DDMagic
        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 L2104
        shift_sp 1
        push_parameter DDMagic
        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 L2104
        shift_sp 1
        push_parameter DDMagic
        func_call 160        //  func[Skill_InReuseDelay]
        shift_sp -1
        push_const 0
        equal
        and
L2104
        branch_false L2106
L2105
        shift_sp 1
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  master
        push_const 2404
        add
        fetch_i        //  target_id
        push_const 388
        add
        fetch_i
        push_parameter DDMagic
        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
L2106
L2103
handler_end

class_end



SOnick 05.09.2005 05:12

Hmm........ today my NPC server got this error again

NPC [blue_eye_b] doesen`t have parameter [DDmagic]. failed to set

i am disappointed

Phantom2005 05.09.2005 08:20

sure you added summon_hydroscrew function?? sure you changed blue_eye_a : summon_heal - blue_eye_n : summon_heal to blue_eye_a : summon_hydroscrew - blue_eye_n : summon_hydroscrew, and make sure they all are DDMagic and not DDmagic

rodier 05.09.2005 09:04

I got that error too

09/05/2005 11:00:xx.xx8, Can't find summon_hydroscrew class, super class of blue_eye_a class.

- I added all your code. I had working Unicorn Merrow - but with another skill to cast and without AI - no problem

with your ai .. there is that errors..

rodier 05.09.2005 09:07

I think there must be something that you miss to write here..
maybe there are more code to ai.obj not only
class summon_hydroscrew : default_npc
and
class blue_eye_a : summon_hydroscrew
class_end
.................................n

rodier 05.09.2005 09:14

OK I got it to working:
put this to ai.obj instead of the another code

Code:

class blue_eye_a : summon_magicalattack
class_end

class blue_eye_b : summon_magicalattack
class_end

class blue_eye_c : summon_magicalattack
class_end

class blue_eye_d : summon_magicalattack
class_end

class blue_eye_e : summon_magicalattack
class_end

class blue_eye_f : summon_magicalattack
class_end

class blue_eye_g : summon_magicalattack
class_end

class blue_eye_h : summon_magicalattack
class_end

class blue_eye_i : summon_magicalattack
class_end

class blue_eye_j : summon_magicalattack
class_end

class blue_eye_k : summon_magicalattack
class_end

class blue_eye_l : summon_magicalattack
class_end

class blue_eye_m : summon_magicalattack
class_end

class blue_eye_n : summon_magicalattack
class_end



This code u must have in ai.obj (I think u have it because its classical C1 mechanic golem AI)

Code:

class summon_magicalattack : default_npc
parameter_define_begin
        int DDMagic 1024257
parameter_define_end
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
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
                "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_index
        push_const 384
        add
        fetch_i
        assign
        shift_sp -1
        push_event        //  i0
        push_const 192
        add
        fetch_i
        push_const 0
        less_equal
        branch_false L2101
L2100
        exit_handler
L2101
        push_event        //  c0
        push_const 272
        add
        push_reg_sp
        fetch_i
        shift_sp 1
        push_event        //  i0
        push_const 192
        add
        fetch_i
        func_call 30        //  func[GetCreatureFromIndex]
        shift_sp -1
        assign
        shift_sp -1
        push_event        //  c0
        push_const 272
        add
        fetch_i
        branch_false L2103
L2102
        shift_sp 1
        push_parameter DDMagic
        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 L2104
        shift_sp 1
        push_parameter DDMagic
        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 L2104
        shift_sp 1
        push_parameter DDMagic
        func_call 160        //  func[Skill_InReuseDelay]
        shift_sp -1
        push_const 0
        equal
        and
L2104
        branch_false L2106
L2105
        shift_sp 1
        push_event        //  myself
        push_const 28
        add
        fetch_i        //  master
        push_const 2404
        add
        fetch_i        //  target_id
        push_const 388
        add
        fetch_i
        push_parameter DDMagic
        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
L2106
L2103
handler_end

class_end

other code are same as posted above .. npcdata..etc

rodier 05.09.2005 09:57

..but sometimes I can't see effect of that spell.. must be something about line of sight.. range of sight

http://lineage2.cz/l2/um.jpg

Phantom2005 05.09.2005 15:07

that one can be used as well yes

basically i you only need to add a whole new class for soulless which i am busy with now, because he uses 2 diff skills(i got kai the cat working, which i will post later on today)

djvogans 05.09.2005 16:30

Quote:

Originally Posted by Eliot
My L2NPC prints : Blue_eye_c : Doesn't have parameter DDMagic. Cannot set. But im sure it's there. Whats wrong ?

Parameter has do be defined in ai.obj ... DDMagic is set there as an integer ... ex:

Code:

parameter_define_begin
        int DDMagic 326913
parameter_define_end

where "326913" is the skill .. you can get that from skill_pch.txt

rodier 05.09.2005 19:33

hmm that is weird.. because in mechanic golem AI is another DDMagic that hydroscrew and its still working without ANY error..

why? why if in AI is spell A, and npcdata have spell B .. its all working without problem

djvogans 06.09.2005 15:01

u have in ai DDMAGIC= ....
that will replace default DDmagic from AI

SOnick 06.09.2005 20:44

Quote:

Originally Posted by rodier
OK I got it to working:
other code are same as posted above .. npcdata..etc

At last it works, thanx to you Phantom2005 and to you rodier too.

SOnick 15.09.2005 05:36

Trouble with unicorn merrow: on off servers it is a very strong warrior - but it takes up to 90% of gained expirience... Our Unicorn takes almost nothing, players are glad to have instant killing mashine for levelup, but is it SO good? Anyone fixed this?

Metalmurphy 15.09.2005 11:12

I agree the damn unicorn is overpowered. Anyone knows how to change the ammount of XP he takes?

Phantom2005 16.09.2005 14:35

change magic attack of the unicorn merrow.... and edit the hydro scre skill a bit

MoSs 16.09.2005 14:35

Ok I have big problem and cant find out what the hell is wrong :( :(

I have done everything the topics say:
ai : class summon_hydroscrew : default_npc ...
and all the: class blue_eye_a-n : summon_hydroscrew

edited npc data and made sure that:

all the blue_eye_a-n have: npc_ai={[blue_eye_a-n];{[DDMagic]=@s_boss_hydro_screw1}}

made sure that skilldata had the correct s_boss_hydro_screw* skills
skill_pch/pch2 also

i also made sure the summon unicorn merrow skill actually summons the blue_eye_a-n

categorydata also correct

I summon the Unicorn Merrow (lvl 76) just fine and the special skill IS THE DAMN MASTER RECHARGE! How is that possible? plz someone help me! WHAT the hell am I doing wrong?
:evil: :evil:


All times are GMT. The time now is 16:32.