4
4
import com .jagex .runescape .cache .def .GameObjectDefinition ;
5
5
import com .jagex .runescape .cache .def .IdentityKit ;
6
6
import com .jagex .runescape .cache .def .OverlayDefinition ;
7
+ import com .jagex .runescape .cache .def .VarPlayerDefinition ;
7
8
import com .jagex .runescape .cache .media .AnimationSequence ;
8
9
import com .jagex .runescape .cache .media .IndexedImage ;
9
10
import com .jagex .runescape .frame .ChatBox ;
15
16
import com .jagex .runescape .media .renderable .actor .Actor ;
16
17
import com .jagex .runescape .media .renderable .actor .Npc ;
17
18
import com .jagex .runescape .media .renderable .actor .Player ;
18
- import com .jagex .runescape .scene .GroundItemTile ;
19
19
import com .jagex .runescape .scene .util .CollisionMap ;
20
20
21
21
public abstract class Class22 {
@@ -117,44 +117,44 @@ public static void method308() {
117
117
RSString .method56 (false , null , 0 );
118
118
}
119
119
120
- public static void method309 (int arg0 , int arg1 ) {
120
+ public static void method309 (int varPlayerIndex ) {
121
121
do {
122
122
AnimationSequence .anInt2480 = MovedStatics .pulseCycle ;
123
123
HuffmanEncoding .method1030 ((byte ) 127 );
124
- int i = Npc . method795 (( byte ) - 70 , arg1 ). anInt2633 ;
125
- if (i != 0 ) {
126
- int i_21_ = GroundItemTile . varbitMasks [ arg1 ];
127
- if (i == 1 ) {
128
- if (i_21_ == 1 ) {
124
+ int varPlayerType = VarPlayerDefinition . getDefinition ( varPlayerIndex ). type ;
125
+ if (varPlayerType != 0 ) {
126
+ int varPlayerValue = VarPlayerDefinition . varPlayers [ varPlayerIndex ];
127
+ if (varPlayerType == 1 ) {
128
+ if (varPlayerValue == 1 ) {
129
129
Rasterizer3D .method711 (0.9 );
130
130
((Class35 ) Rasterizer3D .anInterface3_2939 ).method424 (0.9 );
131
131
}
132
- if (i_21_ == 2 ) {
132
+ if (varPlayerValue == 2 ) {
133
133
Rasterizer3D .method711 (0.8 );
134
134
((Class35 ) Rasterizer3D .anInterface3_2939 ).method424 (0.8 );
135
135
}
136
- if (i_21_ == 3 ) {
136
+ if (varPlayerValue == 3 ) {
137
137
Rasterizer3D .method711 (0.7 );
138
138
((Class35 ) Rasterizer3D .anInterface3_2939 ).method424 (0.7 );
139
139
}
140
- if (i_21_ == 4 ) {
140
+ if (varPlayerValue == 4 ) {
141
141
Rasterizer3D .method711 (0.6 );
142
142
((Class35 ) Rasterizer3D .anInterface3_2939 ).method424 (0.6 );
143
143
}
144
- GameObject .method774 (( byte ) - 96 );
145
- Class40_Sub5_Sub11 .clearScreen = true ;
144
+ GameObject .clearImageCache ( );
145
+ MovedStatics .clearScreen = true ;
146
146
}
147
- if (i == 3 ) {
147
+ if (varPlayerType == 3 ) {
148
148
int i_22_ = 0 ;
149
- if (i_21_ == 0 )
149
+ if (varPlayerValue == 0 )
150
150
i_22_ = 255 ;
151
- if (i_21_ == 1 )
151
+ if (varPlayerValue == 1 )
152
152
i_22_ = 192 ;
153
- if (i_21_ == 2 )
153
+ if (varPlayerValue == 2 )
154
154
i_22_ = 128 ;
155
- if (i_21_ == 3 )
155
+ if (varPlayerValue == 3 )
156
156
i_22_ = 64 ;
157
- if (i_21_ == 4 )
157
+ if (varPlayerValue == 4 )
158
158
i_22_ = 0 ;
159
159
if (i_22_ != RSCanvas .anInt60 ) {
160
160
if (RSCanvas .anInt60 != 0 || MouseHandler .anInt1457 == -1 ) {
@@ -170,43 +170,41 @@ public static void method309(int arg0, int arg1) {
170
170
RSCanvas .anInt60 = i_22_ ;
171
171
}
172
172
}
173
- if (i == 9 )
174
- Class43 .bankInsertMode = i_21_ ;
175
- if (i == 10 ) {
176
- if (i_21_ == 0 )
173
+ if (varPlayerType == 9 )
174
+ Class43 .bankInsertMode = varPlayerValue ;
175
+ if (varPlayerType == 10 ) {
176
+ if (varPlayerValue == 0 )
177
177
RSCanvas .anInt65 = 127 ;
178
- if (i_21_ == 1 )
178
+ if (varPlayerValue == 1 )
179
179
RSCanvas .anInt65 = 96 ;
180
- if (i_21_ == 2 )
180
+ if (varPlayerValue == 2 )
181
181
RSCanvas .anInt65 = 64 ;
182
- if (i_21_ == 3 )
182
+ if (varPlayerValue == 3 )
183
183
RSCanvas .anInt65 = 32 ;
184
- if (i_21_ == 4 )
184
+ if (varPlayerValue == 4 )
185
185
RSCanvas .anInt65 = 0 ;
186
186
}
187
- if (i == 8 ) {
187
+ if (varPlayerType == 8 ) {
188
188
ChatBox .redrawChatbox = true ;
189
- CollisionMap .anInt165 = i_21_ ;
189
+ CollisionMap .anInt165 = varPlayerValue ;
190
190
}
191
- if (i == 4 ) {
192
- if (i_21_ == 0 )
191
+ if (varPlayerType == 4 ) {
192
+ if (varPlayerValue == 0 )
193
193
MovedStatics .anInt200 = 127 ;
194
- if (i_21_ == 1 )
194
+ if (varPlayerValue == 1 )
195
195
MovedStatics .anInt200 = 96 ;
196
- if (i_21_ == 2 )
196
+ if (varPlayerValue == 2 )
197
197
MovedStatics .anInt200 = 64 ;
198
- if (i_21_ == 3 )
198
+ if (varPlayerValue == 3 )
199
199
MovedStatics .anInt200 = 32 ;
200
- if (i_21_ == 4 )
200
+ if (varPlayerValue == 4 )
201
201
MovedStatics .anInt200 = 0 ;
202
202
}
203
- if (i == 6 )
204
- MovedStatics .anInt2280 = i_21_ ;
205
- if (arg0 != -1 )
206
- method309 (74 , -85 );
207
- if (i != 5 )
203
+ if (varPlayerType == 6 )
204
+ MovedStatics .anInt2280 = varPlayerValue ;
205
+ if (varPlayerType != 5 )
208
206
break ;
209
- ProducingGraphicsBuffer .oneMouseButton = i_21_ ;
207
+ ProducingGraphicsBuffer .oneMouseButton = varPlayerValue ;
210
208
}
211
209
212
210
break ;
0 commit comments