PDA

View Full Version : Problem with NPC service. I did something (+)


kin
12.09.2006, 11:35
don't remember what, but now in NPC screen I see the errors. Here an example:
Npc[requiem_priest] doesn't have parameter [DDMagic2]. Failed to set
Where is this error? Which file should be edited?

SoaPy
12.09.2006, 14:40
"Lineage 2 Server Modifications ONLY! Basically if IT isn't a MOD or a Tutorial do not even think about starting a thread here."

pd : fix DDMagic2 parameter

kin
12.09.2006, 15:03
Where that parameter located?

If this topik not related to server modifications, can someone just move it to another location please

hel
12.09.2006, 18:27
Where that parameter located?
Ai.obj.
Look in class, where it bugged.
But I really don't know how to fix it.

kin
14.09.2006, 14:52
So, more widly. I found this line in Npcdata.txt
npc_begin warrior 1599 [requiem_priest] level=71 acquire_exp_rate=20xx.xx76 acquire_sp=1023200 unsowing=0 clan={@necro_clan} ignore_clan_list={} clan_help_range=300 slot_chest=[] slot_rhand=[bone_staff] slot_lhand=[] shield_defense_rate=0 shield_defense=0 skill_list={@s_race_humanoid;@s_npc_high_level_2} npc_ai={[requiem_priest];{[MoveAroundSocial]=140};{[MoveAroundSocial1]=140};{[MoveAroundSocial2]=140};{[Privates]=[requiem_behemoth_3:requiem_behemoth_3:1:0sec;requi em_behemoth_4:requiem_behemoth_4:1:0sec]};{[ClearCorpse]=@s_npc_corpse_remove};{[SummonPrivate]=@restless_rebel};{[SummonPrivateAI]=[restless_rebel]};{[W_LongRangeDDMagic]=@s_npc_hydro_blast_magic_only7};{[W_ShortRangeDDMagic]=@s_npc_fire_burn_magic_only7};{[DDMagic1]=@s_npc_death_link7};{[DDMagic2]=@s_npc_corpse_burst7}} category={} race=humanoid sex=male undying=0 can_be_attacked=1 corpse_time=7 no_sleep_mode=0 agro_range=300 ground_high={185;0;0} ground_low={19;0;0} exp=474207984 org_hp=24xx.xx7 org_hp_regen=8.5 org_mp=1377.8 org_mp_regen=3 ......

And this in Skilldata.txt
skill_begin skill_name = [s_npc_corpse_burst7] /* [NPC AE - Corpse Burst] */ skill_id = 4138 level = 7 operate_type = A1 magic_level = 70 effect = {{i_consume_body};{i_m_attack;51}} operate_cond = {{consume_body}} is_magic = 1 mp_consume1 = 20 mp_consume2 = 78 cast_range = 900 effective_range = 1400 skill_hit_time = 4 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 8 attribute = attr_fire effect_point = -100 target_type = npc_body affect_scope = range affect_range = 200 affect_object = not_friend affect_limit = {0;0} next_action = none ride_state = {@ride_none;@ride_wind;@ride_star;@ride_twilight} skill_end

