[SOLVED] //spawn working only once

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
Hemorrhoid
Posts: 10
Joined: Wed Jan 23, 2008 7:40 pm

[SOLVED] //spawn working only once

Post by Hemorrhoid » Fri Aug 31, 2018 11:13 pm

Using last Rev of Master.

When I use the //spawn command, the mob spawns alright, I kill it (like a regular player would) then the mob does not respawn.

It only respawns if I do the unspawnall/respawnall commands, or if i restart the gameserver.

I treid using bth the spawn menu, and the //spawn command, both gave me same result (not using the spwan_once command).

Regular spawned mobs (that were given with the server files) respawn fine after I killed them.
Last edited by Hemorrhoid on Sat Sep 01, 2018 12:25 am, edited 1 time in total.

Hemorrhoid
Posts: 10
Joined: Wed Jan 23, 2008 7:40 pm

Re: //spawn working only once

Post by Hemorrhoid » Sat Sep 01, 2018 12:24 am

[SOLVED]The //spawn command and the GM menu Spawn tool create a new line in the spawnlist.sql but give the value 0 to the variable respawn_delay, hence why the mobs spawn only after a server restart or //respawnall.

So we have to manually edit the sql to "complete" the new spawn of the monster, the GM menu is not enough.

User avatar
JMD
Advanced User
Advanced User
Posts: 1437
Joined: Wed Apr 15, 2009 10:07 am

Re: [SOLVED] //spawn working only once

Post by JMD » Sat Sep 01, 2018 4:02 pm

just do

//spawn npcid respawntime

example
//spawn gremlin 300 => will spawn a gremlin that once killed will repsawn in 5 minutes.
Testing environment: Windows 10 pro x64, Eclipse Java IDE 2020‑06, MariaDB 10.4, OpenJDK 14.

Hemorrhoid
Posts: 10
Joined: Wed Jan 23, 2008 7:40 pm

Re: [SOLVED] //spawn working only once

Post by Hemorrhoid » Sat Sep 01, 2018 6:53 pm

JMD wrote:
Sat Sep 01, 2018 4:02 pm
just do

//spawn npcid respawntime

example
//spawn gremlin 300 => will spawn a gremlin that once killed will repsawn in 5 minutes.
That's helpful, thank you

Post Reply