Просмотр исходного кода

BETA: Setting script value of L2Npc back to 0 while respawning the npc.
* Reported by: malyelfik

Rumen Nikiforov 12 лет назад
Родитель
Сommit
456021a719
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/L2Spawn.java

+ 2 - 0
L2J_Server_BETA/java/com/l2jserver/gameserver/model/L2Spawn.java

@@ -541,6 +541,8 @@ public class L2Spawn
 		mob.setDecayed(false);
 		// Set the HP and MP of the L2NpcInstance to the max
 		mob.setCurrentHpMp(mob.getMaxHp(), mob.getMaxMp());
+		// Set default value
+		mob.setScriptValue(0);
 		
 		// Set the heading of the L2NpcInstance (random heading if not defined)
 		if (getHeading() == -1)