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

Hellbound map display enable/disable.

_DS_ 15 лет назад
Родитель
Сommit
9976f2c669

+ 15 - 1
L2_GameServer/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

@@ -608,6 +608,8 @@ public final class L2PcInstance extends L2Playable
 	// apparently, a L2PcInstance CAN have both a summon AND a tamed beast at the same time!!
 	// apparently, a L2PcInstance CAN have both a summon AND a tamed beast at the same time!!
 	private L2TamedBeastInstance _tamedBeast = null;
 	private L2TamedBeastInstance _tamedBeast = null;
 
 
+	private boolean _minimapAllowed = false;
+
 	// client radar
 	// client radar
 	//TODO: This needs to be better intergrated and saved/loaded
 	//TODO: This needs to be better intergrated and saved/loaded
 	private L2Radar _radar;
 	private L2Radar _radar;
@@ -2958,7 +2960,19 @@ public final class L2PcInstance extends L2Playable
         return _radar;
         return _radar;
     }
     }
 
 
-	/** Return the SP amount of the L2PcInstance. */
+    /* Return true if Hellbound minimap allowed */
+    public boolean isMinimapAllowed()
+    {
+    	return _minimapAllowed;
+    }
+
+    /* Enable or disable minimap on Hellbound */
+    public void setMinmapAllowed(boolean b)
+    {
+    	_minimapAllowed = b;
+    }
+
+    /** Return the SP amount of the L2PcInstance. */
 	public int getSp() { return getStat().getSp(); }
 	public int getSp() { return getStat().getSp(); }
 
 
 	/** Set the SP amount of the L2PcInstance. */
 	/** Set the SP amount of the L2PcInstance. */

+ 1 - 1
L2_GameServer/java/com/l2jserver/gameserver/network/serverpackets/UserInfo.java

@@ -355,7 +355,7 @@ public final class UserInfo extends L2GameServerPacket
         
         
         // T2 Starts
         // T2 Starts
         writeD(_activeChar.getFame());  // Fame
         writeD(_activeChar.getFame());  // Fame
-        writeD(0x01); // Unknown
+        writeD(_activeChar.isMinimapAllowed() ? 1: 0); // Minimap on Hellbound
         writeD(_activeChar.getVitalityPoints());  // Vitality Points
         writeD(_activeChar.getVitalityPoints());  // Vitality Points
         writeD(_activeChar.getSpecialEffect());
         writeD(_activeChar.getSpecialEffect());
         writeD(0x00); // CT2.3
         writeD(0x00); // CT2.3