Pārlūkot izejas kodu

Radar fixes by kerberos.

DrLecter 17 gadi atpakaļ
vecāks
revīzija
14f5c6af72

+ 23 - 2
L2_GameServer_T1/dist/startSQLAccountManager.bat

@@ -1,2 +1,23 @@
-@java -Djava.util.logging.config.file=console.cfg -cp ./../libs/*;l2jserver.jar net.sf.l2j.accountmanager.SQLAccountManager
-@pause
+@echo off
+cls
+title L2J - SQL Account Manager
+color 17
+java -Djava.util.logging.config.file=console.cfg -cp ./../libs/*;l2jserver.jar net.sf.l2j.accountmanager.SQLAccountManager 2> NUL
+if %errorlevel% == 0 (
+echo.
+echo Execution succesful
+echo.
+) else (
+echo.
+echo An error has ocurred while running the L2J Account Manager!
+echo.
+echo Possible reasons for this to happen:
+echo.
+echo - Missing .jar files or ../libs directory.
+echo - MySQL server not running or incorrect MySQL settings:
+echo    check ./config/loginserver.properties
+echo - Wrong data types or values out of range were provided:
+echo    specify correct values for each required field
+echo.
+)
+pause

+ 3 - 2
L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Radar.java

@@ -39,6 +39,7 @@ public final class L2Radar
         RadarMarker newMarker = new RadarMarker(x, y, z);
 
         _markers.add(newMarker);
+        _player.sendPacket(new RadarControl(2, 2, x, y, z));
         _player.sendPacket(new RadarControl(0, 1, x, y, z));
     }
 
@@ -48,7 +49,7 @@ public final class L2Radar
         RadarMarker newMarker = new RadarMarker(x, y, z);
 
         _markers.remove(newMarker);
-        _player.sendPacket(new RadarControl(1, 1, x, y, z));
+        _player.sendPacket(new RadarControl(2, 2, x, y, z));
     }
 
     public void removeAllMarkers()
@@ -106,4 +107,4 @@ public final class L2Radar
             }
         }
     }
-}
+}