We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

[Gracia Final]Instance works like a charm but no mobspawn

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
smakepz
Posts: 8
Joined: Sun Oct 12, 2014 9:37 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

[Gracia Final]Instance works like a charm but no mobspawn

Post by smakepz » Tue Oct 14, 2014 7:32 pm

L2J Server Version: 3265
L2J Datapack Version: 6361

Well I made my new instance today but when the party gets in nothing is spawned.
I made it via java file and not .xml, what should I check?
First of all I wanted to make if 1stwave dies,spawn the 2nd wave.
Also when the 4th wave dies, grand boss appears.
I made these via "stages" (which I guess there is the problem) but if someones knows wheres the mistake.
Can provide the code if needed.
Thanks
*
Does this spawn mobs?

Code: Select all

             addSpawn(MOBSSTAGE2[(MOBSSTAGE2.length)], -182800, 214233, -9531, 0, true, 0, false, world.instanceId);            world.incLiveMobs();            world.incStage(); 

User avatar
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: [Gracia Final]Instance works like a charm but no mobspaw

Post by Sdw » Wed Oct 15, 2014 9:50 am

Will spawn most likely the last mobs only.

I would really recommand xml.

do something like

for(L2Npc npc: MOBSSTAGE2)
{
addSpawn(npc, -182800, 214233, -9531, 0, true, 0, false, world.instanceId);
}

smakepz
Posts: 8
Joined: Sun Oct 12, 2014 9:37 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: [Gracia Final]Instance works like a charm but no mobspaw

Post by smakepz » Wed Oct 15, 2014 4:35 pm

Sdw wrote:Will spawn most likely the last mobs only.

I would really recommand xml.

do something like

for(L2Npc npc: MOBSSTAGE2)
{
addSpawn(npc, -182800, 214233, -9531, 0, true, 0, false, world.instanceId);
}
I fixed it by choosing an ID from array

Code: Select all

             addSpawn(MOBSSTAGE1[0], -184179, 211286, -9540, 0, false, 0, false, world.instanceId);            world.incLiveMobs();            addSpawn(MOBSSTAGE1[1], -184179, 211286, -9540, 0, false, 0, false, world.instanceId);            world.incLiveMobs(); 
but I'm gonna rewoak a mass spawn mob instance, so I would prefer to spawn them from xml.
Can you tell me what should I add to the spawn syntax so they won't respawn?

User avatar
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: [Gracia Final]Instance works like a charm but no mobspaw

Post by Sdw » Wed Oct 15, 2014 5:26 pm

Code: Select all

<spawn npcId="27437" x="-107648" y="206592" z="-10872" heading="49536" respawn="0" allowRandomWalk="false"  />
respawn="time", 0 is no respawn.

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable