Skip to content
Snippets Groups Projects
Commit ad286e7a authored by Zealar's avatar Zealar
Browse files

BETA: Fix Symbols despawn time

  * Despawn time now is not hardcode, is read from skill params.
parent 4580e653
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ import com.l2jserver.util.Rnd;
*/
public final class SummonNpc extends AbstractEffect
{
private final int _despawnDelay;
private int _despawnDelay;
private final int _npcId;
private final int _npcCount;
private final boolean _randomOffset;
......@@ -134,6 +134,7 @@ public final class SummonNpc extends AbstractEffect
effectPoint.setIsInvul(true);
effectPoint.setSummoner(player);
effectPoint.spawnMe(x, y, z);
_despawnDelay = NpcData.getInstance().getTemplate(_npcId).getParameters().getInt("despawn_time") * 1000;
if (_despawnDelay > 0)
{
effectPoint.scheduleDespawn(_despawnDelay);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment