Dragon Valley Mobs with wrong stats

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Hackenger
Posts: 4
Joined: Tue Jul 21, 2015 3:10 am

Dragon Valley Mobs with wrong stats

Post by Hackenger »

Hi, if y look a NPC from dragon Valley.

the stats are for example
Image

however the xml NPC shows the right stats (patack, matack, etc)

Code: Select all

<npc id="22841" level="85" type="L2Monster" name="Maluk Princess">
		<!-- Confirmed CT2.5 -->
		<parameters>
			<param name="IsAggressive" value="1" />
			<skill name="Skill01_ID" id="6749" level="1" /> <!-- Death Strike -->
			<skill name="Skill02_ID" id="6756" level="1" /> <!-- Death Talon -->
		</parameters>
		<race>DEMONIC</race>
		<sex>FEMALE</sex>
		<acquire expRate="46.6028394878893" sp="33738" />
		<stats str="40" int="21" dex="30" wit="20" con="43" men="20">
			<vitals hp="18605.9337557173" hpRegen="187.410040552143" mp="1846.8" mpRegen="3" />
			<attack physical="10327.681831868" magical="7052.46788014386" random="30" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
			<defence physical="578.861024" magical="635.378064" />
			<attribute>
				<attack type="UNHOLY" value="250" />
				<defence fire="220" water="220" wind="220" earth="220" holy="170" dark="250" default="230" />
			</attribute>
			<speed>
				<walk ground="45" />
				<run ground="180" />
			</speed>
		</stats>
		<status undying="false" canBeSown="true" />
		<skill_list>
			<skill id="4408" level="10" /> <!--HP Increase (2x) -->
			<skill id="4409" level="1" /> <!--MP Increase (1x) -->
			<skill id="4410" level="13" /> <!--Slightly Strong P. Atk. -->
			<skill id="4411" level="16" /> <!--Very Strong M. Atk. -->
			<skill id="4412" level="11" /> <!--Average P. Def. -->
			<skill id="4413" level="6" /> <!--Very Weak M. Def. -->
			<skill id="4414" level="2" /> <!--Standard Type -->
			<skill id="4415" level="3" /> <!--One-handed Sword -->
			<skill id="4416" level="9" /> <!--Demons -->
			<skill id="5467" level="1" /> <!--Dark Attacks -->
			<skill id="6749" level="1" /> <!--Death Strike -->
			<skill id="6756" level="1" /> <!--Death Talon -->
		</skill_list>
		<ex_crt_effect>false</ex_crt_effect>
		<s_npc_prop_hp_rate>2</s_npc_prop_hp_rate>
		<ai type="BALANCED" aggroRange="500" clanHelpRange="300">
			<clan_list>
				<clan>DRAGON_IN</clan>
			</clan_list>
		</ai>
		<drop_lists>
			<death>
				<group chance="66">
					<item id="57" min="14790" max="34502" chance="100" /> <!-- Adena -->
				</group>
				<group chance="0.017100000753998756">
					<item id="14107" min="1" max="1" chance="38.4626" /> <!-- Sealed Vesper Tunic -->
					<item id="14115" min="1" max="1" chance="61.5374" /> <!-- Sealed Vesper Stockings -->
				</group>
				<group chance="47.299800872802734">
					<item id="1879" min="1" max="1" chance="57.9163" /> <!-- Cokes -->
					<item id="1885" min="1" max="1" chance="28.9582" /> <!-- High-Grade Suede -->
					<item id="9628" min="1" max="1" chance="2.7255" /> <!-- Leonard -->
					<item id="9630" min="1" max="1" chance="1.8289" /> <!-- Orichalcum -->
					<item id="9629" min="1" max="1" chance="1.5109" /> <!-- Adamantine -->
					<item id="14166" min="1" max="1" chance="1.6787" /> <!-- Life Stone - Level 84 -->
					<item id="14167" min="1" max="1" chance="0.4192" /> <!-- Mid-Grade Life Stone - Level 84 -->
					<item id="14168" min="1" max="1" chance="0.0419" /> <!-- High-Grade Life Stone - Level 84 -->
					<item id="14169" min="1" max="1" chance="0.0084" /> <!-- Top-Grade Life Stone - Level 84 -->
					<item id="959" min="1" max="1" chance="0.0139" /> <!-- Scroll: Enchant Weapon (S-Grade) -->
					<item id="9549" min="1" max="1" chance="2.78" /> <!-- Wind Stone -->
					<item id="15665" min="1" max="1" chance="0.8244" /> <!-- Sealed Vesper Tunic Piece -->
					<item id="15673" min="1" max="1" chance="1.2706" /> <!-- Sealed Vesper Stockings Piece -->
					<item id="9627" min="1" max="1" chance="0.0231" /> <!-- Giant's Codex - Mastery -->
				</group>
			</death>
			<corpse>
				<item id="4042" min="1" max="1" chance="38.9273" /> <!-- Enria -->
				<item id="9629" min="1" max="1" chance="10.155" /> <!-- Adamantine -->
				<item id="15644" min="1" max="1" chance="1.3932" /> <!-- Vesper Thrower Piece -->
				<item id="15637" min="1" max="1" chance="1.3874" /> <!-- Vesper Shaper Piece -->
				<item id="15639" min="1" max="1" chance="1.3915" /> <!-- Vesper Stormer Piece -->
				<item id="13459" min="1" max="1" chance="0.0033" /> <!-- Vesper Buster -->
			</corpse>
		</drop_lists>
		<collision>
			<radius normal="18" />
			<height normal="41" />
		</collision>
	</npc>
