@@ -101,6 +101,8 @@ public class Game {
101
101
public static int anInt292 = 0 ;
102
102
public static boolean accountFlagged = false ;
103
103
public static long aLong1841 ;
104
+ public static int clientVersion ;
105
+ public static int playerRights = 0 ;
104
106
private static int gameServerPort ;
105
107
private static int duplicateClickCount = 0 ;
106
108
private static int lastClickY = 0 ;
@@ -675,11 +677,11 @@ public static void setConfigToDefaults() {
675
677
GameInterface .fullscreenSiblingInterfaceId = -1 ;
676
678
GameInterface .resetInterface (GameInterface .tabAreaInterfaceId );
677
679
GameInterface .tabAreaInterfaceId = -1 ;
678
- GameInterface .resetInterface (GroundItemTile .walkableWidgetId );
680
+ GameInterface .resetInterface (GameInterface .walkableWidgetId );
679
681
ChatBox .inputType = 0 ;
680
682
ChatBox .messagePromptRaised = false ;
681
683
MovedStatics .menuOpen = false ;
682
- GroundItemTile .walkableWidgetId = -1 ;
684
+ GameInterface .walkableWidgetId = -1 ;
683
685
Native .clickToContinueString = null ;
684
686
MovedStatics .lastContinueTextWidgetId = -1 ;
685
687
flashingTabId = -1 ;
@@ -1274,12 +1276,12 @@ else if(x > 764)
1274
1276
int i_13_ = i_10_ * 765 + i ;
1275
1277
OutgoingPackets .buffer .putIntLE ((i_11_ << 19 ) + (i_12_ << 20 ) + i_13_ );
1276
1278
}
1277
- if (InteractiveObject .anInt487 > 0 )
1278
- InteractiveObject .anInt487 --;
1279
+ if (MovedStatics .anInt487 > 0 )
1280
+ MovedStatics .anInt487 --;
1279
1281
if (MovedStatics .obfuscatedKeyStatus [96 ] || MovedStatics .obfuscatedKeyStatus [97 ] || MovedStatics .obfuscatedKeyStatus [98 ] || MovedStatics .obfuscatedKeyStatus [99 ])
1280
1282
MovedStatics .aBoolean565 = true ;
1281
- if (MovedStatics .aBoolean565 && InteractiveObject .anInt487 <= 0 ) {
1282
- InteractiveObject .anInt487 = 20 ;
1283
+ if (MovedStatics .aBoolean565 && MovedStatics .anInt487 <= 0 ) {
1284
+ MovedStatics .anInt487 = 20 ;
1283
1285
MovedStatics .aBoolean565 = false ;
1284
1286
OutgoingPackets .buffer .putPacket (58 );
1285
1287
OutgoingPackets .buffer .putShortBE (Game .playerCamera .getYaw ());
@@ -1313,8 +1315,8 @@ else if(x > 764)
1313
1315
MovedStatics .crossType = 0 ;
1314
1316
}
1315
1317
if (GameInterface .atInventoryInterfaceType != 0 ) {
1316
- RSRuntimeException .anInt1651 ++;
1317
- if (RSRuntimeException .anInt1651 >= 15 ) {
1318
+ GameInterface .anInt1651 ++;
1319
+ if (GameInterface .anInt1651 >= 15 ) {
1318
1320
if (GameInterface .atInventoryInterfaceType == 2 )
1319
1321
GameInterface .redrawTabArea = true ;
1320
1322
if (GameInterface .atInventoryInterfaceType == 3 )
@@ -1334,9 +1336,9 @@ else if(x > 764)
1334
1336
GameInterface .redrawTabArea = true ;
1335
1337
GameInterface .activeInterfaceType = 0 ;
1336
1338
if (MovedStatics .lastItemDragged && Buffer .lastItemDragTime >= 5 ) {
1337
- RSRuntimeException .lastActiveInvInterface = -1 ;
1339
+ GameInterface .lastActiveInvInterface = -1 ;
1338
1340
MovedStatics .processRightClick ();
1339
- if (RSRuntimeException .lastActiveInvInterface == GameInterface .modifiedWidgetId && mouseInvInterfaceIndex != GameInterface .selectedInventorySlot ) {
1341
+ if (GameInterface .lastActiveInvInterface == GameInterface .modifiedWidgetId && mouseInvInterfaceIndex != GameInterface .selectedInventorySlot ) {
1340
1342
GameInterface childInterface = GameInterface .getInterface (GameInterface .modifiedWidgetId );
1341
1343
int moveItemInsertionMode = 0 ;
1342
1344
if (MovedStatics .bankInsertMode == 1 && childInterface .contentType == 206 )
@@ -1380,7 +1382,7 @@ else if(x > 764)
1380
1382
else if (MovedStatics .menuActionRow > 0 )
1381
1383
GameInterface .processMenuActions (MovedStatics .menuActionRow - 1 );
1382
1384
}
1383
- RSRuntimeException .anInt1651 = 10 ;
1385
+ GameInterface .anInt1651 = 10 ;
1384
1386
MouseHandler .clickType = 0 ;
1385
1387
}
1386
1388
}
@@ -1661,7 +1663,7 @@ public static void handleLoginScreenActions() {
1661
1663
if (loginStatus == 9 && MovedStatics .gameServerSocket .inputStreamAvailable () >= 8 ) {
1662
1664
Configuration .USERNAME = Native .username .toString ();
1663
1665
Configuration .PASSWORD = Native .password .toString ();
1664
- InteractiveObject . playerRights = MovedStatics .gameServerSocket .read ();
1666
+ playerRights = MovedStatics .gameServerSocket .read ();
1665
1667
accountFlagged = MovedStatics .gameServerSocket .read () == 1 ;
1666
1668
Player .localPlayerId = MovedStatics .gameServerSocket .read ();
1667
1669
Player .localPlayerId <<= 8 ;
@@ -2303,7 +2305,7 @@ public void startup() {
2303
2305
metaChannel = null ;
2304
2306
}
2305
2307
if (modewhere != 0 )
2306
- InteractiveObject .showFps = true ;
2308
+ MovedStatics .showFps = true ;
2307
2309
chatboxInterface = new GameInterface ();
2308
2310
}
2309
2311
}
0 commit comments