Prechádzať zdrojové kódy

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

Rumen Nikiforov 12 rokov pred
rodič
commit
456021a719

+ 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)