any help?
Sorry if a configuration error I ignore
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: Dragon Valley Mobs with wrong stats

Post by Sdw »

Those XML stats are base stats, which means they are multiplied by buff and STR, DEX etc bonus.
User avatar
Avanael92
Advanced User
Advanced User
Posts: 189
Joined: Thu Aug 07, 2014 5:26 pm
Location: Germany

Re: Dragon Valley Mobs with wrong stats

Post by Avanael92 »

As said before, they're calculated by basestats and buffs.

Here you can learn how stats work: viewtopic.php?t=30550 :)

FuncPatkMod.java

Code: Select all

@Override
	public double calc(L2Character effector, L2Character effected, Skill skill, double initVal)
	{
		return initVal * BaseStats.STR.calcBonus(effector) * effector.getLevelMod();
	}
initVal = the base value of Patk
BaseStats.STR.calcBonus(effector) = bonus value of STR (see inside game/data/stats/statBonus.xml)
effector.getLevelMod() = ((level + 89) / 100)

Afterwards you need to add passive / active (if they're active though) buffs, but pay attention to orders, whether to calculate add or mul first. In your case the only noticeable passive buff is:

Code: Select all

<skill id="4410" level="13" /> <!--Slightly Strong P. Atk. -->
Find out the Patk Value for Level 13 and multiply it. As a result, I got 26092,68.. It's close to the ingame value anyway :kappa:
KARAKAN
Posts: 74
Joined: Thu May 04, 2006 11:31 am

Re: Dragon Valley Mobs with wrong stats

Post by KARAKAN »

Is there a way to limit those stat bonuses only to L2Playable and L2Summons ?

Raid Boss with 1999 cast speed is not really retail like. ^^
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: Dragon Valley Mobs with wrong stats

Post by Sdw »

That's a bad idea. It just means npc have either wrong base stats, wrong stats, or wrong skills applied.
KARAKAN
Posts: 74
Joined: Thu May 04, 2006 11:31 am

Re: Dragon Valley Mobs with wrong stats

Post by KARAKAN »

That's a bad idea. It just means npc have either wrong base stats, wrong stats, or wrong skills applied.
That would mean everything has wrong stats in the xml tables.
Which is not the case.
Only the Raids + Monsters.

Problem would be solved by removing the stat calc bonus for Raids/GrandBosses and Monsters.


Offtopic : Why was it commited anyways, when its was known to screw up monster stats ?


Regards
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: Dragon Valley Mobs with wrong stats

Post by Sdw »

Retail npc data is up to Freya. and revamped dragon valley is H5.

You know how people bitch not get shit done with a "it's better to have something than nothing".

Well here you go.

What's that mob with 1999 ? If it's the one from initial post, it's not normal yeah, something got screwed.
KARAKAN
Posts: 74
Joined: Thu May 04, 2006 11:31 am

Re: Dragon Valley Mobs with wrong stats

Post by KARAKAN »

Retail npc data is up to Freya. and revamped dragon valley is H5.
I was refering to wrong stat bonus calculations (core side).
You know how people bitch not get shit done with a "it's better to have something than nothing".
People will always bitch about stuff. Even if everything is working as intended. 8)
But here its clearly not working retail like.
Go check the ingame stats of monsters.
In the past nothing that wasnt 100% retail like had a chance to be commited.
What's that mob with 1999 ? If it's the one from initial post, it's not normal yeah, something got screwed.
Its not one single monster.
It effects all raids/grand bosses cause of -> WIT 70.


