Custom MOB problems

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
johanzo01
Posts: 6
Joined: Mon Feb 09, 2015 1:57 am

Custom MOB problems

Post by johanzo01 »

after a few days searching i canot find a solution to this so here i go:

I make a few customs npc just cloning another NPc's and put it in custom.xml with another id, name, stat, drops, etc.
in example:

Code: Select all

<npc id="1000" level="85" displayId="25263" type="L2Monster" name="TestMob" usingServerSideName="true" title="test">  
		<!-- Confirmed CT2.5 -->
		<race>UNDEAD</race>
		<sex>MALE</sex>
		<acquire expRate="457.014474186851" sp="348153" />
		<stats str="40" int="21" dex="30" wit="20" con="43" men="20">
			<vitals hp="334640.100173302" hpRegen="187.260794107867" mp="1846.8" mpRegen="3" />
			<attack physical="30107.8290646906" magical="16902.33704348132" random="30" critical="4" accuracy="5" attackSpeed="253" 	    type="SWORD" range="40" distance="80" width="120" />
			<defence physical="778.861024" magical="935.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="54" />
				<run ground="180" />
			</speed>
		</stats>
		<status undying="false" noSleepMode="true" canBeSown="true" />
		<skill_list>
			<skill id="4045" level="1" /> <!--Resist Full Magic Attack -->
			<skill id="4408" level="1" /> <!--HP Increase (1x) -->
			<skill id="4409" level="1" /> <!--MP Increase (1x) -->
			<skill id="4410" level="17" /> <!--Very Strong P. Atk. -->
			<skill id="4411" level="13" /> <!--Slightly Strong M. Atk. -->
			<skill id="4412" level="15" /> <!--Strong P. Def. -->
			<skill id="4413" level="5" /> <!--Very Weak M. Def. -->
			<skill id="4414" level="2" /> <!--Standard Type -->
			<skill id="4415" level="3" /> <!--One-handed Sword -->
			<skill id="4416" level="6" /> <!--Humanoids -->
			<skill id="5467" level="1" /> <!--Dark Attacks -->
			<skill id="5598" level="12" /> <!--Flash Resistance -->
			<skill id="6743" level="1" /> <!--Dark Wind -->
		</skill_list>
		<ex_crt_effect>true</ex_crt_effect>
		<ai type="BALANCED" aggroRange="0" clanHelpRange="200" />
		<drop_lists>
			<death>
					<item id="57" min="195846" max="456862" chance="100" /> <!-- Adena -->
			</death>
		</drop_lists>
		<collision>
			<radius normal="20" />
			<height normal="42" />
		</collision>
	</npc>
the field

Code: Select all

displayId="25263"
correspond to

Code: Select all

<npc id="25263" level="67" type="L2RaidBoss" name="Kernon's Faithful Servant Kelone" title="Raid Boss">
The problem is:
When i respawn mobs in game work aparently fine but when i attack him this happen:
(it say 0 custom npc because is reload from admin panel before test)

Code: Select all

[15/02 03:05:15] MinionData: Loaded 128 minions data.
[15/02 03:05:18] NpcData: Loaded 10473 NPCs.
[15/02 03:05:18] NpcData: Loaded 0 Custom NPCs.
[15/02 03:05:25] C:\Compiled Server\game\data\scripts\ai\group_template\RangeGua
rd.java
java.lang.IllegalArgumentException: Integer value required, but not specified: L
ongRangeGuardRate!
        at com.l2jserver.gameserver.model.StatsSet.getInt(StatsSet.java:276)
        at ai.group_template.RangeGuard.onAttack(RangeGuard.java:105)
        at com.l2jserver.gameserver.model.quest.Quest.notifyAttack(Quest.java:38
5)
        at com.l2jserver.gameserver.model.quest.Quest.lambda$addAttackId$29(Ques
t.java:1778)
        at com.l2jserver.gameserver.model.quest.Quest$$Lambda$40/1801444304.acce
pt(Unknown Source)
        at com.l2jserver.gameserver.model.events.listeners.ConsumerEventListener
.executeEvent(ConsumerEventListener.java:46)
        at com.l2jserver.gameserver.model.events.EventDispatcher.notifyToListene
rs(EventDispatcher.java:242)
        at com.l2jserver.gameserver.model.events.EventDispatcher.notifyEventToMu
ltipleContainers(EventDispatcher.java:178)
        at com.l2jserver.gameserver.model.events.EventDispatcher.lambda$notifyEv
entAsync$106(EventDispatcher.java:121)
        at com.l2jserver.gameserver.model.events.EventDispatcher$$Lambda$39/1550
822972.run(Unknown Source)
        at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(Thread
PoolManager.java:92)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
is like the "displayId" take atributes from original mob ignoring all mi settigs for it.
how i can solve this ??
any idea?
anithing will be usefull at this point
johanzo01
Posts: 6
Joined: Mon Feb 09, 2015 1:57 am

Re: Custom MOB problems

Post by johanzo01 »

sorry my friend i find the problem i think.
when im testing classes for balance y change many time mi race and class in my admin char that generate a bug somehow. i just go to database and change it to default lv 1 human race and class then lvup with console that solve the isue in console.
you can just delete this post thanks
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Custom MOB problems

Post by Zoey76 »

Okay, we are glad that you resolved the issue.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Post Reply