Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 04.09.2005, 11:43   #26
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

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
Phantom2005 is offline  
Old 04.09.2005, 11:51   #27
SOnick
Архивный участник
 
Join Date: Feb 2005
Posts: 177
Default

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
SOnick is offline  
Old 04.09.2005, 11:59   #28
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

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
Phantom2005 is offline  
Old 04.09.2005, 12:06   #29
SOnick
Архивный участник
 
Join Date: Feb 2005
Posts: 177
Default

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.
SOnick is offline  
Old 04.09.2005, 12:07   #30
Eliot
Архивный участник
 
Join Date: Mar 2005
Posts: 368
Default

My L2NPC prints : Blue_eye_c : Doesn't have parameter DDMagic. Cannot set. But im sure it's there. Whats wrong ?
Eliot is offline  
Old 04.09.2005, 12:08   #31
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

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

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
SOnick is offline  
Old 04.09.2005, 13:26   #33
djvogans
Архивный участник
 
Join Date: Apr 2005
Posts: 306
Default

hamidouch .. yes it does .... i'll pm you l8r
djvogans is offline  
Old 04.09.2005, 20:01   #34
robran
Архивный участник
 
Join Date: Feb 2005
Posts: 36
Default

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



why?

[working on C3]
robran is offline  
Old 04.09.2005, 20:09   #35
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

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
Phantom2005 is offline  
Old 05.09.2005, 05:12   #36
SOnick
Архивный участник
 
Join Date: Feb 2005
Posts: 177
Default

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

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

i am disappointed
SOnick is offline  
Old 05.09.2005, 08:20   #37
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

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
Phantom2005 is offline  
Old 05.09.2005, 09:04   #38
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

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 is offline  
Old 05.09.2005, 09:07   #39
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

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 is offline  
Old 05.09.2005, 09:14   #40
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

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 is offline  
Old 05.09.2005, 09:57   #41
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

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

rodier is offline  
Old 05.09.2005, 15:07   #42
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

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)
Phantom2005 is offline  
Old 05.09.2005, 16:30   #43
djvogans
Архивный участник
 
Join Date: Apr 2005
Posts: 306
Default

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
djvogans is offline  
Old 05.09.2005, 19:33   #44
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

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
rodier is offline  
Old 06.09.2005, 15:01   #45
djvogans
Архивный участник
 
Join Date: Apr 2005
Posts: 306
Default

u have in ai DDMAGIC= ....
that will replace default DDmagic from AI
djvogans is offline  
Old 06.09.2005, 20:44   #46
SOnick
Архивный участник
 
Join Date: Feb 2005
Posts: 177
Default

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 is offline  
Old 15.09.2005, 05:36   #47
SOnick
Архивный участник
 
Join Date: Feb 2005
Posts: 177
Default

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?
SOnick is offline  
Old 15.09.2005, 11:12   #48
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

I agree the damn unicorn is overpowered. Anyone knows how to change the ammount of XP he takes?
Metalmurphy is offline  
Old 16.09.2005, 14:35   #49
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

change magic attack of the unicorn merrow.... and edit the hydro scre skill a bit
Phantom2005 is offline  
Old 16.09.2005, 14:35   #50
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

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:
MoSs 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 17:17.