@@ -93,6 +93,11 @@ public class GameInterface extends CachedNode {
93
93
public static int activeInterfaceType = 0 ;
94
94
public static int modifiedWidgetId = 0 ;
95
95
public static int walkableWidgetId = -1 ;
96
+ public static int lastActiveInvInterface = 0 ;
97
+ /**
98
+ * Some kind of timer for item-on-widget clicks (e.g. triggered when taking items from bank)
99
+ */
100
+ public static int anInt1651 = 0 ;
96
101
/**
97
102
* The lightened edge (top and left) color of the scroll indicator chip.
98
103
*/
@@ -609,7 +614,7 @@ public static void processMenuActions(int arg1) {
609
614
610
615
atInventoryInterfaceType = 2 ;
611
616
anInt1233 = i ;
612
- RSRuntimeException . anInt1651 = 0 ;
617
+ anInt1651 = 0 ;
613
618
if (gameScreenInterfaceId == i_10_ >> 16 ) {
614
619
atInventoryInterfaceType = 1 ;
615
620
}
@@ -732,7 +737,7 @@ public static void processMenuActions(int arg1) {
732
737
);
733
738
734
739
anInt704 = i_10_ ;
735
- RSRuntimeException . anInt1651 = 0 ;
740
+ anInt1651 = 0 ;
736
741
anInt1233 = i ;
737
742
atInventoryInterfaceType = 2 ;
738
743
if (i_10_ >> 16 == gameScreenInterfaceId ) {
@@ -758,7 +763,7 @@ public static void processMenuActions(int arg1) {
758
763
759
764
anInt1233 = i ;
760
765
atInventoryInterfaceType = 2 ;
761
- RSRuntimeException . anInt1651 = 0 ;
766
+ anInt1651 = 0 ;
762
767
anInt704 = i_10_ ;
763
768
if (i_10_ >> 16 == gameScreenInterfaceId ) {
764
769
atInventoryInterfaceType = 1 ;
@@ -799,7 +804,7 @@ public static void processMenuActions(int arg1) {
799
804
800
805
anInt1233 = i ;
801
806
anInt704 = i_10_ ;
802
- RSRuntimeException . anInt1651 = 0 ;
807
+ anInt1651 = 0 ;
803
808
atInventoryInterfaceType = 2 ;
804
809
if (i_10_ >> 16 == gameScreenInterfaceId ) {
805
810
atInventoryInterfaceType = 1 ;
@@ -936,7 +941,7 @@ public static void processMenuActions(int arg1) {
936
941
if (chatboxInterfaceId == i_10_ >> 16 ) {
937
942
atInventoryInterfaceType = 3 ;
938
943
}
939
- RSRuntimeException . anInt1651 = 0 ;
944
+ anInt1651 = 0 ;
940
945
}
941
946
if (action == ActionRowType .MESSAGE_FRIEND .getId ()) {
942
947
String class1 = MovedStatics .menuActionTexts [arg1 ];
@@ -1085,7 +1090,7 @@ public static void processMenuActions(int arg1) {
1085
1090
);
1086
1091
1087
1092
anInt704 = i_10_ ;
1088
- RSRuntimeException . anInt1651 = 0 ;
1093
+ anInt1651 = 0 ;
1089
1094
anInt1233 = i ;
1090
1095
atInventoryInterfaceType = 2 ;
1091
1096
if (gameScreenInterfaceId == i_10_ >> 16 ) {
@@ -1151,7 +1156,7 @@ public static void processMenuActions(int arg1) {
1151
1156
anInt1233 = i ;
1152
1157
atInventoryInterfaceType = 2 ;
1153
1158
anInt704 = i_10_ ;
1154
- RSRuntimeException . anInt1651 = 0 ;
1159
+ anInt1651 = 0 ;
1155
1160
if (gameScreenInterfaceId == i_10_ >> 16 ) {
1156
1161
atInventoryInterfaceType = 1 ;
1157
1162
}
@@ -1266,7 +1271,7 @@ public static void processMenuActions(int arg1) {
1266
1271
ChatBox .addChatMessage ("" , gameInterface .itemAmounts [i ] + Native .amountSeparatorX + ItemDefinition .forId (npcIdx , 10 ).name , 0 );
1267
1272
}
1268
1273
anInt1233 = i ;
1269
- RSRuntimeException . anInt1651 = 0 ;
1274
+ anInt1651 = 0 ;
1270
1275
anInt704 = i_10_ ;
1271
1276
atInventoryInterfaceType = 2 ;
1272
1277
if (i_10_ >> 16 == gameScreenInterfaceId ) {
@@ -1324,7 +1329,7 @@ public static void processMenuActions(int arg1) {
1324
1329
)
1325
1330
);
1326
1331
1327
- RSRuntimeException . anInt1651 = 0 ;
1332
+ anInt1651 = 0 ;
1328
1333
atInventoryInterfaceType = 2 ;
1329
1334
if (gameScreenInterfaceId == i_10_ >> 16 ) {
1330
1335
atInventoryInterfaceType = 1 ;
@@ -1355,7 +1360,7 @@ public static void processMenuActions(int arg1) {
1355
1360
if (i_10_ >> 16 == chatboxInterfaceId ) {
1356
1361
atInventoryInterfaceType = 3 ;
1357
1362
}
1358
- RSRuntimeException . anInt1651 = 0 ;
1363
+ anInt1651 = 0 ;
1359
1364
}
1360
1365
if (action == ActionRowType .INTERACT_WITH_PLAYER_OPTION_5 .getId ()) {
1361
1366
Player otherPlayer = Player .trackedPlayers [npcIdx ];
@@ -1422,7 +1427,7 @@ public static void processMenuActions(int arg1) {
1422
1427
)
1423
1428
);
1424
1429
1425
- RSRuntimeException . anInt1651 = 0 ;
1430
+ anInt1651 = 0 ;
1426
1431
atInventoryInterfaceType = 2 ;
1427
1432
if (gameScreenInterfaceId == i_10_ >> 16 ) {
1428
1433
atInventoryInterfaceType = 1 ;
@@ -1476,7 +1481,7 @@ public static void processMenuActions(int arg1) {
1476
1481
);
1477
1482
1478
1483
anInt704 = i_10_ ;
1479
- RSRuntimeException . anInt1651 = 0 ;
1484
+ anInt1651 = 0 ;
1480
1485
anInt1233 = i ;
1481
1486
atInventoryInterfaceType = 2 ;
1482
1487
if (gameScreenInterfaceId == i_10_ >> 16 ) {
@@ -1550,7 +1555,7 @@ public static void processMenuActions(int arg1) {
1550
1555
);
1551
1556
1552
1557
anInt1233 = i ;
1553
- RSRuntimeException . anInt1651 = 0 ;
1558
+ anInt1651 = 0 ;
1554
1559
atInventoryInterfaceType = 2 ;
1555
1560
anInt704 = i_10_ ;
1556
1561
if (i_10_ >> 16 == gameScreenInterfaceId ) {
0 commit comments