Regards
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: Dragon Valley Mobs with wrong stats

Post by Sdw »

Most stat calc in l2j are broken anyway, not a surprise
KARAKAN
Posts: 74
Joined: Thu May 04, 2006 11:31 am

Re: Dragon Valley Mobs with wrong stats

Post by KARAKAN »

This is a game breaking bug in L2j.
Wondering why noone cares, except you and me.
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: Dragon Valley Mobs with wrong stats

Post by Sdw »

3 people have contributed since l2j went black for 3 months, and as you can see their time is limited. L2J need fresh blood, hopefully with skills.
Notogoto
Posts: 2
Joined: Fri Jun 16, 2017 12:17 pm

Re: Dragon Valley Mobs with wrong stats

Post by Notogoto »

Looks like an error with the decimal point by one.

example:

Code: Select all

<npc id="22823" level="83" type="L2Monster" name="Drakos Assassin">
		<!-- Confirmed CT2.5 -->
		<parameters>
			<param name="IsAggressive" value="1" />
			<skill name="Skill01_ID" id="6859" level="1" /> <!-- Power Strike -->
		</parameters>
		<race>UNDEAD</race>
		<sex>MALE</sex>
		<equipment rhand="13984" /> <!-- rhand: Exclusive to Monsters (Death Slayer_1hs) -->
		<acquire expRate="42.0155027628587" sp="29772" />
		<stats str="40" int="21" dex="30" wit="20" con="43" men="20">
			<vitals hp="18734.280667127" hpRegen="190.897045965523" mp="1777.4" mpRegen="3" />
			<attack physical="10247.9853769394" magical="6998.04554416799" random="30" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
			<defence physical="566.178304" magical="621.45708" />
			<attribute>
That physical="10247.9853769394" magical="6998.04554416799" damage looks a bit high and more like it was supposed to be 1025 and 700. Bad thing is, no quick fix. And also hp="18734.280667127" hpRegen="190.897045965523" mp="1777.4" mpRegen="3" look way to high considering you only deal about 160-300 dmg per hit. It should drop with about 10 hits. Right now it pretty much one hits any 80+ char with full A/S.
Ingame the stats are multiplied by 2 or 3 and so the actual HP value is about 30000 and attack is about 16000 :lolno: .

Another example:

Code: Select all

	
<npc id="22400" level="83" type="L2Monster" name="Parme's Healer">
		<!-- Confirmed CT2.5 -->
		<parameters>
			<skill name="MagicHeal" id="4065" level="9" /> <!-- NPC Heal -->
		</parameters>
		<race>ELEMENTAL</race>
		<sex>FEMALE</sex>
		<equipment rhand="9639" lhand="9639" /> <!-- rhand: Tears r2 lhand: Tears r2 -->
		<acquire expRate="1.29085061213529" sp="972" />
		<stats str="40" int="21" dex="30" wit="20" con="43" men="20">
			<vitals hp="3835.59060587002" hpRegen="8.5" mp="1777.4" mpRegen="3" />
			<attack physical="1049.15027830518" magical="712.268320424488" random="30" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
			<defence physical="347.741195755814" magical="254.461918604651" />
			<attribute>
				<defence fire="30" water="30" wind="30" earth="30" holy="30" dark="30" default="30" />
			</attribute>
			<speed>
Looks about right for a lvl 83 mob at hp="3835.59060587002" hpRegen="8.5" mp="1777.4" mpRegen="3" and physical="1049.15027830518" magical="712.268320424488".

Quick fix: Not an easy fix
- just change the decimal point and it is bearable. But in this eg. the drako assassin still deals about 3k dmg with a crit, seems a bit high.
- decrease crit from 4 to 1 (still about 600-1000dmg crits against Titan lvl 80 in full A)

As for updates with this project:
if only this hadnt been done in java and with bad dev tools like eclipse. C# and VS would have been the right way to go.

Note:
This error applies to almost all NPCs from H5 including some raids!
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Re: Dragon Valley Mobs with wrong stats

Post by ShinichiYao »

Yes, I notice the mobs in Dragon Valley are very strong. But players even stronger, they just training there using pole dozens targets at a time :shock:
Post Reply