-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathscene3.js
executable file
·362 lines (338 loc) · 22.1 KB
/
scene3.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
function Scene3()
{
n_path="6,87;5,87;5,86;6,86;3,84;4,84;5,83;4,83;3,83;2,84;2,83;1,85;0,86;1,84;0,85;12,89;11,89;10,89;9,89;9,90;10,90;11,90;13,93;13,92;14,92;6,95;7,94;8,93;9,93;10,93;11,93;12,93;8,94;7,95;3,82;4,81;5,80;6,79;7,79;8,79;9,79;10,78;11,77;12,76;13,76;14,75;15,74;16,73;17,73;18,73;19,74;20,75;21,76;22,76;23,76;24,77;24,78;24,79;24,80;24,81;25,81;26,80;27,80;28,80;28,81;28,82;29,83;30,83;31,83;31,82;32,81;33,80;33,79;33,78;34,77;34,76;34,75;35,74;35,73;35,72;35,71;35,70;35,69;34,68;33,67;31,66;32,66;30,66;29,66;28,65;27,64;26,63;24,63;25,63;23,63;22,62;21,61;20,60;19,59;19,58;18,57;18,56;18,55;18,53;18,54;18,52;18,51;17,50;16,51;15,52;14,52;13,51;12,51;11,51;10,50;9,50;8,50;7,50;6,50;5,50;4,49;3,49;2,49;1,49;0,49;0,44;1,43;2,42;3,42;4,42;5,43;6,43;7,44;8,45;9,45;10,45;11,45;12,45;13,44;14,43;16,43;17,43;18,44;19,45;20,45;21,47;21,46;21,48;20,49;20,50;20,51;20,52;20,53;20,54;20,55;20,56;21,57;21,58;21,59;22,60;23,60;24,59;24,58;24,57;14,88;14,91;14,89;14,90;15,87;16,86;17,86;18,86;19,86;20,86;21,86;22,86;23,86;24,87;25,87;26,88;27,88;28,88;29,88;30,89;31,89;33,89;32,89;35,89;34,89;36,89;37,89;38,89;39,89;41,90;40,89;42,90;43,90;45,90;46,90;44,90;47,90;48,90;49,90;50,90;51,91;52,91;53,92;54,92;55,93;56,94;57,94;58,93;58,92;57,91;56,91;55,90;54,89;53,89;52,88;51,88;50,87;48,86;48,85;47,84;46,83;45,82;44,81;43,81;42,81;41,81;40,81;39,81;39,80;39,79;38,78;38,77;38,76;38,75;38,74;38,73;39,72;39,71;40,70;41,71;42,72;43,73;44,74;45,75;46,75;48,75;47,75;49,75;50,75;51,75;52,74;53,73;54,72;54,71;54,69;54,70;55,66;54,68;55,67;55,65;55,64;56,63;56,62;56,61;49,70;50,69;51,68;51,67;52,66;52,65;52,64;53,63;53,62;53,61;53,60;53,59;53,58;57,61;58,61;59,60;60,60;61,59;62,58;62,57;62,55;62,56;62,54;61,53;60,53;59,53;58,52;57,52;56,52;55,52;54,53;54,54;53,55;53,56;53,57;48,71;47,71;46,70;45,69;44,68;43,67;42,66;42,65;42,64;41,63;41,62;41,61;40,60;39,59;39,58;39,57;38,55;38,54;39,56;37,53;37,52;37,51;36,51;36,50;36,49;35,49;35,48;35,47;35,46;35,45;34,44;34,43;34,42;34,41;24,56;23,55;23,54;22,53;22,51;22,52;22,50;21,49;7,17;7,16;7,14;7,15;9,14;10,15;10,16;11,17;11,18;11,19;11,20;12,21;13,22;13,23;13,24;13,26;13,25;12,27;12,28;6,18;6,19;6,20;6,21;6,22;6,24;5,25;5,26;5,27;6,28;6,29;6,30;6,31;6,32;12,29;11,31;11,30;11,32;11,33;11,34;11,35;11,36;5,33;13,43;18,43;19,44;21,50;22,54;23,56;11,37;12,38;13,38;14,38;15,38;16,38;17,38;23,43;24,44;26,52;27,53;28,54;30,55;29,55;31,56;32,56;33,57;33,56;33,55;33,54;33,53;33,52;33,51;32,50;32,49;32,48;32,47;31,46;31,45;31,44;30,43;29,42;28,41;28,40;28,39;29,38;29,37;29,36;28,35;27,34;27,33;26,32;26,31;26,29;26,30;26,28;25,27;25,26;25,25;25,24;24,23;23,22;23,21;23,20;23,19;24,18;25,17;26,17;27,18;29,19;30,20;31,21;32,22;33,23;34,24;35,25;35,26;35,27;35,28;34,29;34,30;35,30;35,29;36,27;37,27;36,26;38,34;39,35;39,34;40,34;42,32;43,33;44,34;45,35;46,36;47,37;48,38;35,41;36,41;37,41;38,41;39,41;40,41;41,40;43,40;44,40;45,40;46,40;47,40;48,40;39,33;38,33;40,31;40,30;41,33;40,33;27,17;28,17;28,18;29,18;30,19;31,20;32,21;33,22;34,23;35,24;36,25;37,26;43,32;42,31;44,33;45,34;46,35;47,36;48,37;49,38;40,5;39,6;38,7;37,8;36,9;35,10;34,11;33,12;32,13;31,14;30,15;29,16;28,16;29,15;30,14;31,13;32,12;33,11;34,10;35,9;36,8;37,7;38,6;39,5;41,4;40,4;44,5;44,6;43,7;43,8;43,9;43,10;43,11;43,12;44,13;45,14;46,15;46,16;45,18;44,19;44,20;47,24;48,23;48,22;49,21;49,20;49,19;50,18;50,17;51,16;51,15;52,17;48,24;49,23;50,22;51,21;52,22;53,23;54,24;53,18;54,19;58,18;59,17;60,16;62,14;63,13;63,14;62,15;51,17;50,19;49,22;50,21;52,21;53,22;54,23;54,26;53,27;52,28;51,29;51,30;51,31;51,32;51,34;51,33;51,35;51,36;50,37;50,38;51,37;52,29;53,28;54,27;54,25;47,14;47,13;47,12;46,11;45,10;45,5;46,4;47,3;45,4;46,3;42,4;43,6;42,5;43,5;46,14;45,16;44,18;49,5;49,6;50,7;51,8;52,9;54,11;55,12;56,13;57,14;60,14;60,15;57,13;56,12;55,11;52,8;51,7;50,6;44,12;45,13;3,81;4,80;5,79;9,78;10,77;11,76;13,75;14,74;15,73;19,73;20,74;21,75;24,76;25,80;15,88;16,87;23,87;25,88;29,89;29,82;31,81;32,80;33,77;34,69;33,68;32,67;39,78;39,73;40,71;41,72;42,73;43,74;40,90;50,91;52,92;54,93;55,94;56,90;55,89;53,88;58,94;58,91;51,87;49,86;48,84;47,83;46,82;45,81;44,75;52,75;43,66;42,63;44,67;45,68;46,69;47,70;48,70;49,69;50,68;51,66;53,74;54,73;55,68;52,63;56,64;59,61;61,60;62,59;53,54;54,52;59,52;62,53;31,55;29,54;28,53;27,52;26,51;32,51;31,47;30,44;39,55;38,53;35,44;28,66;27,65;26,64;22,63;21,62;20,61;19,60;18,58;17,51;16,52;13,52;10,51;4,50;1,42;4,40;5,41;5,42;7,43;8,44;12,44;12,37;18,38;19,39;20,40;4,34;5,32;5,28;5,24;6,23;12,30;13,27;13,21;12,20;6,17;7,13;9,13;10,14;11,16;23,18;24,17;23,23;24,24;25,28;26,33;27,35;28,36;28,38;28,42;29,43;41,41;42,40;9,12;7,12;8,11;9,11;7,11;23,59;22,59;21,56;50,86;48,89;47,89;15,43;6,42;4,33;3,35;3,36;3,34;3,37;3,38;3,39;3,40;5,34;4,35;4,41;0,43;0,45;0,46;0,47;0,48;21,41;22,42;24,43;25,51;25,50;25,49;25,48;25,47;25,46;19,38;20,39;21,40;22,41;23,42;25,45;25,44;20,46;53,8;54,9;54,10;54,8;43,17;42,17;44,16;42,14;51,25;52,24;51,24;45,17;47,11;46,10;45,9;44,8;44,9;52,16;53,17;54,18;55,19;56,19;57,18;58,17;59,16;57,19;47,23;44,21;59,13;60,13;58,13;61,13;58,14;48,5;48,4;48,3;28,19;32,23;33,24;34,25;30,21;31,22;29,20;41,30;43,34;44,35;45,36;46,37;47,38;48,39;42,33;41,31;40,32;7,86;"
HTML='<div style="width:2560px"><ul style="margin:0;padding:0;overflow:hidden;">';
for(var i=1;i<=160;i++){
HTML+='<li style="margin:0;padding:0;list-style-type:none;float:left;width:160px;height:192px;overflow:hidden;"><img src="pictures/wy/wy_'+i+'.jpg" style="display:block;width:160px;height:192px;border:0;margin:0;padding:0;"></li>';
if(i%16==0&&i!=160)
{
HTML+='</ul><ul style="margin:0;padding:0;overflow:hidden;">';
}
WindowImageLoader.Add("pictures/xjs/xjs_"+i+".jpg");
}
HTML+='</ul><img src="pictures/wy/31.gif" style="left:214;top:1554;z-index:86;"><img src="pictures/wy/32.gif" style="left:381;top:1621;z-index:89;"><img src="pictures/wy/33.gif" style="left:518;top:1674;z-index:91;"><img src="pictures/wy/34.gif" style="left:2278;top:1848;z-index:94;"><img src="pictures/wy/35.gif" style="left:2183;top:1827;z-index:92;"><img src="pictures/wy/36.gif" style="left:2103;top:1810;z-index:91;"><img src="pictures/wy/37.gif" style="left:1925;top:1748;z-index:91;"><img src="pictures/wy/21.gif" style="left:1786;top:301;z-index:18;"><img src="pictures/wy/22.gif" style="left:1839;top:251;z-index:16;"><img src="pictures/wy/23.gif" style="left:1737;top:116;z-index:13;"><img src="pictures/wy/24.gif" style="left:1917;top:209;z-index:23;"><img src="pictures/wy/11.gif" style="left:1699;top:255;z-index:17;"><img src="pictures/wy/12.gif" style="left:2037;top:412;z-index:25;"><img src="pictures/wy/13.gif" style="left:1189;top:239;z-index:21;"><img src="pictures/wy/17.gif" style="left:1320;top:296;z-index:25;"><img src="pictures/wy/18.gif" style="left:1480;top:323;z-index:27;"><img src="pictures/wy/15.gif" style="left:1580;top:368;z-index:34;"><img src="pictures/wy/16.gif" style="left:1840;top:557;z-index:38;"><img src="pictures/wy/38.gif" style="left:0;top:559;z-index:43;"><img src="pictures/wy/39.gif" style="left:320;top:721;z-index:45;"><img src="pictures/wy/40.gif" style="left:557;top:681;z-index:44;"><img src="pictures/wy/41.gif" style="left:799;top:714;z-index:46;"><img src="pictures/wy/42.gif" style="left:878;top:786;z-index:58;"><img src="pictures/wy/43.gif" style="left:1357;top:496;z-index:30;"><img src="pictures/wy/44.gif" style="left:1539;top:591;z-index:35;"><img src="pictures/wy/46.gif" style="left:1762;top:202;z-index:16;"><img src="pictures/wy/45.gif" style="left:1674;top:153;z-index:14;"><img src="pictures/wy/47.gif" style="left:2071;top:371;z-index:24;"><img src="pictures/wy/wy6.gif" style="left:0px;top:47px;z-index:96"></div>';
ClearAllSet();
for(var i=0;i<9;i++){
if(i==0){
if(IsLoad)
GameRoles[i]=new GamePlayer();
}
else
GameRoles[i]=new GameRole();
GameRoles[i].NUM=i;
GameRoles[i].EventList=new Array();
}
with(GameRoles[0]){
EventList=new Array();
Name="独孤剑";
IMG="images/player_asf.gif";
StandRoles=[[19,0,0,0,56,75,0,4,50],[14,13,0,-1120,95,86,0,-18,50]];
MoveRoles=[[14,4,-600,0,67,81,0,-6,35]];
RunRoles=[[11,3,-1248,0,80,88,-3,-14,40]];
AttackRoles=[[24,0,-1952,0,172,120,-20,-58,30,"9,10,11"]];
if(IsFirstIn&&Event<20){
EventType=2;
AddEvent(0,"audio.StopBGM();this.MoveTo([9,84])#this.IsStoping");
AddEvent(1,"this.D=7;this.SetD();");
AddEvent(2,"GameText.ShowMsg(this.Name+\":你们是刚才遇到的强盗。\",5)");
AddEvent(3,"GameText.ShowMsg(\"强盗:不错!天堂有路你不走,地狱无门你偏来。\")");
AddEvent(4,"GameText.ShowMsg(this.Name+\":你们是五色教的人?\",5)");
AddEvent(5,"GameText.ShowMsg(\"强盗:算你有点见识。\")");
AddEvent(6,"GameRoles[0].ChangeState(\"TOstand\",1)");
AddEvent(7,"GameText.ShowMsg(this.Name+\":五色教在江湖上为非作歹,兴风作浪。今日我便来惩奸除恶!\",5)");
AddEvent(8,"GameText.ShowMsg(\"强盗:那要看你有没有本事了。\")");
AddEvent(9,"audio.PlayBGM(\"musics/war.mp3\");GameText.Memo(\"没想到刚才逃跑的强盗竟然是五色教中人。消灭所有敌人。\")");
AddEvent(10,"AllEnd()");
}
if(Event>=40&&Event<50){
AddEvent(0,"this.MoveTo([32,40])#this.IsStoping");
AddEvent(1,"this.D=6;this.SetD();");
AddEvent(2,"GameRoles[3].MoveTo([32,39])#GameRoles[3].IsStoping");
AddEvent(3,"GameRoles[3].D=2;GameRoles[3].SetD();");
AddEvent(4,"GameText.ShowMsg(this.Name+\":没想到你们武夷派果然与五色教同流合污!\",5)");
AddEvent(5,"GameText.ShowMsg(GameRoles[3].Name+\":此言差矣!人各有志,我们道不同不相为谋!\")");
AddEvent(6,"GameText.ShowMsg(this.Name+\":既然如此,你们纳命来吧!\",5);audio.PlayBGM(\"musics/war.mp3\");");
AddEvent(7,"AllEnd()");
}
init();
}
if(Event<20){
with(GameRoles[1]){
Name="强盗1";
IMG="images/mmsd_asf.gif";
StandRoles=[[10,0,0,0,97,78,0,-29,100]];
MoveRoles=[[14,0,0,-1067,103,88,-10,-21,50]];
AttackRoles=[[21,0,-1712,0,163,126,-34,-58,50,"13,14,15"]];
DeadRoles=[[16,0,-704,0,140,126,-35,-49,35]];
BeAttackRoles=[[6,0,0,-2612,94,82,-4,-28,50]];
D=3;
Kind=2;
X=10;Y=81;
init();
}
with(GameRoles[2]){
Name="强盗2";
IMG="images/pz_asf.gif";
StandRoles=[[9,0,0,0,72,68,0,-13,100]];
MoveRoles=[[14,0,0,-720,78,68,1,-16,40]];
AttackRoles=[[20,0,-1344,0,128,104,-23,-39,50,"8,9,15,16"]];
DeadRoles=[[21,0,-544,0,125,100,-15,-39,35]];
D=4;
Kind=2;
X=12;Y=84;
init();
}
with(GameRoles[3]){
Name="强盗3";
IMG="images/pz_asf.gif";
StandRoles=[[9,0,0,0,72,68,0,-13,100]];
MoveRoles=[[14,0,0,-720,78,68,1,-16,40]];
AttackRoles=[[20,0,-1344,0,128,104,-23,-39,50,"8,9,15,16"]];
DeadRoles=[[21,0,-544,0,125,100,-15,-39,35]];
D=3;
Kind=2;
X=14;Y=78;
init();
}
with(GameRoles[4]){
Name="强盗4";
IMG="images/mmsd_asf.gif";
StandRoles=[[10,0,0,0,97,78,0,-29,100]];
MoveRoles=[[14,0,0,-1067,103,88,-10,-21,50]];
AttackRoles=[[21,0,-1712,0,163,126,-34,-58,50,"13,14,15"]];
DeadRoles=[[16,0,-704,0,140,126,-35,-49,35]];
BeAttackRoles=[[6,0,0,-2612,94,82,-4,-28,50]];
D=4;
Kind=2;
X=16;Y=81;
init();
}
with(GameRoles[5]){
Name="强盗5";
IMG="images/pz_asf.gif";
StandRoles=[[9,0,0,0,72,68,0,-13,100]];
MoveRoles=[[14,0,0,-720,78,68,1,-16,40]];
AttackRoles=[[20,0,-1344,0,128,104,-23,-39,50,"8,9,15,16"]];
DeadRoles=[[21,0,-544,0,125,100,-15,-39,35]];
D=3;
Kind=2;
X=17;Y=77;
init();
}
with(GameRoles[6]){
Name="武夷山弟子";
IMG="images/sj_asf.gif";
StandRoles=[[16,0,0,0,100,81,7,-23,100]];
MoveRoles=[[14,0,0,-1700,110,86,2,-25,40]];
AttackRoles=[[16,0,-1592,0,150,131,-34,-37,50,"5,6,9,10"]];
DeadRoles=[[16,0,-688,0,182,113,6,-74,35]];
D=2;
X=34;Y=54;
AddEvent(0,"this.MoveTo([GameRoles[0].X,GameRoles[0].Y-1])#this.IsStoping");
AddEvent(1,"this.D=2;this.SetD();");
AddEvent(2,"GameText.ShowMsg(this.Name+\":在下武夷山弟子,请教阁下姓名?\")");
AddEvent(3,"GameText.ShowMsg(GameRoles[0].Name+\":在下独孤剑,特来拜访贵派掌门。\",5)");
AddEvent(4,"GameText.ShowMsg(this.Name+\":原来是衡山掌门师兄。刚听师弟们说看到有一伙强盗往上面山洞逃去,掌门已和师兄们追过去了。\")");
AddEvent(5,"GameText.ShowMsg(GameRoles[0].Name+\":(原来传言并非是真...)既然如此,我也去看看。\",5)");
AddEvent(6,"GameText.ShowMsg(this.Name+\":那我就去通知大家加强戒备。\")");
AddEvent(7,"this.MoveTo([34,54])#this.IsStoping");
AddEvent(8,"this.HideRole()");
AddEvent(9,"Event=25");
AddEvent(10,"GameText.Memo(\"前往上面山洞。\")");
AddEvent(11,"GameRoles[0].IsLocked=false;");
AddEvent(12,"AllEnd()");
init();
HideRole();
}
with(GameRoles[7]){
Name="武夷派弟子王和";
IMG="images/sj_asf.gif";
StandRoles=[[16,0,0,0,100,81,7,-23,100]];
MoveRoles=[[14,0,0,-1700,110,86,2,-25,40]];
AttackRoles=[[16,0,-1592,0,150,131,-34,-37,50,"5,6,9,10"]];
DeadRoles=[[16,0,-688,0,182,113,6,-74,35]];
AddEvent(0,"GameRoles[0].IsLocked=true;GameText.ShowMsg(this.Name+\":独孤掌门请留步,师傅和师兄们暂时都不在。\")");
AddEvent(1,"this.D=this.D;this.SetD();GameRoles[0].IsLocked=false;");
AddEvent(2,"AllEnd()");
D=3;
X=35;Y=31;
init();
}
with(GameRoles[8]){
Name="武夷派弟子郑强";
IMG="images/sj_asf.gif";
StandRoles=[[16,0,0,0,100,81,7,-23,100]];
MoveRoles=[[14,0,0,-1700,110,86,2,-25,40]];
AttackRoles=[[16,0,-1592,0,150,131,-34,-37,50,"5,6,9,10"]];
DeadRoles=[[16,0,-688,0,182,113,6,-74,35]];
AddEvent(0,"GameRoles[0].IsLocked=true;GameText.ShowMsg(this.Name+\":独孤掌门请留步,师傅和师兄们暂时都不在。\")");
AddEvent(1,"this.D=this.D;this.SetD();GameRoles[0].IsLocked=false;");
AddEvent(2,"AllEnd()");
D=3;
X=37;Y=33;
init();
}
GameTime.Add("if(!GameRoles[0].OnRole){document.getElementById(\"bloodrect\").style.display=\"none\";}",2,false,true);
GameTime.Add("if(!GameRoles[1].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[1].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[1].Y-GameRoles[0].Y)<=5){GameRoles[1].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(!GameRoles[2].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[2].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[2].Y-GameRoles[0].Y)<=5){GameRoles[2].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(!GameRoles[3].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[3].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[3].Y-GameRoles[0].Y)<=5){GameRoles[3].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(!GameRoles[4].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[4].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[4].Y-GameRoles[0].Y)<=5){GameRoles[4].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(!GameRoles[5].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[5].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[5].Y-GameRoles[0].Y)<=5){GameRoles[5].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(GameScene.CheckDead(1,2,3,4,5)&&GameRoles[0].IsStoping&&Event<20){Event=20;DoEvent3();}",5,false,true);
GameEvent.AddEvent("36,31;36,32;37,32;36,30;38,32","GameRoles[7].EventType=2;",true);
}
if(Event>=40&&Event<50){
with(GameRoles[1]){
Name="强盗1";
IMG="images/mmsd_asf.gif";
StandRoles=[[10,0,0,0,97,78,0,-29,100]];
MoveRoles=[[14,0,0,-1067,103,88,-10,-21,50]];
AttackRoles=[[21,0,-1712,0,163,126,-34,-58,50,"13,14,15"]];
DeadRoles=[[16,0,-704,0,140,126,-35,-49,35]];
BeAttackRoles=[[6,0,0,-2612,94,82,-4,-28,50]];
D=3;
Kind=2;
X=30;Y=34;
init();
}
with(GameRoles[2]){
Name="强盗2";
IMG="images/pz_asf.gif";
StandRoles=[[9,0,0,0,72,68,0,-13,100]];
MoveRoles=[[14,0,0,-720,78,68,1,-16,40]];
AttackRoles=[[20,0,-1344,0,128,104,-23,-39,50,"8,9,15,16"]];
DeadRoles=[[21,0,-544,0,125,100,-15,-39,35]];
D=4;
Kind=2;
X=36;Y=35;
init();
}
with(GameRoles[3]){
Name="强盗3";
IMG="images/sj_asf.gif";
StandRoles=[[16,0,0,0,100,81,7,-23,100]];
MoveRoles=[[14,0,0,-1700,110,86,2,-25,40]];
AttackRoles=[[16,0,-1592,0,150,131,-34,-37,50,"5,6,9,10"]];
DeadRoles=[[16,0,-688,0,182,113,6,-74,35]];
D=3;
Kind=2;
X=33;Y=34;
init();
}
with(GameRoles[4]){
Name="强盗4";
IMG="images/mmsd_asf.gif";
StandRoles=[[10,0,0,0,97,78,0,-29,100]];
MoveRoles=[[14,0,0,-1067,103,88,-10,-21,50]];
AttackRoles=[[21,0,-1712,0,163,126,-34,-58,50,"13,14,15"]];
DeadRoles=[[16,0,-704,0,140,126,-35,-49,35]];
BeAttackRoles=[[6,0,0,-2612,94,82,-4,-28,50]];
D=4;
Kind=2;
X=37;Y=30;
init();
}
with(GameRoles[5]){
Name="强盗5";
IMG="images/sj_asf.gif";
StandRoles=[[16,0,0,0,100,81,7,-23,100]];
MoveRoles=[[14,0,0,-1700,110,86,2,-25,40]];
AttackRoles=[[16,0,-1592,0,150,131,-34,-37,50,"5,6,9,10"]];
DeadRoles=[[16,0,-688,0,182,113,6,-74,35]];
D=3;
Kind=2;
X=47;Y=26;
init();
}
with(GameRoles[6]){
Name="强盗5";
IMG="images/pz_asf.gif";
StandRoles=[[9,0,0,0,72,68,0,-13,100]];
MoveRoles=[[14,0,0,-720,78,68,1,-16,40]];
AttackRoles=[[20,0,-1344,0,128,104,-23,-39,50,"8,9,15,16"]];
DeadRoles=[[21,0,-544,0,125,100,-15,-39,35]];
D=3;
Kind=2;
X=46;Y=20;
init();
}
with(GameRoles[7]){
Name="强盗5";
IMG="images/sj_asf.gif";
StandRoles=[[16,0,0,0,100,81,7,-23,100]];
MoveRoles=[[14,0,0,-1700,110,86,2,-25,40]];
AttackRoles=[[16,0,-1592,0,150,131,-34,-37,50,"5,6,9,10"]];
DeadRoles=[[16,0,-688,0,182,113,6,-74,35]];
D=3;
Kind=2;
X=40;Y=15;
init();
}
with(GameRoles[8]){
Name="强盗5";
IMG="images/pz_asf.gif";
StandRoles=[[9,0,0,0,72,68,0,-13,100]];
MoveRoles=[[14,0,0,-720,78,68,1,-16,40]];
AttackRoles=[[20,0,-1344,0,128,104,-23,-39,50,"8,9,15,16"]];
DeadRoles=[[21,0,-544,0,125,100,-15,-39,35]];
D=3;
Kind=2;
X=50;Y=12;
init();
}
GameTime.Add("if(!GameRoles[0].OnRole){document.getElementById(\"bloodrect\").style.display=\"none\";}",2,false,true);
GameTime.Add("if(!GameRoles[1].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[1].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[1].Y-GameRoles[0].Y)<=5){GameRoles[1].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(!GameRoles[2].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[2].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[2].Y-GameRoles[0].Y)<=5){GameRoles[2].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(!GameRoles[3].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[3].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[3].Y-GameRoles[0].Y)<=5){GameRoles[3].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(!GameRoles[4].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[4].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[4].Y-GameRoles[0].Y)<=5){GameRoles[4].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(!GameRoles[5].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[5].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[5].Y-GameRoles[0].Y)<=5){GameRoles[5].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(!GameRoles[6].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[6].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[6].Y-GameRoles[0].Y)<=5){GameRoles[6].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(!GameRoles[7].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[7].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[7].Y-GameRoles[0].Y)<=5){GameRoles[7].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(!GameRoles[8].WantAttack&&GameRoles[0].EventType!=2&&Math.abs(GameRoles[8].X-GameRoles[0].X)<=5&&Math.abs(GameRoles[8].Y-GameRoles[0].Y)<=5){GameRoles[8].AttackTo([GameRoles[0].X,GameRoles[0].Y]);}",5,false,true);
GameTime.Add("if(GameScene.CheckDead(1,2,3,4,5,6,7,8)&&GameRoles[0].IsStoping&&Event<50){Event=50;audio.StopBGM();GameText.ShowMsg(GameRoles[0].Name+\":这群败类!险些被他们骗过,还是到里面看看吧!\",5);}",5,false,true);
GameEvent.AddEvent("31,43;32,43;33,43","if(Event==40){GameRoles[0].EventType=2;Event=41;}",true);
}
document.getElementById("game_eval").run='GameScene.SetNewScene(2560,1920);GameRoles[0].SetPlayerScn();';
if(IsLoad)
{
document.getElementById("game_eval").run+='document.getElementById("loadgame").style.display="none";document.getElementById("SystemMenu").style.display="none";';
}
if(IsFirstIn)
{
document.getElementById("game_eval").SoundRun='audio.PlayBGM("musics/war.mp3");';
}
GameTime.Init();
GameEvent.AddEvent("53,9;53,10","if(Event>=50){GameText.ShowMsg(\"胡加杰:这个《新剑侠情缘》就DEMO到这里,后续章节敬请关注!\",10);}");
GameEvent.AddEvent("8,12;8,13;8,14","ClearAll();GameTime.Pause();GameRoles[0].X=24;GameRoles[0].Y=33;GameRoles[0].D=5;GameScene.GotoScene(6);");
WindowImageLoader.Add("images/player_asf.gif");
WindowImageLoader.Add("images/mmsd_asf.gif");
WindowImageLoader.Load();
GameScene.ScenesData[GameScene.SceneID][1]=false;
GameScene.ScenesData[GameScene.SceneID][2]=false;
state="new";
}
function ClearAll(){
for(var i in GameRoles){
window.clearTimeout(GameRoles[i].Times);
GameRoles[i].Times=null;
}
}
function DoEvent3(){
document.getElementById("game_eval").DoEventGo='for(var i in GameRoles){if(GameRoles[i].IsDead)GameRoles[i].HideRole();}';
with(GameRoles[0]){
EventType=2;
AddEvent(0,"audio.StopBGM();GameText.ShowMsg(this.Name+\":怎么看到他们往山上逃跑了?难道武林传言武夷派与五色教勾结是真?\",5)");
AddEvent(1,"GameText.Memo(\"前往武夷派。\")");
AddEvent(2,"GameEvent.AddEvent(\"36,69;37,69;38,69;39,69;40,69\",\"CreateRole();\",true)");
AddEvent(3,"AllEnd()");
}
}
function CreateRole(){
if(Event==20){
GameRoles[0].D=6;
GameRoles[0].IsLocked=true;
Event=21;
GameRoles[6].ShowRole();
GameRoles[6].EventType=2;
}
}