Ver Fonte

BETA: Fix Symbols despawn time

  * Despawn time now is not hardcode, is read from skill params.
Zealar há 10 anos atrás
pai
commit
ad286e7ab3

+ 2 - 1
L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/SummonNpc.java

@@ -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);