So, everything looks fine, but still errors :(

FidoW
14.09.2006, 16:00
npc_ai={[requiem_priest]; ... ;{[DDMagic2]=@s_npc_corpse_burst7}}

class 1 requiem_priest : party_leader_ag_wd_corpse_necro

class 1 party_leader_ag_wd_corpse_necro : party_leader_wd_corpse_necro

class 1 party_leader_wd_corpse_necro : party_leader_wizard_dd2
parameter_define_begin
int SummonPrivate 1000130
string SummonPrivateAI "warrior"
int ClearCorpse 1024257
int DDMagic1 1024257
int DDmagic2 1024257
parameter_define_end

kin
14.09.2006, 16:39
That what I have in AI. I'm not a specialist in AI. What's wrong with it?

FidoW
14.09.2006, 17:27
Im not a "specialist" either

Only look your eyes on bold words.

kin
14.09.2006, 18:18
Holly......
Thanks man! I'm very stupid :)

kin
14.09.2006, 21:36
Maybe you can explaine also these errors?
I checked, it's written correctly in AI:

09/14/2006 23:19:xx.xx0, Npc[varka_silenos_archmage] doesn't have parameter[SelfRangeDDMagic]. failed to set
09/14/2006 23:19:xx.xx0, Npc[varka_silenos_officer] doesn't have parameter[SelfRangeDDMagic]. failed to set
09/14/2006 23:19:xx.xx0, Npc[varka_soothsayer] doesn't have parameter[DeBuff]. failed to set
09/14/2006 23:19:xx.xx5, Npc[lavasaurus] doesn't have parameter[SpeedBonus]. failed to set
09/14/2006 23:19:xx.xx5, Npc[lavasaurus] doesn't have parameter[SpiritShot]. failed to set
And there are some ohers but similar

kin
14.09.2006, 21:51
Maybe I'm right. As you exlained before

09/14/2006 23:19:xx.xx5, Npc[lavasaurus] doesn't have parameter[HealBonus]. failed to set
Looking through AI I found

class 1 lavasaurus : warrior_ag_hold_ddmagic

class 1 warrior_ag_hold_ddmagic : warrior_hold_ddmagic

class 1 warrior_hold_ddmagic : default_npc
parameter_define_begin
float Attack_DecayRatio 6.600000
float UseSkill_DecayRatio 660xx.xx0000
float Attack_BoostValue 3xx.xx0000
float UseSkill_BoostValue 1000xx.xx0000
int DDMagic 1024257
int SkillRange 500
parameter_define_end

That means there is no "HealBonus" parameter described and that gives an error. Am I correct? If yes, where can I find it?

ag1584
19.09.2006, 06:37
Maybe I'm right. As you exlained before

09/14/2006 23:19:xx.xx5, Npc[lavasaurus] doesn't have parameter[HealBonus]. failed to set
Looking through AI I found

class 1 lavasaurus : warrior_ag_hold_ddmagic

class 1 warrior_ag_hold_ddmagic : warrior_hold_ddmagic

class 1 warrior_hold_ddmagic : default_npc
parameter_define_begin
float Attack_DecayRatio 6.600000
float UseSkill_DecayRatio 660xx.xx0000
float Attack_BoostValue 3xx.xx0000
float UseSkill_BoostValue 1000xx.xx0000
int DDMagic 1024257
int SkillRange 500
parameter_define_end

That means there is no "HealBonus" parameter described and that gives an error. Am I correct? If yes, where can I find it?


class 1 lavasaurus : warrior_ag_hold_ddmagic

class 1 warrior_ag_hold_ddmagic : warrior_hold_ddmagic

class 1 warrior_hold_ddmagic : monster_parameter

class 1 monster_parameter : default_npc
parameter_define_begin
int AttackLowLevel 0
int RunAway 1
int SetCurse 0
int AttackLowHP 0
int HelpHeroSilhouette 0
string HelpHeroAI "warrior_hero"
int SetAggressiveTime -1
int HalfAggressive 0
int RandomAggressive 0
int SetHateGroup -1
int SetHateGroupRatio 0
int SetHateOccupation -1
int SetHateOccupationRatio 0
int SetHateRace -1
int SetHateRaceRatio 0
int IsTransform 0
int step1 1000130
int step2 1000006
int step3 1000853
int DaggerBackAttack 0
int IsVs 0
int SpecialSkill 0
int MoveAroundSocial 0
int MoveAroundSocial1 0
int MoveAroundSocial2 0
int ShoutMsg1 0
int ShoutMsg2 0
int ShoutMsg3 0
int ShoutMsg4 0
int SSQLoserTeleport 0
int SSQTelPosX 0
int SSQTelPosY 0
int SSQTelPosZ 0
int SwapPosition 0
int FriendShip 0
int DungeonType 0
int DungeonTypeAI 0
string DungeonTypePrivate ""
int ShoutTarget 0
int AcceptShoutTarget 0
int SelfExplosion 0
int FriendShip1 0
int FriendShip2 0
int FriendShip3 0
int FriendShip4 0
int FriendShip5 0
int DungeonType 0
int DungeonTypeAI 0
string DungeonTypePrivate ""
int SoulShot 0
int SoulShotRate 0
int SpiritShot 0
int SpiritShotRate 0
int SpeedBonus 0
int HealBonus 0
int CreviceOfDiminsion 0
parameter_define_end

hhk31257
19.09.2006, 08:53
class 1 party_leader_wd_corpse_necro : party_leader_wizard_dd2
parameter_define_begin
int SummonPrivate 1000130
string SummonPrivateAI "warrior"
int ClearCorpse 1024257
int DDMagic1 1024257
int DDmagic2 1024257
parameter_define_end

do you work in uncompiled code? or do you have a decompiler?
a decompiler would rock...

kin
19.09.2006, 10:52
Do you have that decompiler?

ag1584 As I understand, I should redirect all faulty monsters in AI from "default_npc" to "monster_parameter", correct?

ag1584
19.09.2006, 11:24
ag1584 As I understand, I should redirect all faulty monsters in AI from "default_npc" to "monster_parameter", correct?

only those which this require according to npcdata.txt, in my AI on class monster_.parameter depend these classes
class 1 warrior_parameter
class 1 wizard_parameter
class 1 warrior_hero
class 1 warrior_hold_ddmagic
class 1 lv3_monster

kin
19.09.2006, 11:26
Many monsters have parameter "SelfRangeDDMagic" For example:
09/18/2006 14:43:xx.xx6, Npc[destroyer_mercenary] doesn't have parameter[SelfRangeDDMagic]. failed to set

class 1 ketra_orc_praefect : warrior_ag_berserker_physicalspecial_stone

class 1 warrior_ag_berserker_physicalspecial_stone : warrior_berserker_physicalspecial_stone

class 1 warrior_berserker_physicalspecial_stone : warrior_berserker_physicalspecial

class 1 warrior_berserker_physicalspecial : warrior_berserker

class 1 warrior_berserker : warrior

class 1 warrior : warrior_parameter

class 1 warrior_parameter : monster_parameter

It goes to Monster_parameter, but there is no info about "SelfRangeDDMagic"

In NpcData I have
npc_begin warrior 1340 [ketra_orc_praefect] level=84 acquire_exp_rate=23xx.xx56 acquire_sp=1975200 unsowing=0 clan={@ketra_orc_clan} ignore_clan_list={} clan_help_range=300 slot_chest=[] slot_rhand=[tallum_blade] slot_lhand=[shield_of_ketraorc] shield_defense_rate=20 shield_defense=1xx.xx3615 skill_list={@s_race_humanoid;@s_d2_monster;@s_npc_ critical_power;@s_npc_critical_chance;@s_npc_high_ level_8} npc_ai={[ketra_orc_praefect];{[MoveAroundSocial]=110};{[MoveAroundSocial1]=54};{[MoveAroundSocial2]=110};{[FriendShip1]=@q_ketra_friendship_1};{[FriendShip2]=@q_ketra_friendship_2};{[FriendShip3]=@q_ketra_friendship_3};{[FriendShip4]=@q_ketra_friendship_4};{[FriendShip5]=@q_ketra_friendship_5};{[MaxRoarCount]=1};{[SoulShot]=100};{[SoulShotRate]=60};{[Fury]=@s_rage_might};{[SelfRangeDDMagic]=@s_npc_blazing_circle9}
and there is the skill for "s_npc_blazing_circle9".
I can't understand where I should put parameter SelfRangeDDMagic
Could you please explain?

kin
19.09.2006, 11:31
only those which this require according to npcdata.txt, in my AI on class monster_.parameter depend these classes
class 1 warrior_parameter
class 1 wizard_parameter
class 1 warrior_hero
class 1 warrior_hold_ddmagic
class 1 lv3_monster

Just checked. NOW I have the same as yours. I missed only one you told me. THANK YOU!

Could you look for SelfRangeDDMagic in my previous post?

ag1584
19.09.2006, 11:46
Just checked. NOW I have the same as yours. I missed only one you told me. THANK YOU!

Could you look for SelfRangeDDMagic in my previous post?

09/14/2006 23:19:xx.xx0, Npc[varka_silenos_archmage] doesn't have parameter[SelfRangeDDMagic]. failed to set
09/14/2006 23:19:xx.xx0, Npc[varka_silenos_officer] doesn't have parameter[SelfRangeDDMagic]. failed to set


npc_begin warrior 1365 [varka_silenos_archmage] npc_ai={[varka_silenos_archmage];....;{[SelfRangeDDMagic]=@s_npc_burn9};{[PhysicalSpecial]=@s_npc_sonic_blaster9};{[DeBuff]=@s_npc_shackle5};{[DeBuff1]=@s_b_k_stone}}

class 1 varka_silenos_archmage : warrior_ag_berserker_physicalspecial_stone

class 1 warrior_ag_berserker_physicalspecial_stone : warrior_berserker_physicalspecial_stone
parameter_define_begin
int SelfRangeDDMagic 1032449
parameter_define_end

class 1 warrior_berserker_physicalspecial_stone : warrior_berserker_physicalspecial
parameter_define_begin
int DeBuff1 1155841
parameter_define_end

class 1 warrior_berserker_physicalspecial : warrior_berserker
parameter_define_begin
int PhysicalSpecial 1032193
int SelfRangePhysicalSpecial 1068034
int DeBuff 1033473
parameter_define_end

kin
19.09.2006, 12:02
Thanks! Will check all of it right now!!!!!

kin
19.09.2006, 12:09
I have all the same, but missed
class 1 warrior_ag_berserker_physicalspecial_stone : warrior_berserker_physicalspecial_stone
parameter_define_begin
int SelfRangeDDMagic 1032449
parameter_define_end

Hope the last one
09/18/2006 14:44:xx.xx9, Npc[r58_invader_teleport] doesn't have parameter[CreviceOfDiminsion]. failed to set

class 1 r58_invader_teleport : teleport_dungeon_manager_npc

class 1 teleport_dungeon_manager_npc : citizen
And there is no this parameter even in NpcData.

nick0179
25.09.2006, 03:44
Im not a "specialist" either

Only look your eyes on bold words.

hmm....what does this mean?
kin....if u've fixed it....can u give me some detail about it?

kin
25.09.2006, 08:30
Look at it
npc_ai={[requiem_priest]; ... ;{[DDMagic2]=@s_npc_corpse_burst7}}

class 1 requiem_priest : party_leader_ag_wd_corpse_necro

class 1 party_leader_ag_wd_corpse_necro : party_leader_wd_corpse_necro

class 1 party_leader_wd_corpse_necro : party_leader_wizard_dd2
parameter_define_begin
int SummonPrivate 1000130
string SummonPrivateAI "warrior"
int ClearCorpse 1024257
int DDMagic1 1024257
int DDmagic2 1024257
parameter_define_end
Understood? :)

nick0179
26.09.2006, 03:21
damn it...
.....now i got it..
thanx.~friend