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
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
|
//===== kekeRO Script =============================================
//= Clone Arena - eAAC Script
//===== By: =======================================================
//= Miir - For use only in kekeRO and eAthena Servers ONLY
// Debug Team - PX, Flo, and DarkSilence
// http://kekeRO.deltaanime.net
//===== Current Version: ==========================================
//= 1.6
//===== Compatible With: ==========================================
//= eAthena SVN 4453+ (All SVNs that support Clone commands)
//===== Description: ==============================================
//= An Arena to fight your clone or clones
// [Not Implimented:]
// Two part quest that allows you to create the
// Stone of Sage, then to create a custom item, Homunculus
// Scroll, which allows you to summon a clone slave.
//===== Additional Comments: ======================================
//= 1.0 - NPCs created, basic idea from Zhumos
//= 1.1 - Moved the location to force_2-1 [Miir]
//= 1.2 - Fixed Rooms 3 and 4 [Miir]
// - Changed the labels so they are easy to edit [Miir]
// - Added a point rewards system [Miir]
//= 1.3 - Added option to fight 2 or 3 clones [Miir]
// - Fixed when Clone Masters were enabled [Miir]
// - Added level restriction (Level 50+) [Miir]
// - Modified the Prizes [Miir]
//= 1.4 - Added a check for inventory [Miir]
// - Added a Kafra [Miir]
// - Modified the Clone modes [Miir]
//= 1.5 - Added time equipment check to stop exploitation [Miir]
// - Fixed OnTouch warping (oops...) [Miir]
// - Added a few more mapflags [Miir]
// - Added Chemical Protection Buffs to avoid equipment
// breaking (causing the violation to trigger) [Miir]
//= 1.6 - Rewrote most of the script to make it smaller [Miir]
// - Changed the Gatekeeper and Masters [Miir]
// - Added a new check to the timer [Miir]
// - Added the use of force_3-1, only 2 rooms per map [Miir]
// - Removed ability to walk around in clone room before the
// actual fight (potential exploit) [Miir]
// - Added a debuff script to make the fight more fair [Miir]
// - Added a check for Skill and Stat Points [Miir]
// - Fixed variable names [Miir]
// - Added check for Taekwon (no weapon) [Miir]
// - Change Clone duration (3 minutes 7 seconds) [Miir]
// - Edited the Clone Prizes (More items, harder to get) [Miir]
// - Added OnPCDieEVent [Miir]
// - Added a new function to check Arena users [Miir]
// - Fixed the equip checks to detect change in cards
// Originally only detecting item number, not cards [Miir]
// - Added some mapflags (monster_noteleport, noloot, noexp) [Miir]
// - Added an item restriction list (some exploit items) [Miir]
// - Fixed the npc not spawning 1, 2 or 3 clones depending on
// what you chose [erKURITA]
// - Fixed lots of broken advanced if statements [erKURITA]
// - Re-arranged the item violation checks according to the
// advanced if [erKURITA]
// - Fixed announce part not displaying correctly.
// - Fixed a few more stuff I can't remember XD [erKURITA]
//=================================================================
// -- Map Flags ---------------
force_2-1.gat mapflag pvp
force_2-1.gat mapflag noteleport
force_2-1.gat mapflag monster_noteleport
force_2-1.gat mapflag nosave SavePoint
force_2-1.gat mapflag nobranch
force_2-1.gat mapflag nopenalty
force_2-1.gat mapflag nomemo
force_2-1.gat mapflag nowarp
force_2-1.gat mapflag nowarpto
force_2-1.gat mapflag noicewall
force_2-1.gat mapflag noreturn
force_2-1.gat mapflag noloot
force_2-1.gat mapflag noexp
force_3-1.gat mapflag pvp
force_3-1.gat mapflag noteleport
force_3-1.gat mapflag monster_noteleport
//force_3-1.gat mapflag nosave SavePoint
force_3-1.gat mapflag nobranch
force_3-1.gat mapflag nopenalty
force_3-1.gat mapflag nomemo
force_3-1.gat mapflag nowarp
force_3-1.gat mapflag nowarpto
force_3-1.gat mapflag noicewall
force_3-1.gat mapflag noreturn
force_3-1.gat mapflag noloot
force_3-1.gat mapflag noexp
// -- Clone Arena Gatekeeper ---------------
prt_are_in.gat,97,28,4 script Clone Arena Gatekeeper 105,{
mes "[Clone Arena Gatekeeper]";
mes "Welcome, warrior, to the ^0000FFClone Arena^000000!";
next;
L_Menu:
menu "^0000FFClone Arena Information^000000",L_Q,"^FF0000Restriction List^000000",L_Restrict,"I'd like to register!",L_Register,"No thanks",L_Quit;
L_Q:
mes "[Clone Arena Gatekeeper]";
mes "The ^0000FFClone Arena^000000 allows you to test your skills by fighting a clone of yourself.";
next;
mes "[Clone Arena Gatekeeper]";
mes "The clone is created using your basic stats, skills, and equipment. A basic AI runs the clone.";
next;
mes "[Clone Arena Gatekeeper]";
mes "You have 3 minutes to kill your clone. If you don't, or die, you lose the match.";
next;
mes "[Clone Arena Gatekeeper]";
mes "You obtain points for every successful match. The points obtained can be traded in for prizes.";
next;
mes "[Clone Arena Gatekeeper]";
mes "You must use all possible equipment expect Middle and Lower Headgear. You may not switch equipment during the fight. If you do, you will be kicked and points will be taken away from you.";
next;
mes "[Clone Arena Gatekeeper]";
mes "Finally, you can increase the difficulty by fighting more clones. In return, you can gain more bonus points upon a successful victory.";
next;
goto L_Menu;
L_Restrict:
mes "[Clone Arena Gatekeeper]";
mes "^FF0000The following Equipment and Cards are restricted, and you cannot use them in the Clone Arena:^000000";
mes " ";
mes "^0000FFEQUIPMENT:^000000";
mes "- Azoth";
mes "- Zeny Knife";
mes " ";
mes "^0000FFCARDS:^000000";
mes "- Angeling Card";
mes "- Deviling Card";
mes "- Ghostring Card";
mes "- Raydric Card";
next;
goto L_Menu;
L_Register:
mes "[Clone Arena Gatekeeper]";
if(BaseLevel < 50) goto L_Limit; //-- Limits anyone under level 50 from entering
if(statuspoint > 10) goto L_Stat; //-- Checks stat points
if(skillpoint > 0) goto L_Skill; //-- Checks skill points
mes "Registration Confirmed! Checking for available rooms...";
next;
if (getareausers("force_2-1.gat",7,192,44,155) == 0) && (getareausers("force_2-1.gat",7,44,44,7) == 0) goto L_Room1;
if (getareausers("force_2-1.gat",155,192,192,155) == 0) && (getareausers("force_2-1.gat",155,44,192,7) == 0) goto L_Room2;
if (getareausers("force_3-1.gat",7,192,44,155) == 0) && (getareausers("force_3-1.gat",7,44,44,7) == 0) goto L_Room3;
if (getareausers("force_3-1.gat",155,192,192,155) == 0) && (getareausers("force_3-1.gat",155,44,192,7) == 0) goto L_Room4;
mes "[Clone Arena Gatekeeper]";
mes "I'm sorry, but at this time all the available rooms are occupied. Please try again when an arena has been vacated.";
close;
L_Room1:
killmonster "force_2-1.gat","CloneMob 1::OnMobDead";
set $cloneroomn1$,"force_2-1.gat"; //-- Sets room name
set $clonename1$,getcharid(0); //-- Sets the clone name
set cloneroom,1; //-- Clone room
set $@clone1X1,7; //-- Top-Left X Coordinate
set $@clone1Y1,192; //-- Top-Left Y Coordinate
set $@clone1X2,44; //-- Bottom-Right X Coordinate
set $@clone1Y2,155; //-- Bottom-Right Y Coordinate
set $@clonemob1X,25; //-- X of where the clone spawns
set $@clonemob1Y,177; //-- Y of where the clone spawns
set $@wrp1X,25; //-- X of where the player spawns
set $@wrp1Y,171; //-- Y of where the player spawns
warp "force_2-1.gat",25,23;
close;
L_Room2:
killmonster "force_2-1.gat","CloneMob 2::OnMobDead";
set $cloneroomn2$,"force_2-1.gat"; //-- Sets room name
set $clonename2$,getcharid(0); //-- Sets the clone name
set cloneroom,2; //-- Clone room
set $@clone2X1,155; //-- Top-Left X Coordinate
set $@clone2Y1,192; //-- Top-Left Y Coordinate
set $@clone2X2,192; //-- Bottom-Right X Coordinate
set $@clone2Y2,155; //-- Bottom-Right Y Coordinate
set $@clonemob2X,174; //-- X of where the clone spawns
set $@clonemob2Y,177; //-- Y of where the clone spawns
set $@wrp2X,174; //-- X of where the player spawns
set $@wrp2Y,171; //-- Y of where the player spawns
warp "force_2-1.gat",174,23;
close;
L_Room3:
killmonster "force_3-1.gat","CloneMob 3::OnMobDead";
set $cloneroomn3$,"force_3-1.gat"; //-- Sets room name
set $clonename3$,getcharid(0); //-- Sets the clone name
set cloneroom,3; //-- Clone room
set $@clone3X1,7; //-- Top-Left X Coordinate
set $@clone3Y1,192; //-- Top-Left Y Coordinate
set $@clone3X2,44; //-- Bottom-Right X Coordinate
set $@clone3Y2,155; //-- Bottom-Right Y Coordinate
set $@clonemob3X,25; //-- X of where the clone spawns
set $@clonemob3Y,177; //-- Y of where the clone spawns
set $@wrpX,25; //-- X of where the player spawns
set $@wrpY,171; //-- Y of where the player spawns
warp "force_3-1.gat",25,23;
close;
L_Room4:
killmonster "force_3-1.gat","CloneMob 4::OnMobDead";
set $cloneroomn4$,"force_3-1.gat"; //-- Sets room name
set $clonename4$,getcharid(0); //-- Sets the clone name
set cloneroom,4; //-- Clone room
set $@clone4X1,155; //-- Top-Left X Coordinate
set $@clone4Y1,192; //-- Top-Left Y Coordinate
set $@clone4X2,192; //-- Bottom-Right X Coordinate
set $@clone4Y2,155; //-- Bottom-Right Y Coordinate
set $@clonemob4X,174; //-- X of where the clone spawns
set $@clonemob4Y,177; //-- Y of where the clone spawns
set $@wrp4X,174; //-- X of where the player spawns
set $@wrp4Y,171; //-- Y of where the player spawns
warp "force_3-1.gat",174,23;
close;
L_Limit:
mes "I'm sorry, but you must be at least ^0000FFBase Level 50^000000 or higher to register. We cannot allow the weak to be harmed in this arena.";
close;
L_Stat:
mes "I'm sorry, but you must allocate your stat points before continuing. You may only have 10 unused stat points.";
close;
L_Skill:
mes "I'm sorry, but you must allocate all of your stat points before continuing.";
close;
L_Quit:
mes "[Clone Arena Gatekeeper]";
mes "Just speak to me if you have any further questions.";
close;
}
//=========================================================================================
//== Clone Masters ========================================================================
//=========================================================================================
force_2-1.gat,25,27,4 script Clone Master::cmasta 105,{
mes "[Clone Master]";
mes "I will arrange the settings for the arena.";
next;
mes "[Clone Master]";
mes "Please select the number of clones you wish to battle.";
next;
menu "1 Clone",C_1,"2 Clones",C_2,"3 Clones",C_3,"Leave Arena",L_End;
C_1:
if(cloneroom == 1) {
set $@clonemob1,1; //-- Number of Clones
set $@tempclonepts1,1; //-- Number of possible points
goto L_Start;
} else if(cloneroom == 2) {
set $@clonemob2,1; //-- Number of Clones
set $@tempclonepts2,1; //-- Number of possible points
goto L_Start;
} else if(cloneroom == 3) {
set $@clonemob3,1; //-- Number of Clones
set $@tempclonepts3,1; //-- Number of possible points
goto L_Start;
} else if(cloneroom == 4) {
set $@clonemob4,1; //-- Number of Clones
set $@tempclonepts4,1; //-- Number of possible points
goto L_Start;
} else
close;
C_2:
if(cloneroom == 1) {
set $@clonemob1,2; //-- Number of Clones
set $@tempclonepts1,3; //-- Number of possible points
goto L_Start;
} else if(cloneroom == 2) {
set $@clonemob2,2; //-- Number of Clones
set $@tempclonepts2,3; //-- Number of possible points
goto L_Start;
} else if(cloneroom == 3) {
set $@clonemob3,2; //-- Number of Clones
set $@tempclonepts3,3; //-- Number of possible points
goto L_Start;
} else if(cloneroom == 4) {
set $@clonemob4,2; //-- Number of Clones
set $@tempclonepts4,3; //-- Number of possible points
goto L_Start;
} else
close;
C_3:
if(cloneroom == 1) {
set $@clonemob1,3; //-- Number of Clones
set $@tempclonepts1,6; //-- Number of possible points
goto L_Start;
} else if(cloneroom == 2) {
set $@clonemob2,3; //-- Number of Clones
set $@tempclonepts2,6; //-- Number of possible points
goto L_Start;
} else if(cloneroom == 3) {
set $@clonemob3,3; //-- Number of Clones
set $@tempclonepts3,6; //-- Number of possible points
goto L_Start;
} else if(cloneroom == 4) {
set $@clonemob4,3; //-- Number of Clones
set $@tempclonepts4,6; //-- Number of possible points
goto L_Start;
} else
close;
L_Start:
mes "[Clone Master]";
callfunc "F_CloneICheck"; //-- Starts the function to check gear
mes "I will now lead you to the arena.";
next;
if(cloneroom == 1) {
initnpctimer "CloneTimer 1";
// attachnpctimer getcharid(0);
warp $cloneroomn1$,$@wrp1X,$@wrp1Y;
donpcevent "CloneMob 1";
close;
} else if(cloneroom == 2) {
initnpctimer "CloneTimer 2";
// attachnpctimer getcharid(0);
warp $cloneroomn2$,$@wrp2X,$@wrp2Y;
donpcevent "CloneMob 2";
close;
} else if(cloneroom == 3) {
initnpctimer "CloneTimer 3";
// attachnpctimer getcharid(0);
warp $cloneroomn3$,$@wrp3X,$@wrp3Y;
donpcevent "CloneMob 3";
close;
} else if(cloneroom == 4) {
initnpctimer "CloneTimer 4";
// attachnpctimer getcharid(0);
warp $cloneroomn4$,$@wrp4X,$@wrp4Y;
donpcevent "CloneMob 4";
close;
} else
L_End:
warp "prt_are_in",97,24;
close;
}
force_2-1.gat,174,27,4 duplicate(cmasta) Clone Master 105
force_3-1.gat,25,27,4 duplicate(cmasta) Clone Master 105
force_3-1.gat,174,27,4 duplicate(cmasta) Clone Master 105
//=========================================================================================
//== Clone Mobs ===========================================================================
//=========================================================================================
// -- Clone Mob 1 ---------------
force_2-1.gat,0,0,0 script CloneMob 1 -1,{
if($@clonemob1==1) {
clone $cloneroomn1$,$@clonemob1X,$@clonemob1Y,"CloneMob 1::OnMobDead",$clonename1$,0,1693,0,192;
} else if ($@clonemob1==2) {
clone $cloneroomn1$,$@clonemob1X +2,$@clonemob1Y,"CloneMob 1::OnMobDead",$clonename1$,0,1693,0,192;
clone $cloneroomn1$,$@clonemob1X -2,$@clonemob1Y,"CloneMob 1::OnMobDead",$clonename1$,0,1693,0,192;
} else if ($@clonemob1==3) {
clone $cloneroomn1$,$@clonemob1X,$@clonemob1Y,"CloneMob 1::OnMobDead",$clonename1$,0,1693,0,192;
clone $cloneroomn1$,$@clonemob1X +2,$@clonemob1Y,"CloneMob 1::OnMobDead",$clonename1$,0,1693,0,192;
clone $cloneroomn1$,$@clonemob1X -2,$@clonemob1Y,"CloneMob 1::OnMobDead",$clonename1$,0,1693,0,192;
} else
end;
OnMobDead:
set $@clonemob1,$@clonemob1 -1;
if($@clonemob1 > 1) {
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have "+$@clonemob1+" clones left to defeat!",8;
} else if($@clonemob1 == 1) {
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have "+$@clonemob1+" clone left to defeat!",8;
} else end;
stopnpctimer "CloneTimer 1";
if($@tempclonepts1 == 1 ) areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"Congratulations! You have succesfully defeated your clone!",8;
if($@tempclonepts1 > 1 ) areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"Congratulations! You have succesfully defeated your clones!",8;
set clonepts,clonepts + $@tempclonepts1;
addtimer 3000,"CloneTimer 1::OnTimer192000";
end;
}
// -- Clone Mob 2 ---------------
force_2-1.gat,0,0,0 script CloneMob 2 -1,{
if($@clonemob2==1) {
clone $cloneroomn2$,$@clonemob2X,$@clonemob2Y,"CloneMob 2::OnMobDead",$clonename2$,0,1693,0,192;
} else if ($@clonemob2==2) {
clone $cloneroomn2$,$@clonemob2X +2,$@clonemob2Y,"CloneMob 2::OnMobDead",$clonename2$,0,1693,0,192;
clone $cloneroomn2$,$@clonemob2X -2,$@clonemob2Y,"CloneMob 2::OnMobDead",$clonename2$,0,1693,0,192;
} else if ($@clonemob2==3) {
clone $cloneroomn2$,$@clonemob2X,$@clonemob2Y,"CloneMob 2::OnMobDead",$clonename2$,0,1693,0,192;
clone $cloneroomn2$,$@clonemob2X +2,$@clonemob2Y,"CloneMob 2::OnMobDead",$clonename2$,0,1693,0,192;
clone $cloneroomn2$,$@clonemob2X -2,$@clonemob2Y,"CloneMob 2::OnMobDead",$clonename2$,0,1693,0,192;
} else
end;
OnMobDead:
set $@clonemob2,$@clonemob2 -1;
if($@clonemob2 > 1) {
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have "+$@clonemob2+" clones left to defeat!",8;
} else if($@clonemob2 == 1) {
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have "+$@clonemob2+" clone left to defeat!",8;
} else end;
stopnpctimer "CloneTimer 2";
if($@tempclonepts2 == 1 ) areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"Congratulations! You have succesfully defeated your clone!",8;
if($@tempclonepts2 > 1 ) areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"Congratulations! You have succesfully defeated your clones!",8;
set clonepts,clonepts + $@tempclonepts2;
addtimer 3000,"CloneTimer 2::OnTimer192000";
end;
}
// -- Clone Mob 3 ---------------
force_3-1.gat,0,0,0 script CloneMob 3 -1,{
if($@clonemob3==1) {
clone $cloneroomn3$,$@clonemob3X,$@clonemob3Y,"CloneMob 3::OnMobDead",$clonename3$,0,1693,0,192;
} else if ($@clonemob3==2) {
clone $cloneroomn3$,$@clonemob3X +2,$@clonemob3Y,"CloneMob 3::OnMobDead",$clonename3$,0,1693,0,192;
clone $cloneroomn3$,$@clonemob3X -2,$@clonemob3Y,"CloneMob 3::OnMobDead",$clonename3$,0,1693,0,192;
} else if ($@clonemob3==3) {
clone $cloneroomn3$,$@clonemob3X,$@clonemob3Y,"CloneMob 3::OnMobDead",$clonename3$,0,1693,0,192;
clone $cloneroomn3$,$@clonemob3X +2,$@clonemob3Y,"CloneMob 3::OnMobDead",$clonename3$,0,1693,0,192;
clone $cloneroomn3$,$@clonemob3X -2,$@clonemob3Y,"CloneMob 3::OnMobDead",$clonename3$,0,1693,0,192;
} else
end;
OnMobDead:
set $@clonemob3,$@clonemob3 -1;
if($@clonemob3 > 1) {
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have "+$@clonemob3+" clones left to defeat!",8;
} else if($@clonemob3 == 1) {
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have "+$@clonemob3+" clone left to defeat!",8;
} else end;
stopnpctimer "CloneTimer 3";
if($@tempclonepts3 == 1 ) areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"Congratulations! You have succesfully defeated your clone!",8;
if($@tempclonepts3 > 1 ) areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"Congratulations! You have succesfully defeated your clones!",8;
set clonepts,clonepts + $@tempclonepts3;
addtimer 3000,"CloneTimer 3::OnTimer192000";
end;
}
// -- Clone Mob 4 ---------------
force_3-1.gat,0,0,0 script CloneMob 4 -1,{
if($@clonemob4==1){
clone $cloneroomn4$,$@clonemob4X,$@clonemob4Y,"CloneMob 4::OnMobDead",$clonename4$,0,1693,0,192;
} else if($@clonemob4==2) {
clone $cloneroomn4$,$@clonemob4X +2,$@clonemob4Y,"CloneMob 4::OnMobDead",$clonename4$,0,1693,0,192;
clone $cloneroomn4$,$@clonemob4X -2,$@clonemob4Y,"CloneMob 4::OnMobDead",$clonename4$,0,1693,0,192;
} else if($@clonemob4==3) {
clone $cloneroomn4$,$@clonemob4X,$@clonemob4Y,"CloneMob 4::OnMobDead",$clonename4$,0,1693,0,192;
clone $cloneroomn4$,$@clonemob4X +2,$@clonemob4Y,"CloneMob 4::OnMobDead",$clonename4$,0,1693,0,192;
clone $cloneroomn4$,$@clonemob4X -2,$@clonemob4Y,"CloneMob 4::OnMobDead",$clonename4$,0,1693,0,192;
} else
end;
OnMobDead:
set $@clonemob4,$@clonemob4 -1;
if($@clonemob4 > 1) {
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have "+$@clonemob4+" clones left to defeat!",8;
} else if($@clonemob4 == 1) {
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have "+$@clonemob4+" clone left to defeat!",8;
} else end;
stopnpctimer "CloneTimer 4";
if($@tempclonepts4 == 1 ) areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"Congratulations! You have succesfully defeated your clone!",8;
if($@tempclonepts4 > 1 ) areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"Congratulations! You have succesfully defeated your clones!",8;
set clonepts,clonepts + $@tempclonepts4;
addtimer 3000,"CloneTimer 4::OnTimer192000";
end;
}
//=========================================================================================
//== Clone Timers =========================================================================
//=========================================================================================
// -- Clone Timer 1 ---------------
force_2-1.gat,0,0,0 script CloneTimer 1 -1,{
OnTimer1000:
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"The arena has been initiated! Prepare to fight!",8;
callfunc "F_CloneBuff";
callfunc "F_CloneEquip";
end;
OnTimer2000:
callfunc "F_CloneEquip";
end;
OnTimer3000:
callfunc "F_CloneEquip";
end;
OnTimer4000:
callfunc "F_CloneEquip";
end;
OnTimer5000:
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have 3 minutes to defeat your clone!",8;
callfunc "F_CloneEquip";
end;
OnTimer6000:
callfunc "F_CloneEquip";
end;
OnTimer7000:
callfunc "F_CloneEquip";
end;
OnTimer8000:
callfunc "F_CloneEquip";
end;
OnTimer9000:
callfunc "F_CloneEquip";
end;
OnTimer10000:
callfunc "F_CloneEquip";
end;
OnTimer11000:
callfunc "F_CloneEquip";
end;
OnTimer12000:
callfunc "F_CloneEquip";
end;
OnTimer13000:
callfunc "F_CloneEquip";
end;
OnTimer14000:
callfunc "F_CloneEquip";
end;
OnTimer15000:
callfunc "F_CloneEquip";
end;
OnTimer16000:
callfunc "F_CloneEquip";
end;
OnTimer17000:
callfunc "F_CloneEquip";
end;
OnTimer18000:
callfunc "F_CloneEquip";
end;
OnTimer19000:
callfunc "F_CloneEquip";
end;
OnTimer20000:
callfunc "F_CloneEquip";
end;
OnTimer21000:
callfunc "F_CloneEquip";
end;
OnTimer22000:
callfunc "F_CloneEquip";
end;
OnTimer23000:
callfunc "F_CloneEquip";
end;
OnTimer24000:
callfunc "F_CloneEquip";
end;
OnTimer25000:
callfunc "F_CloneEquip";
end;
OnTimer26000:
callfunc "F_CloneEquip";
end;
OnTimer27000:
callfunc "F_CloneEquip";
end;
OnTimer28000:
callfunc "F_CloneEquip";
end;
OnTimer29000:
callfunc "F_CloneEquip";
end;
OnTimer30000:
callfunc "F_CloneEquip";
end;
OnTimer31000:
callfunc "F_CloneEquip";
end;
OnTimer32000:
callfunc "F_CloneEquip";
end;
OnTimer33000:
callfunc "F_CloneEquip";
end;
OnTimer34000:
callfunc "F_CloneEquip";
end;
OnTimer35000:
callfunc "F_CloneEquip";
end;
OnTimer40000:
callfunc "F_CloneEquip";
end;
OnTimer45000:
callfunc "F_CloneEquip";
end;
OnTimer50000:
callfunc "F_CloneEquip";
end;
OnTimer55000:
callfunc "F_CloneEquip";
end;
OnTimer60000:
callfunc "F_CloneEquip";
end;
OnTimer61000:
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have 2 minutes left!",8;
callfunc "F_CloneEquip";
end;
OnTimer65000:
callfunc "F_CloneEquip";
end;
OnTimer70000:
callfunc "F_CloneEquip";
end;
OnTimer75000:
callfunc "F_CloneEquip";
end;
OnTimer80000:
callfunc "F_CloneEquip";
end;
OnTimer85000:
callfunc "F_CloneEquip";
end;
OnTimer90000:
callfunc "F_CloneEquip";
end;
OnTimer95000:
callfunc "F_CloneEquip";
end;
OnTimer100000:
callfunc "F_CloneEquip";
end;
OnTimer105000:
callfunc "F_CloneEquip";
end;
OnTimer110000:
callfunc "F_CloneEquip";
end;
OnTimer115000:
callfunc "F_CloneEquip";
end;
OnTimer120000:
callfunc "F_CloneEquip";
end;
OnTimer121000:
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have 1 minute left!",8;
callfunc "F_CloneEquip";
end;
OnTimer125000:
callfunc "F_CloneEquip";
end;
OnTimer130000:
callfunc "F_CloneEquip";
end;
OnTimer135000:
callfunc "F_CloneEquip";
end;
OnTimer140000:
callfunc "F_CloneEquip";
end;
OnTimer145000:
callfunc "F_CloneEquip";
end;
OnTimer150000:
callfunc "F_CloneEquip";
end;
OnTimer151000:
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have 30 seconds left!",8;
callfunc "F_CloneEquip";
end;
OnTimer155000:
callfunc "F_CloneEquip";
end;
OnTimer160000:
callfunc "F_CloneEquip";
end;
OnTimer165000:
callfunc "F_CloneEquip";
end;
OnTimer170000:
callfunc "F_CloneEquip";
end;
OnTimer175000:
callfunc "F_CloneEquip";
end;
OnTimer176000:
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have 5 seconds left!",8;
end;
OnTimer177000:
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have 4 seconds left!",8;
end;
OnTimer178000:
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have 3 seconds left!",8;
end;
OnTimer179000:
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have 2 seconds left!",8;
end;
OnTimer180000:
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have 1 second left!",8;
end;
OnTimer185000:
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"Okay time's up! You failed!",8;
end;
OnTimer192000:
stopnpctimer;
sc_end 72; //-- Stops Chemical Protection Weapon
sc_end 73; //-- Stops Chemical Protection Shield
sc_end 74; //-- Stops Chemical Protection Armor
sc_end 75; //-- Stops Chemical Protection Helm
areawarp $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"prt_are_in", 97, 24;
killmonster $cloneroomn$,"CloneMob 1::OnMobDead";
end;
}
// -- Clone Timer 2 ---------------
force_2-1.gat,1,1,0 script CloneTimer 2 -1,{
OnTimer1000:
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"The arena has been initiated! Prepare to fight!",8;
callfunc "F_CloneBuff";
callfunc "F_CloneEquip";
end;
OnTimer2000:
callfunc "F_CloneEquip";
end;
OnTimer3000:
callfunc "F_CloneEquip";
end;
OnTimer4000:
callfunc "F_CloneEquip";
end;
OnTimer5000:
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have 3 minutes to defeat your clone!",8;
callfunc "F_CloneEquip";
end;
OnTimer6000:
callfunc "F_CloneEquip";
end;
OnTimer7000:
callfunc "F_CloneEquip";
end;
OnTimer8000:
callfunc "F_CloneEquip";
end;
OnTimer9000:
callfunc "F_CloneEquip";
end;
OnTimer10000:
callfunc "F_CloneEquip";
end;
OnTimer11000:
callfunc "F_CloneEquip";
end;
OnTimer12000:
callfunc "F_CloneEquip";
end;
OnTimer13000:
callfunc "F_CloneEquip";
end;
OnTimer14000:
callfunc "F_CloneEquip";
end;
OnTimer15000:
callfunc "F_CloneEquip";
end;
OnTimer16000:
callfunc "F_CloneEquip";
end;
OnTimer17000:
callfunc "F_CloneEquip";
end;
OnTimer18000:
callfunc "F_CloneEquip";
end;
OnTimer19000:
callfunc "F_CloneEquip";
end;
OnTimer20000:
callfunc "F_CloneEquip";
end;
OnTimer21000:
callfunc "F_CloneEquip";
end;
OnTimer22000:
callfunc "F_CloneEquip";
end;
OnTimer23000:
callfunc "F_CloneEquip";
end;
OnTimer24000:
callfunc "F_CloneEquip";
end;
OnTimer25000:
callfunc "F_CloneEquip";
end;
OnTimer26000:
callfunc "F_CloneEquip";
end;
OnTimer27000:
callfunc "F_CloneEquip";
end;
OnTimer28000:
callfunc "F_CloneEquip";
end;
OnTimer29000:
callfunc "F_CloneEquip";
end;
OnTimer30000:
callfunc "F_CloneEquip";
end;
OnTimer31000:
callfunc "F_CloneEquip";
end;
OnTimer32000:
callfunc "F_CloneEquip";
end;
OnTimer33000:
callfunc "F_CloneEquip";
end;
OnTimer34000:
callfunc "F_CloneEquip";
end;
OnTimer35000:
callfunc "F_CloneEquip";
end;
OnTimer40000:
callfunc "F_CloneEquip";
end;
OnTimer45000:
callfunc "F_CloneEquip";
end;
OnTimer50000:
callfunc "F_CloneEquip";
end;
OnTimer55000:
callfunc "F_CloneEquip";
end;
OnTimer60000:
callfunc "F_CloneEquip";
end;
OnTimer61000:
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have 2 minutes left!",8;
callfunc "F_CloneEquip";
end;
OnTimer65000:
callfunc "F_CloneEquip";
end;
OnTimer70000:
callfunc "F_CloneEquip";
end;
OnTimer75000:
callfunc "F_CloneEquip";
end;
OnTimer80000:
callfunc "F_CloneEquip";
end;
OnTimer85000:
callfunc "F_CloneEquip";
end;
OnTimer90000:
callfunc "F_CloneEquip";
end;
OnTimer95000:
callfunc "F_CloneEquip";
end;
OnTimer100000:
callfunc "F_CloneEquip";
end;
OnTimer105000:
callfunc "F_CloneEquip";
end;
OnTimer110000:
callfunc "F_CloneEquip";
end;
OnTimer115000:
callfunc "F_CloneEquip";
end;
OnTimer120000:
callfunc "F_CloneEquip";
end;
OnTimer121000:
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have 1 minute left!",8;
callfunc "F_CloneEquip";
end;
OnTimer125000:
callfunc "F_CloneEquip";
end;
OnTimer130000:
callfunc "F_CloneEquip";
end;
OnTimer135000:
callfunc "F_CloneEquip";
end;
OnTimer140000:
callfunc "F_CloneEquip";
end;
OnTimer145000:
callfunc "F_CloneEquip";
end;
OnTimer150000:
callfunc "F_CloneEquip";
end;
OnTimer151000:
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have 30 seconds left!",8;
callfunc "F_CloneEquip";
end;
OnTimer155000:
callfunc "F_CloneEquip";
end;
OnTimer160000:
callfunc "F_CloneEquip";
end;
OnTimer165000:
callfunc "F_CloneEquip";
end;
OnTimer170000:
callfunc "F_CloneEquip";
end;
OnTimer175000:
callfunc "F_CloneEquip";
end;
OnTimer176000:
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have 5 seconds left!",8;
end;
OnTimer177000:
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have 4 seconds left!",8;
end;
OnTimer178000:
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have 3 seconds left!",8;
end;
OnTimer179000:
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have 2 seconds left!",8;
end;
OnTimer180000:
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have 1 second left!",8;
end;
OnTimer185000:
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"Okay time's up! You failed!",8;
end;
OnTimer192000:
stopnpctimer;
sc_end 72; //-- Stops Chemical Protection Weapon
sc_end 73; //-- Stops Chemical Protection Shield
sc_end 74; //-- Stops Chemical Protection Armor
sc_end 75; //-- Stops Chemical Protection Helm
areawarp $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"prt_are_in", 97, 24;
killmonster $cloneroomn$,"CloneMob 2::OnMobDead";
end;
}
// -- Clone Timer 3 ---------------
force_2-1.gat,0,0,0 script CloneTimer 3 -1,{
OnTimer1000:
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"The arena has been initiated! Prepare to fight!",8;
callfunc "F_CloneBuff";
callfunc "F_CloneEquip";
end;
OnTimer2000:
callfunc "F_CloneEquip";
end;
OnTimer3000:
callfunc "F_CloneEquip";
end;
OnTimer4000:
callfunc "F_CloneEquip";
end;
OnTimer5000:
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have 3 minutes to defeat your clone!",8;
callfunc "F_CloneEquip";
end;
OnTimer6000:
callfunc "F_CloneEquip";
end;
OnTimer7000:
callfunc "F_CloneEquip";
end;
OnTimer8000:
callfunc "F_CloneEquip";
end;
OnTimer9000:
callfunc "F_CloneEquip";
end;
OnTimer10000:
callfunc "F_CloneEquip";
end;
OnTimer11000:
callfunc "F_CloneEquip";
end;
OnTimer12000:
callfunc "F_CloneEquip";
end;
OnTimer13000:
callfunc "F_CloneEquip";
end;
OnTimer14000:
callfunc "F_CloneEquip";
end;
OnTimer15000:
callfunc "F_CloneEquip";
end;
OnTimer16000:
callfunc "F_CloneEquip";
end;
OnTimer17000:
callfunc "F_CloneEquip";
end;
OnTimer18000:
callfunc "F_CloneEquip";
end;
OnTimer19000:
callfunc "F_CloneEquip";
end;
OnTimer20000:
callfunc "F_CloneEquip";
end;
OnTimer21000:
callfunc "F_CloneEquip";
end;
OnTimer22000:
callfunc "F_CloneEquip";
end;
OnTimer23000:
callfunc "F_CloneEquip";
end;
OnTimer24000:
callfunc "F_CloneEquip";
end;
OnTimer25000:
callfunc "F_CloneEquip";
end;
OnTimer26000:
callfunc "F_CloneEquip";
end;
OnTimer27000:
callfunc "F_CloneEquip";
end;
OnTimer28000:
callfunc "F_CloneEquip";
end;
OnTimer29000:
callfunc "F_CloneEquip";
end;
OnTimer30000:
callfunc "F_CloneEquip";
end;
OnTimer31000:
callfunc "F_CloneEquip";
end;
OnTimer32000:
callfunc "F_CloneEquip";
end;
OnTimer33000:
callfunc "F_CloneEquip";
end;
OnTimer34000:
callfunc "F_CloneEquip";
end;
OnTimer35000:
callfunc "F_CloneEquip";
end;
OnTimer40000:
callfunc "F_CloneEquip";
end;
OnTimer45000:
callfunc "F_CloneEquip";
end;
OnTimer50000:
callfunc "F_CloneEquip";
end;
OnTimer55000:
callfunc "F_CloneEquip";
end;
OnTimer60000:
callfunc "F_CloneEquip";
end;
OnTimer61000:
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have 2 minutes left!",8;
callfunc "F_CloneEquip";
end;
OnTimer65000:
callfunc "F_CloneEquip";
end;
OnTimer70000:
callfunc "F_CloneEquip";
end;
OnTimer75000:
callfunc "F_CloneEquip";
end;
OnTimer80000:
callfunc "F_CloneEquip";
end;
OnTimer85000:
callfunc "F_CloneEquip";
end;
OnTimer90000:
callfunc "F_CloneEquip";
end;
OnTimer95000:
callfunc "F_CloneEquip";
end;
OnTimer100000:
callfunc "F_CloneEquip";
end;
OnTimer105000:
callfunc "F_CloneEquip";
end;
OnTimer110000:
callfunc "F_CloneEquip";
end;
OnTimer115000:
callfunc "F_CloneEquip";
end;
OnTimer120000:
callfunc "F_CloneEquip";
end;
OnTimer121000:
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have 1 minute left!",8;
callfunc "F_CloneEquip";
end;
OnTimer125000:
callfunc "F_CloneEquip";
end;
OnTimer130000:
callfunc "F_CloneEquip";
end;
OnTimer135000:
callfunc "F_CloneEquip";
end;
OnTimer140000:
callfunc "F_CloneEquip";
end;
OnTimer145000:
callfunc "F_CloneEquip";
end;
OnTimer150000:
callfunc "F_CloneEquip";
end;
OnTimer151000:
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have 30 seconds left!",8;
callfunc "F_CloneEquip";
end;
OnTimer155000:
callfunc "F_CloneEquip";
end;
OnTimer160000:
callfunc "F_CloneEquip";
end;
OnTimer165000:
callfunc "F_CloneEquip";
end;
OnTimer170000:
callfunc "F_CloneEquip";
end;
OnTimer175000:
callfunc "F_CloneEquip";
end;
OnTimer176000:
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have 5 seconds left!",8;
end;
OnTimer177000:
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have 4 seconds left!",8;
end;
OnTimer178000:
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have 3 seconds left!",8;
end;
OnTimer179000:
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have 2 seconds left!",8;
end;
OnTimer180000:
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have 1 second left!",8;
end;
OnTimer185000:
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"Okay time's up! You failed!",8;
end;
OnTimer192000:
stopnpctimer;
sc_end 72; //-- Stops Chemical Protection Weapon
sc_end 73; //-- Stops Chemical Protection Shield
sc_end 74; //-- Stops Chemical Protection Armor
sc_end 75; //-- Stops Chemical Protection Helm
areawarp $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"prt_are_in", 97, 24;
killmonster $cloneroomn$,"CloneMob 3::OnMobDead";
end;
}
// -- Clone Timer 4 ---------------
force_2-1.gat,0,0,0 script CloneTimer 4 -1,{
OnTimer1000:
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"The arena has been initiated! Prepare to fight!",8;
callfunc "F_CloneBuff";
callfunc "F_CloneEquip";
end;
OnTimer2000:
callfunc "F_CloneEquip";
end;
OnTimer3000:
callfunc "F_CloneEquip";
end;
OnTimer4000:
callfunc "F_CloneEquip";
end;
OnTimer5000:
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have 3 minutes to defeat your clone!",8;
callfunc "F_CloneEquip";
end;
OnTimer6000:
callfunc "F_CloneEquip";
end;
OnTimer7000:
callfunc "F_CloneEquip";
end;
OnTimer8000:
callfunc "F_CloneEquip";
end;
OnTimer9000:
callfunc "F_CloneEquip";
end;
OnTimer10000:
callfunc "F_CloneEquip";
end;
OnTimer11000:
callfunc "F_CloneEquip";
end;
OnTimer12000:
callfunc "F_CloneEquip";
end;
OnTimer13000:
callfunc "F_CloneEquip";
end;
OnTimer14000:
callfunc "F_CloneEquip";
end;
OnTimer15000:
callfunc "F_CloneEquip";
end;
OnTimer16000:
callfunc "F_CloneEquip";
end;
OnTimer17000:
callfunc "F_CloneEquip";
end;
OnTimer18000:
callfunc "F_CloneEquip";
end;
OnTimer19000:
callfunc "F_CloneEquip";
end;
OnTimer20000:
callfunc "F_CloneEquip";
end;
OnTimer21000:
callfunc "F_CloneEquip";
end;
OnTimer22000:
callfunc "F_CloneEquip";
end;
OnTimer23000:
callfunc "F_CloneEquip";
end;
OnTimer24000:
callfunc "F_CloneEquip";
end;
OnTimer25000:
callfunc "F_CloneEquip";
end;
OnTimer26000:
callfunc "F_CloneEquip";
end;
OnTimer27000:
callfunc "F_CloneEquip";
end;
OnTimer28000:
callfunc "F_CloneEquip";
end;
OnTimer29000:
callfunc "F_CloneEquip";
end;
OnTimer30000:
callfunc "F_CloneEquip";
end;
OnTimer31000:
callfunc "F_CloneEquip";
end;
OnTimer32000:
callfunc "F_CloneEquip";
end;
OnTimer33000:
callfunc "F_CloneEquip";
end;
OnTimer34000:
callfunc "F_CloneEquip";
end;
OnTimer35000:
callfunc "F_CloneEquip";
end;
OnTimer40000:
callfunc "F_CloneEquip";
end;
OnTimer45000:
callfunc "F_CloneEquip";
end;
OnTimer50000:
callfunc "F_CloneEquip";
end;
OnTimer55000:
callfunc "F_CloneEquip";
end;
OnTimer60000:
callfunc "F_CloneEquip";
end;
OnTimer61000:
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have 2 minutes left!",8;
callfunc "F_CloneEquip";
end;
OnTimer65000:
callfunc "F_CloneEquip";
end;
OnTimer70000:
callfunc "F_CloneEquip";
end;
OnTimer75000:
callfunc "F_CloneEquip";
end;
OnTimer80000:
callfunc "F_CloneEquip";
end;
OnTimer85000:
callfunc "F_CloneEquip";
end;
OnTimer90000:
callfunc "F_CloneEquip";
end;
OnTimer95000:
callfunc "F_CloneEquip";
end;
OnTimer100000:
callfunc "F_CloneEquip";
end;
OnTimer105000:
callfunc "F_CloneEquip";
end;
OnTimer110000:
callfunc "F_CloneEquip";
end;
OnTimer115000:
callfunc "F_CloneEquip";
end;
OnTimer120000:
callfunc "F_CloneEquip";
end;
OnTimer121000:
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have 1 minute left!",8;
callfunc "F_CloneEquip";
end;
OnTimer125000:
callfunc "F_CloneEquip";
end;
OnTimer130000:
callfunc "F_CloneEquip";
end;
OnTimer135000:
callfunc "F_CloneEquip";
end;
OnTimer140000:
callfunc "F_CloneEquip";
end;
OnTimer145000:
callfunc "F_CloneEquip";
end;
OnTimer150000:
callfunc "F_CloneEquip";
end;
OnTimer151000:
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have 30 seconds left!",8;
callfunc "F_CloneEquip";
end;
OnTimer155000:
callfunc "F_CloneEquip";
end;
OnTimer160000:
callfunc "F_CloneEquip";
end;
OnTimer165000:
callfunc "F_CloneEquip";
end;
OnTimer170000:
callfunc "F_CloneEquip";
end;
OnTimer175000:
callfunc "F_CloneEquip";
end;
OnTimer176000:
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have 5 seconds left!",8;
end;
OnTimer177000:
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have 4 seconds left!",8;
end;
OnTimer178000:
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have 3 seconds left!",8;
end;
OnTimer179000:
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have 2 seconds left!",8;
end;
OnTimer180000:
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have 1 second left!",8;
end;
OnTimer185000:
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"Okay time's up! You failed!",8;
end;
OnTimer192000:
stopnpctimer;
sc_end 72; //-- Stops Chemical Protection Weapon
sc_end 73; //-- Stops Chemical Protection Shield
sc_end 74; //-- Stops Chemical Protection Armor
sc_end 75; //-- Stops Chemical Protection Helm
areawarp $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"prt_are_in", 97, 24;
killmonster $cloneroomn$,"CloneMob 4::OnMobDead";
end;
}
//=========================================================================================
//== Clone Functions ======================================================================
//=========================================================================================
// -- Clone Buff/Debuff ---------------
function script F_CloneBuff {
sc_end SC_PROVOKE;
sc_end SC_ENDURE;
sc_end SC_TWOHANDQUICKEN;
sc_end SC_CONCENTRATE;
sc_end SC_ENCPOISON;
sc_end SC_POISONREACT;
sc_end SC_ANGELUS;
sc_end SC_BLESSING;
sc_end SC_SIGNUMCRUCIS;
sc_end SC_INCREASEAGI;
sc_end SC_SLOWPOISON;
sc_end SC_IMPOSITIO;
sc_end SC_SUFFRAGIUM;
sc_end SC_ASPERSIO;
sc_end SC_KYRIE;
sc_end SC_MAGNIFICAT;
sc_end SC_GLORIA;
sc_end SC_ADRENALINE;
sc_end SC_WEAPONPERFECTION;
sc_end SC_OVERTHRUST;
sc_end SC_MAXIMIZEPOWER;
sc_end SC_LOUD;
sc_end SC_ENERGYCOAT;
sc_end SC_ASPDPOTION0;
sc_end SC_ASPDPOTION1;
sc_end SC_ASPDPOTION2;
sc_end SC_ASPDPOTION3;
sc_end SC_SPEEDUP0;
sc_end SC_SPEEDUP1;
sc_end SC_ATKPOTION;
sc_end SC_MATKPOTION;
sc_end SC_AUTOGUARD;
sc_end SC_REFLECTSHIELD;
sc_end SC_PROVIDENCE;
sc_end SC_DEFENDER;
sc_end SC_AUTOSPELL;
sc_end SC_SIGHTTRASHER;
sc_end SC_SPEARSQUICKEN;
sc_end SC_AUTOCOUNTER;
sc_end SC_SIGHT;
sc_end SC_RUWACH;
sc_end SC_EXTREMITYFIST;
sc_end SC_EXPLOSIONSPIRITS;
sc_end SC_COMBO;
sc_end SC_BLADESTOP_WAIT;
sc_end SC_BLADESTOP;
sc_end SC_FIREWEAPON;
sc_end SC_WATERWEAPON;
sc_end SC_WINDWEAPON;
sc_end SC_EARTHWEAPON;
sc_end SC_VIOLENTGALE;
sc_end SC_WATK_ELEMENT;
sc_end SC_ARMOR_ELEMENT;
sc_end SC_AURABLADE;
sc_end SC_PARRYING;
sc_end SC_CONCENTRATION;
sc_end SC_TENSIONRELAX;
sc_end SC_BERSERK;
sc_end SC_FURY;
sc_end SC_GOSPEL;
sc_end SC_ASSUMPTIO;
sc_end SC_GUILDAURA;
sc_end SC_MAGICPOWER;
sc_end SC_EDP;
sc_end SC_TRUESIGHT;
sc_end SC_WINDWALK;
sc_end SC_MELTDOWN;
sc_end SC_CARTBOOST;
sc_end SC_CHASEWALK;
sc_end SC_REJECTSWORD;
sc_end SC_MARIONETTE;
sc_end SC_MARIONETTE2;
sc_end SC_MOONLIT;
sc_end SC_JOINTBEAT;
sc_end SC_MINDBREAKER;
sc_end SC_MEMORIZE;
sc_end SC_DEVOTION;
sc_end SC_SACRIFICE;
sc_end SC_STEELBODY;
sc_end SC_READYSTORM;
sc_end SC_READYDOWN;
sc_end SC_READYTURN;
sc_end SC_READYCOUNTER;
sc_end SC_DODGE;
sc_end SC_RUN;
sc_end SC_SHADOWWEAPON;
sc_end SC_ADRENALINE2;
sc_end SC_GHOSTWEAPON;
sc_end SC_KAIZEL;
sc_end SC_KAAHI;
sc_end SC_KAUPE;
sc_end SC_ONEHAND;
sc_end SC_PRESERVE;
sc_end SC_BATTLEORDERS;
sc_end SC_REGENERATION;
sc_end SC_DOUBLECAST;
sc_end SC_MAXOVERTHRUST;
sc_end SC_LONGING;
sc_end SC_HERMODE;
sc_end SC_SHRINK;
sc_end SC_SIGHTBLASTER;
sc_end SC_CLOSECONFINE;
sc_end SC_CLOSECONFINE2;
sc_end SC_DANCING;
sc_end SC_LULLABY;
sc_end SC_RICHMANKIM;
sc_end SC_ETERNALCHAOS;
sc_end SC_DRUMBATTLE;
sc_end SC_NIBELUNGEN;
sc_end SC_ROKISWEIL;
sc_end SC_INTOABYSS;
sc_end SC_SIEGFRIED;
sc_end SC_WHISTLE;
sc_end SC_ASSNCROS;
sc_end SC_POEMBRAGI;
sc_end SC_APPLEIDUN;
sc_end SC_UGLYDANCE;
sc_end SC_HUMMING;
sc_end SC_DONTFORGETME;
sc_end SC_FORTUNE;
sc_end SC_SERVICE4U;
sc_end SC_STOP;
sc_end SC_SPURT;
sc_end SC_SPIRIT;
sc_end SC_COMA;
sc_end SC_INTRAVISION;
sc_end SC_INCALLSTATUS;
sc_end SC_INCSTR;
sc_end SC_INCAGI;
sc_end SC_INCVIT;
sc_end SC_INCINT;
sc_end SC_INCDEX;
sc_end SC_INCLUK;
sc_end SC_INCHIT;
sc_end SC_INCHITRATE;
sc_end SC_INCFLEE;
sc_end SC_INCFLEERATE;
sc_end SC_INCMHPRATE;
sc_end SC_INCMSPRATE;
sc_end SC_INCATKRATE;
sc_end SC_INCMATKRATE;
sc_end SC_INCDEFRATE;
sc_end SC_STRFOOD;
sc_end SC_AGIFOOD;
sc_end SC_VITFOOD;
sc_end SC_INTFOOD;
sc_end SC_DEXFOOD;
sc_end SC_LUKFOOD;
sc_end SC_HITFOOD;
sc_end SC_FLEEFOOD;
sc_end SC_BATKFOOD;
sc_end SC_WATKFOOD;
sc_end SC_MATKFOOD;
sc_end SC_SCRESIST;
sc_end SC_WARM;
sc_end SC_SUN_COMFORT;
sc_end SC_MOON_COMFORT;
sc_end SC_STAR_COMFORT;
sc_end SC_FUSION;
sc_end SC_SKILLRATE_UP;
sc_end SC_SKE;
sc_end SC_KAITE;
sc_end SC_SWOO;
sc_end SC_SKA;
// sc_end SC_TKDORI;
// sc_end SC_MAX;
sc_start 72,188000,10; //-- Chemical Protection Weapon
sc_start 73,188000,10; //-- Chemical Protection Shield
sc_start 74,188000,10; //-- Chemical Protection Armor
sc_start 75,188000,10; //-- Chemical Protection Helm
return;
}
// -- Clone Inventory Function ---------------
function script F_CloneICheck {
if(getequipisequiped(1)==0) {
mes "^FF0000You must equip a Head Gear before entering the Clone Arena!^000000";
close;
} else if(getequipisequiped(2)==0) {
mes "^FF0000You must equip an Armor before entering the Clone Arena!^000000";
close;
} else if(getequipisequiped(3)==0) {
mes "^FF0000You must equip a Weapon and/or Shield before entering the Clone Arena!^000000";
close;
} else if((getequipisequiped(4)==0) && (BaseJob != Job_Taekwon)) {
mes "^FF0000You must equip a Weapon and/or Shield before entering the Clone Arena!^000000";
close;
} else if((getequipid(4)==1235) || (getequipid(4)==1238)) {
mes "^FF0000This weapon is restricted! Please select another weapon before entering the Clone Arena!^000000";
close;
} else if(getequipisequiped(5)==0) {
mes "^FF0000You must equip a Garment before entering the Clone Arena!^000000";
close;
} else if(getequipisequiped(6)==0) {
mes "^FF0000You must equip a Foot Gear before entering the Clone Arena!^000000";
close;
} else if(getequipisequiped(7)==0) {
mes "^FF0000You must equip two Accessories before entering the Clone Arena!^000000";
close;
} else if(getequipisequiped(8)==0) {
mes "^FF0000You must equip two Accessories before entering the Clone Arena!^000000";
close;
} else if (cloneroom == 1) {
set $@equip1r1,getequipid(1);
set $@slot1r1n0,getequipcardid(1,0);
set $@slot1r1n1,getequipcardid(1,1);
set $@slot1r1n2,getequipcardid(1,2);
set $@slot1r1n3,getequipcardid(1,3);
set $@equip1r2,getequipid(2);
set $@slot1r2n0,getequipcardid(2,0);
set $@slot1r2n1,getequipcardid(2,1);
set $@slot1r2n2,getequipcardid(2,2);
set $@slot1r2n3,getequipcardid(2,3);
set $@equip1r3,getequipid(3);
set $@slot1r3n0,getequipcardid(3,0);
set $@slot1r3n1,getequipcardid(3,1);
set $@slot1r3n2,getequipcardid(3,2);
set $@slot1r3n3,getequipcardid(3,3);
set $@equip1r4,getequipid(4);
set $@slot1r4n0,getequipcardid(4,0);
set $@slot1r4n1,getequipcardid(4,1);
set $@slot1r4n2,getequipcardid(4,2);
set $@slot1r4n3,getequipcardid(4,3);
set $@equip1r5,getequipid(5);
set $@slot1r5n0,getequipcardid(5,0);
set $@slot1r5n1,getequipcardid(5,1);
set $@slot1r5n2,getequipcardid(5,2);
set $@slot1r5n3,getequipcardid(5,3);
set $@equip1r6,getequipid(6);
set $@slot1r6n0,getequipcardid(6,0);
set $@slot1r6n1,getequipcardid(6,1);
set $@slot1r6n2,getequipcardid(6,2);
set $@slot1r6n3,getequipcardid(6,3);
set $@equip1r7,getequipid(7);
set $@slot1r7n0,getequipcardid(7,0);
set $@slot1r7n1,getequipcardid(7,1);
set $@slot1r7n2,getequipcardid(7,2);
set $@slot1r7n3,getequipcardid(7,3);
set $@equip1r8,getequipid(8);
set $@slot1r8n0,getequipcardid(8,0);
set $@slot1r8n1,getequipcardid(8,1);
set $@slot1r8n2,getequipcardid(8,2);
set $@slot1r8n3,getequipcardid(8,3);
return;
} else if (cloneroom == 2) {
set $@equip2r1,getequipid(1);
set $@slot2r1n0,getequipcardid(1,0);
set $@slot2r1n1,getequipcardid(1,1);
set $@slot2r1n2,getequipcardid(1,2);
set $@slot2r1n3,getequipcardid(1,3);
set $@equip2r2,getequipid(2);
set $@slot2r2n0,getequipcardid(2,0);
set $@slot2r2n1,getequipcardid(2,1);
set $@slot2r2n2,getequipcardid(2,2);
set $@slot2r2n3,getequipcardid(2,3);
set $@equip2r3,getequipid(3);
set $@slot2r3n0,getequipcardid(3,0);
set $@slot2r3n1,getequipcardid(3,1);
set $@slot2r3n2,getequipcardid(3,2);
set $@slot2r3n3,getequipcardid(3,3);
set $@equip2r4,getequipid(4);
set $@slot2r4n0,getequipcardid(4,0);
set $@slot2r4n1,getequipcardid(4,1);
set $@slot2r4n2,getequipcardid(4,2);
set $@slot2r4n3,getequipcardid(4,3);
set $@equip2r5,getequipid(5);
set $@slot2r5n0,getequipcardid(5,0);
set $@slot2r5n1,getequipcardid(5,1);
set $@slot2r5n2,getequipcardid(5,2);
set $@slot2r5n3,getequipcardid(5,3);
set $@equip2r6,getequipid(6);
set $@slot2r6n0,getequipcardid(6,0);
set $@slot2r6n1,getequipcardid(6,1);
set $@slot2r6n2,getequipcardid(6,2);
set $@slot2r6n3,getequipcardid(6,3);
set $@equip2r7,getequipid(7);
set $@slot2r7n0,getequipcardid(7,0);
set $@slot2r7n1,getequipcardid(7,1);
set $@slot2r7n2,getequipcardid(7,2);
set $@slot2r7n3,getequipcardid(7,3);
set $@equip2r8,getequipid(8);
set $@slot2r8n0,getequipcardid(8,0);
set $@slot2r8n1,getequipcardid(8,1);
set $@slot2r8n2,getequipcardid(8,2);
set $@slot2r8n3,getequipcardid(8,3);
return;
} else if (cloneroom == 3) {
set $@equip3r1,getequipid(1);
set $@slot3r1n0,getequipcardid(1,0);
set $@slot3r1n1,getequipcardid(1,1);
set $@slot3r1n2,getequipcardid(1,2);
set $@slot3r1n3,getequipcardid(1,3);
set $@equip3r2,getequipid(2);
set $@slot3r2n0,getequipcardid(2,0);
set $@slot3r2n1,getequipcardid(2,1);
set $@slot3r2n2,getequipcardid(2,2);
set $@slot3r2n3,getequipcardid(2,3);
set $@equip3r3,getequipid(3);
set $@slot3r3n0,getequipcardid(3,0);
set $@slot3r3n1,getequipcardid(3,1);
set $@slot3r3n2,getequipcardid(3,2);
set $@slot3r3n3,getequipcardid(3,3);
set $@equip3r4,getequipid(4);
set $@slot3r4n0,getequipcardid(4,0);
set $@slot3r4n1,getequipcardid(4,1);
set $@slot3r4n2,getequipcardid(4,2);
set $@slot3r4n3,getequipcardid(4,3);
set $@equip3r5,getequipid(5);
set $@slot3r5n0,getequipcardid(5,0);
set $@slot3r5n1,getequipcardid(5,1);
set $@slot3r5n2,getequipcardid(5,2);
set $@slot3r5n3,getequipcardid(5,3);
set $@equip3r6,getequipid(6);
set $@slot3r6n0,getequipcardid(6,0);
set $@slot3r6n1,getequipcardid(6,1);
set $@slot3r6n2,getequipcardid(6,2);
set $@slot3r6n3,getequipcardid(6,3);
set $@equip3r7,getequipid(7);
set $@slot3r7n0,getequipcardid(7,0);
set $@slot3r7n1,getequipcardid(7,1);
set $@slot3r7n2,getequipcardid(7,2);
set $@slot3r7n3,getequipcardid(7,3);
set $@equip3r8,getequipid(8);
set $@slot3r8n0,getequipcardid(8,0);
set $@slot3r8n1,getequipcardid(8,1);
set $@slot3r8n2,getequipcardid(8,2);
set $@slot3r8n3,getequipcardid(8,3);
return;
} else if (cloneroom == 4) {
set $@equip4r1,getequipid(1);
set $@slot4r1n0,getequipcardid(1,0);
set $@slot4r1n1,getequipcardid(1,1);
set $@slot4r1n2,getequipcardid(1,2);
set $@slot4r1n3,getequipcardid(1,3);
set $@equip4r2,getequipid(2);
set $@slot4r2n0,getequipcardid(2,0);
set $@slot4r2n1,getequipcardid(2,1);
set $@slot4r2n2,getequipcardid(2,2);
set $@slot4r2n3,getequipcardid(2,3);
set $@equip4r3,getequipid(3);
set $@slot4r3n0,getequipcardid(3,0);
set $@slot4r3n1,getequipcardid(3,1);
set $@slot4r3n2,getequipcardid(3,2);
set $@slot4r3n3,getequipcardid(3,3);
set $@equip4r4,getequipid(4);
set $@slot4r4n0,getequipcardid(4,0);
set $@slot4r4n1,getequipcardid(4,1);
set $@slot4r4n2,getequipcardid(4,2);
set $@slot4r4n3,getequipcardid(4,3);
set $@equip4r5,getequipid(5);
set $@slot4r5n0,getequipcardid(5,0);
set $@slot4r5n1,getequipcardid(5,1);
set $@slot4r5n2,getequipcardid(5,2);
set $@slot4r5n3,getequipcardid(5,3);
set $@equip4r6,getequipid(6);
set $@slot4r6n0,getequipcardid(6,0);
set $@slot4r6n1,getequipcardid(6,1);
set $@slot4r6n2,getequipcardid(6,2);
set $@slot4r6n3,getequipcardid(6,3);
set $@equip4r7,getequipid(7);
set $@slot4r7n0,getequipcardid(7,0);
set $@slot4r7n1,getequipcardid(7,1);
set $@slot4r7n2,getequipcardid(7,2);
set $@slot4r7n3,getequipcardid(7,3);
set $@equip4r8,getequipid(8);
set $@slot4r8n0,getequipcardid(8,0);
set $@slot4r8n1,getequipcardid(8,1);
set $@slot4r8n2,getequipcardid(8,2);
set $@slot4r8n3,getequipcardid(8,3);
return;
} else return;
}
// -- Clone Equipment Function ---------------
function script F_CloneEquip {
if(cloneroom == 1) {
if((getequipid(1) != $@equip1r1) || (getequipcardid(1,0) != $@slot1r1n0) || (getequipcardid(1,1) != $@slot1r1n1) || (getequipcardid(1,2) != $@slot1r1n2) || (getequipcardid(1,3) != $@slot1r1n3) || (getequipcardid(1,4) != $@slot1r1n4)) goto L_Violate1;
if((getequipid(2) != $@equip1r2) || (getequipcardid(2,0) != $@slot1r2n0) || (getequipcardid(2,1) != $@slot1r2n1) || (getequipcardid(2,2) != $@slot1r2n2) || (getequipcardid(2,3) != $@slot1r2n3) || (getequipcardid(2,4) != $@slot1r2n4)) goto L_Violate1;
if((getequipid(3) != $@equip1r3) || (getequipcardid(3,0) != $@slot1r3n0) || (getequipcardid(3,1) != $@slot1r3n1) || (getequipcardid(3,2) != $@slot1r3n2) || (getequipcardid(3,3) != $@slot1r3n3) || (getequipcardid(3,4) != $@slot1r3n4)) goto L_Violate1;
if((getequipid(4) != $@equip1r4) || (getequipcardid(4,0) != $@slot1r4n0) || (getequipcardid(4,1) != $@slot1r4n1) || (getequipcardid(4,2) != $@slot1r4n2) || (getequipcardid(4,3) != $@slot1r4n3) || (getequipcardid(4,4) != $@slot1r4n4)) goto L_Violate1;
if((getequipid(5) != $@equip1r5) || (getequipcardid(5,0) != $@slot1r5n0) || (getequipcardid(5,1) != $@slot1r5n1) || (getequipcardid(5,2) != $@slot1r5n2) || (getequipcardid(5,3) != $@slot1r5n3) || (getequipcardid(5,4) != $@slot1r5n4)) goto L_Violate1;
if((getequipid(6) != $@equip1r6) || (getequipcardid(6,0) != $@slot1r6n0) || (getequipcardid(6,1) != $@slot1r6n1) || (getequipcardid(6,2) != $@slot1r6n2) || (getequipcardid(6,3) != $@slot1r6n3) || (getequipcardid(6,4) != $@slot1r6n4)) goto L_Violate1;
if((getequipid(7) != $@equip1r7) || (getequipcardid(7,0) != $@slot1r7n0) || (getequipcardid(7,1) != $@slot1r7n1) || (getequipcardid(7,2) != $@slot1r7n2) || (getequipcardid(7,3) != $@slot1r7n3) || (getequipcardid(7,4) != $@slot1r7n4)) goto L_Violate1;
if((getequipid(8) != $@equip1r8) || (getequipcardid(8,0) != $@slot1r8n0) || (getequipcardid(8,1) != $@slot1r8n1) || (getequipcardid(8,2) != $@slot1r8n2) || (getequipcardid(8,3) != $@slot1r8n3) || (getequipcardid(8,4) != $@slot1r8n4)) goto L_Violate1;
} else if(cloneroom == 2) {
if((getequipid(1) != $@equip2r1) || (getequipcardid(1,0) != $@slot2r1n0) || (getequipcardid(1,1) != $@slot2r1n1) || (getequipcardid(1,2) != $@slot2r1n2) || (getequipcardid(1,3) != $@slot2r1n3) || (getequipcardid(1,4) != $@slot2r1n4)) goto L_Violate2;
if((getequipid(2) != $@equip2r2) || (getequipcardid(2,0) != $@slot2r2n0) || (getequipcardid(2,1) != $@slot2r2n1) || (getequipcardid(2,2) != $@slot2r2n2) || (getequipcardid(2,3) != $@slot2r2n3) || (getequipcardid(2,4) != $@slot2r2n4)) goto L_Violate2;
if((getequipid(3) != $@equip2r3) || (getequipcardid(3,0) != $@slot2r3n0) || (getequipcardid(3,1) != $@slot2r3n1) || (getequipcardid(3,2) != $@slot2r3n2) || (getequipcardid(3,3) != $@slot2r3n3) || (getequipcardid(3,4) != $@slot2r3n4)) goto L_Violate2;
if((getequipid(4) != $@equip2r4) || (getequipcardid(4,0) != $@slot2r4n0) || (getequipcardid(4,1) != $@slot2r4n1) || (getequipcardid(4,2) != $@slot2r4n2) || (getequipcardid(4,3) != $@slot2r4n3) || (getequipcardid(4,4) != $@slot2r4n4)) goto L_Violate2;
if((getequipid(5) != $@equip2r5) || (getequipcardid(5,0) != $@slot2r5n0) || (getequipcardid(5,1) != $@slot2r5n1) || (getequipcardid(5,2) != $@slot2r5n2) || (getequipcardid(5,3) != $@slot2r5n3) || (getequipcardid(5,4) != $@slot2r5n4)) goto L_Violate2;
if((getequipid(6) != $@equip2r6) || (getequipcardid(6,0) != $@slot2r6n0) || (getequipcardid(6,1) != $@slot2r6n1) || (getequipcardid(6,2) != $@slot2r6n2) || (getequipcardid(6,3) != $@slot2r6n3) || (getequipcardid(6,4) != $@slot2r6n4)) goto L_Violate2;
if((getequipid(7) != $@equip2r7) || (getequipcardid(7,0) != $@slot2r7n0) || (getequipcardid(7,1) != $@slot2r7n1) || (getequipcardid(7,2) != $@slot2r7n2) || (getequipcardid(7,3) != $@slot2r7n3) || (getequipcardid(7,4) != $@slot2r7n4)) goto L_Violate2;
if((getequipid(8) != $@equip2r8) || (getequipcardid(8,0) != $@slot2r8n0) || (getequipcardid(8,1) != $@slot2r8n1) || (getequipcardid(8,2) != $@slot2r8n2) || (getequipcardid(8,3) != $@slot2r8n3) || (getequipcardid(8,4) != $@slot2r8n4)) goto L_Violate2;
} else if(cloneroom == 3) {
if((getequipid(1) != $@equip3r1) || (getequipcardid(1,0) != $@slot3r1n0) || (getequipcardid(1,1) != $@slot3r1n1) || (getequipcardid(1,2) != $@slot3r1n2) || (getequipcardid(1,3) != $@slot3r1n3) || (getequipcardid(1,4) != $@slot3r1n4)) goto L_Violate3;
if((getequipid(2) != $@equip3r2) || (getequipcardid(2,0) != $@slot3r2n0) || (getequipcardid(2,1) != $@slot3r2n1) || (getequipcardid(2,2) != $@slot3r2n2) || (getequipcardid(2,3) != $@slot3r2n3) || (getequipcardid(2,4) != $@slot3r2n4)) goto L_Violate3;
if((getequipid(3) != $@equip3r3) || (getequipcardid(3,0) != $@slot3r3n0) || (getequipcardid(3,1) != $@slot3r3n1) || (getequipcardid(3,2) != $@slot3r3n2) || (getequipcardid(3,3) != $@slot3r3n3) || (getequipcardid(3,4) != $@slot3r3n4)) goto L_Violate3;
if((getequipid(4) != $@equip3r4) || (getequipcardid(4,0) != $@slot3r4n0) || (getequipcardid(4,1) != $@slot3r4n1) || (getequipcardid(4,2) != $@slot3r4n2) || (getequipcardid(4,3) != $@slot3r4n3) || (getequipcardid(4,4) != $@slot3r4n4)) goto L_Violate3;
if((getequipid(5) != $@equip3r5) || (getequipcardid(5,0) != $@slot3r5n0) || (getequipcardid(5,1) != $@slot3r5n1) || (getequipcardid(5,2) != $@slot3r5n2) || (getequipcardid(5,3) != $@slot3r5n3) || (getequipcardid(5,4) != $@slot3r5n4)) goto L_Violate3;
if((getequipid(6) != $@equip3r6) || (getequipcardid(6,0) != $@slot3r6n0) || (getequipcardid(6,1) != $@slot3r6n1) || (getequipcardid(6,2) != $@slot3r6n2) || (getequipcardid(6,3) != $@slot3r6n3) || (getequipcardid(6,4) != $@slot3r6n4)) goto L_Violate3;
if((getequipid(7) != $@equip3r7) || (getequipcardid(7,0) != $@slot3r7n0) || (getequipcardid(7,1) != $@slot3r7n1) || (getequipcardid(7,2) != $@slot3r7n2) || (getequipcardid(7,3) != $@slot3r7n3) || (getequipcardid(7,4) != $@slot3r7n4)) goto L_Violate3;
if((getequipid(8) != $@equip3r8) || (getequipcardid(8,0) != $@slot3r8n0) || (getequipcardid(8,1) != $@slot3r8n1) || (getequipcardid(8,2) != $@slot3r8n2) || (getequipcardid(8,3) != $@slot3r8n3) || (getequipcardid(8,4) != $@slot3r8n4)) goto L_Violate3;
} else if(cloneroom == 4) {
if((getequipid(1) != $@equip4r1) || (getequipcardid(1,0) != $@slot4r1n0) || (getequipcardid(1,1) != $@slot4r1n1) || (getequipcardid(1,2) != $@slot4r1n2) || (getequipcardid(1,3) != $@slot4r1n3) || (getequipcardid(1,4) != $@slot4r1n4)) goto L_Violate1;
if((getequipid(2) != $@equip4r2) || (getequipcardid(2,0) != $@slot4r2n0) || (getequipcardid(2,1) != $@slot4r2n1) || (getequipcardid(2,2) != $@slot4r2n2) || (getequipcardid(2,3) != $@slot4r2n3) || (getequipcardid(2,4) != $@slot4r2n4)) goto L_Violate1;
if((getequipid(3) != $@equip4r3) || (getequipcardid(3,0) != $@slot4r3n0) || (getequipcardid(3,1) != $@slot4r3n1) || (getequipcardid(3,2) != $@slot4r3n2) || (getequipcardid(3,3) != $@slot4r3n3) || (getequipcardid(3,4) != $@slot4r3n4)) goto L_Violate1;
if((getequipid(4) != $@equip4r4) || (getequipcardid(4,0) != $@slot4r4n0) || (getequipcardid(4,1) != $@slot4r4n1) || (getequipcardid(4,2) != $@slot4r4n2) || (getequipcardid(4,3) != $@slot4r4n3) || (getequipcardid(4,4) != $@slot4r4n4)) goto L_Violate1;
if((getequipid(5) != $@equip4r5) || (getequipcardid(5,0) != $@slot4r5n0) || (getequipcardid(5,1) != $@slot4r5n1) || (getequipcardid(5,2) != $@slot4r5n2) || (getequipcardid(5,3) != $@slot4r5n3) || (getequipcardid(5,4) != $@slot4r5n4)) goto L_Violate1;
if((getequipid(6) != $@equip4r6) || (getequipcardid(6,0) != $@slot4r6n0) || (getequipcardid(6,1) != $@slot4r6n1) || (getequipcardid(6,2) != $@slot4r6n2) || (getequipcardid(6,3) != $@slot4r6n3) || (getequipcardid(6,4) != $@slot4r6n4)) goto L_Violate1;
if((getequipid(7) != $@equip4r7) || (getequipcardid(7,0) != $@slot4r7n0) || (getequipcardid(7,1) != $@slot4r7n1) || (getequipcardid(7,2) != $@slot4r7n2) || (getequipcardid(7,3) != $@slot4r7n3) || (getequipcardid(7,4) != $@slot4r7n4)) goto L_Violate1;
if((getequipid(8) != $@equip4r8) || (getequipcardid(8,0) != $@slot4r8n0) || (getequipcardid(8,1) != $@slot4r8n1) || (getequipcardid(8,2) != $@slot4r8n2) || (getequipcardid(8,3) != $@slot4r8n3) || (getequipcardid(8,4) != $@slot4r8n4)) goto L_Violate1;
} else
return;
L_Violate1:
stopnpctimer "CloneTimer 1";
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"Clone Rules Violation! Equipments changed from registration!",bc_all,0xFF0000;
set clonepts,clonepts - $@tempclonepts1;
sc_end 72; //-- Stops Chemical Protection Weapon
sc_end 73; //-- Stops Chemical Protection Shield
sc_end 74; //-- Stops Chemical Protection Armor
sc_end 75; //-- Stops Chemical Protection Helm
areawarp $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"prt_are_in",97,24;
killmonster $cloneroomn1$,"CloneMob 1::OnMobDead";
end;
L_Violate2:
stopnpctimer "CloneTimer 2";
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"Clone Rules Violation! Equipments changed from registration!",bc_all,0xFF0000;
set clonepts,clonepts - $@tempclonepts2;
sc_end 72; //-- Stops Chemical Protection Weapon
sc_end 73; //-- Stops Chemical Protection Shield
sc_end 74; //-- Stops Chemical Protection Armor
sc_end 75; //-- Stops Chemical Protection Helm
areawarp $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"prt_are_in",97,24;
killmonster $cloneroomn2$,"CloneMob 2::OnMobDead";
end;
L_Violate3:
stopnpctimer "CloneTimer 3";
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"Clone Rules Violation! Equipments changed from registration!",bc_all,0xFF0000;
set clonepts,clonepts - $@tempclonepts3;
sc_end 72; //-- Stops Chemical Protection Weapon
sc_end 73; //-- Stops Chemical Protection Shield
sc_end 74; //-- Stops Chemical Protection Armor
sc_end 75; //-- Stops Chemical Protection Helm
areawarp $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"prt_are_in",97,24;
killmonster $cloneroomn3$,"CloneMob 3::OnMobDead";
end;
L_Violate4:
stopnpctimer "CloneTimer 4";
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"Clone Rules Violation! Equipments changed from registration!",bc_all,0xFF0000;
set clonepts,clonepts - $@tempclonepts4;
sc_end 72; //-- Stops Chemical Protection Weapon
sc_end 73; //-- Stops Chemical Protection Shield
sc_end 74; //-- Stops Chemical Protection Armor
sc_end 75; //-- Stops Chemical Protection Helm
areawarp $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"prt_are_in",97,24;
killmonster $cloneroomn4$,"CloneMob 4::OnMobDead";
end;
}
// -- PC Die Event ---------------
- script PCDieEvent -1,{
getmapxy @mapname$,@mapx,@mapy,0;
if((@mapname$ == "force_2-1.gat") || (@mapname$ == "force_3-1.gat")) goto L_Diestart;
end;
L_Diestart:
if(cloneroom == 1) {
stopnpctimer "CloneTimer 1";
areaannounce $cloneroomn1$,$@clone1X1,$@clone1Y1,$@clone1X2,$@clone1Y2,"You have died! You failed!",8;
set clonepts,clonepts - $@tempclonepts1;
killmonster $cloneroomn1$,"CloneMob 1::OnMobDead";
} else if(cloneroom == 2) {
stopnpctimer "CloneTimer 2";
areaannounce $cloneroomn2$,$@clone2X1,$@clone2Y1,$@clone2X2,$@clone2Y2,"You have died! You failed!",8;
set clonepts,clonepts - $@tempclonepts2;
killmonster $cloneroomn2$,"CloneMob 2::OnMobDead";
} else if(cloneroom == 3) {
stopnpctimer "CloneTimer 3";
areaannounce $cloneroomn3$,$@clone3X1,$@clone3Y1,$@clone3X2,$@clone3Y2,"You have died! You failed!",8;
set clonepts,clonepts - $@tempclonepts3;
killmonster $cloneroomn3$,"CloneMob 3::OnMobDead";
} else if(cloneroom == 4) {
stopnpctimer "CloneTimer 4";
areaannounce $cloneroomn4$,$@clone4X1,$@clone4Y1,$@clone4X2,$@clone4Y2,"You have died! You failed!",8;
set clonepts,clonepts - $@tempclonepts4;
killmonster $cloneroomn4$,"CloneMob 4::OnMobDead";
} else
end;
}
// -- Clone Arena Prizes ---------------
prt_are_in,108,18,2 script Clone Arena Prizes 102,{
mes "[Clone Arena Prizes]";
mes "Hiya! I can exchange the points you earn in the arena for amazing prizes! You currently have";
mes "^0000FF"+ clonepts +" Points^000000!";
next;
menu
"Racoon Doll - 10 pts.",P_Racoon_Doll,
"Yoyo Doll - 10 pts.",P_Yoyo_Doll,
"Baphomet Doll - 15 pts.",P_Baphomet_Doll,
"Osiris Doll - 15 pts.",P_Osiris_Doll,
"Elunium - 20 pts.",P_Elunium,
"Oridecon - 20 pts.",P_Oridecon,
"Resist Fire Potion - 25 pts.",P_Resist_Fire,
"Resist Cold Potion - 25 pts.",P_Resist_Cold,
"Resist Earth Potion - 25 pts.",P_Resist_Earth,
"Resist Thunder Potion - 25 pts.",P_Resist_Thunder,
"Fire Element Converter - 30 pts.",P_Fire_Converter,
"Frost Element Converter - 30 pts.",P_Frost_Converter,
"Seismic Element Converter - 30 pts.",P_Seismic_Converter,
"Lightning Element Converter - 30 pts.",P_Lightning_Converter,
"Old Blue Box - 40 pts.",P_OBB,
"Old Card Album - 60 pts.",P_OCA,
"Old Purple Box - 60 pts.",P_OPB,
"Distilled Fighting Spirit - 75 pts.",P_Distilled_Fighting,
"Herb of Incantation - 75 pts.",P_Herb_Incantation,
"Forbidden Red Candle - 90 pts.",P_Forbidden_Red,
"Soft Apron - 90 pts.",P_Soft_Apron,
"Emperium - 110 pts.",P_Emperium,
"Durian - 140 pts.",P_Durian,
"Cancel",L_End;
P_Racoon_Doll:
set $@cloneprize, 754;
set $@cloneprizepts, 10;
mes "[Clone Arena Prizes]";
mes "'^0000FFA doll made to resemble Smokie, the raccoon.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFRacoon Doll^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Yoyo_Doll:
set $@cloneprize, 753;
set $@cloneprizepts, 10;
mes "[Clone Arena Prizes]";
mes "'^0000FFA doll made to resemble Yoyo, the monkey. They live in groups deep in the forest, are very smart, and familiar with humans.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFYoyo Doll^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Baphomet_Doll:
set $@cloneprize, 750;
set $@cloneprizepts, 15;
mes "[Clone Arena Prizes]";
mes "'^0000FFA doll made to resemble Baphomet, scourge of the living. It is a dollmaker's masterpiece.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFBaphomet Doll^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Osiris_Doll:
set $@cloneprize, 751;
set $@cloneprizepts, 15;
mes "[Clone Arena Prizes]";
mes "'A doll made to resemble Osiris, the king of darkness. It is a dollmaker's masterpiece.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFOsiris Doll^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Elunium:
set $@cloneprize, 985;
set $@cloneprizepts, 20;
mes "[Clone Arena Prizes]";
mes "'^0000FFVery light, non toxic metal. Used for toughening armors.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like an ^0000FFElunium^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Oridecon:
set $@cloneprize, 984;
set $@cloneprizepts, 20;
mes "[Clone Arena Prizes]";
mes "'^0000FFA pure Oridecon. Known as the blessed metal, it's extremely strong and can increase the damage of weapons if it is welded to them. Used for tempering lvl 3 or lvl 4 Weapons.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like an ^0000FFOridecon^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Resist_Fire:
set $@cloneprize, 12118;
set $@cloneprizepts, 25;
mes "[Clone Arena Prizes]";
mes "'^0000FFA Potion used to grant some resistance to Fire. Be careful since you receive more damage from the opposite property.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFResist Fire Potion^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Resist_Cold:
set $@cloneprize, 12119;
set $@cloneprizepts, 25;
mes "[Clone Arena Prizes]";
mes "'^0000FFA Potion used to grant some resistance to Water. Be careful since you receive more damage from the opposite property.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFResist Cold Potion^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Resist_Earth:
set $@cloneprize, 12120;
set $@cloneprizepts, 25;
mes "[Clone Arena Prizes]";
mes "'^0000FFA Potion used to grant some resistance to Earth. Be careful since you receive more damage from the opposite property.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFResist Earth Potion^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Resist_Thunder:
set $@cloneprize, 12121;
set $@cloneprizepts, 25;
mes "[Clone Arena Prizes]";
mes "'^0000FFA Potion used to grant some resistance to Wind. Be careful since you receive more damage from the opposite property.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFResist Thunder Potion^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Fire_Converter:
set $@cloneprize, 12114;
set $@cloneprizepts, 30;
mes "[Clone Arena Prizes]";
mes "'^0000FFWhen used causes the users weapon to change to Fire Property attribute for a short period of time.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFFire Element Converter^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Frost_Converter:
set $@cloneprize, 12115;
set $@cloneprizepts, 30;
mes "[Clone Arena Prizes]";
mes "'^0000FFWhen used causes the users weapon to change to Water Property attribute for a short period of time.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFFrost Element Converter^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Seismic_Converter:
set $@cloneprize, 12116;
set $@cloneprizepts, 30;
mes "[Clone Arena Prizes]";
mes "'^0000FFWhen used causes the users weapon to change to Earth Property attribute for a short period of time.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFSeismic Element Converter^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Lightning_Converter:
set $@cloneprize, 12117;
set $@cloneprizepts, 30;
mes "[Clone Arena Prizes]";
mes "'^0000FFWhen used causes the users weapon to change to Wind Property attribute for a short period of time.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFLightning Element Converter^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_OBB:
set $@cloneprize, 603;
set $@cloneprizepts, 40;
mes "[Clone Arena Prizes]";
mes "'^0000FFA mysterious blue box. It seems it contain something, but you'll have to open it to find out.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like an ^0000FFOld Blue Box^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_OCA:
set $@cloneprize, 616;
set $@cloneprizepts, 60;
mes "[Clone Arena Prizes]";
mes "'^0000FFAn antique album possessing mysterious powers. It's very likely that there is a card inside.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like an ^0000FFOld Card Album^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_OPB:
set $@cloneprize, 617;
set $@cloneprizepts, 60;
mes "[Clone Arena Prizes]";
mes "'^0000FFAn old and mysterious looking purple box. It must be opened in order to see what's inside.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like an ^0000FFOld Purple Box^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Distilled_Fighting:
set $@cloneprize, 682;
set $@cloneprizepts, 75;
mes "[Clone Arena Prizes]";
mes "'^0000FFA magical drink which increases attack strength when it is taken.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFDistilled Fighting Spirit^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Herb_Incantation:
set $@cloneprize, 683;
set $@cloneprizepts, 75;
mes "[Clone Arena Prizes]";
mes "'^0000FFAn enchanted herb which increases magical attack strength when eaten.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like an ^0000FFHerb of Incantation^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Forbidden_Red:
set $@cloneprize, 660;
set $@cloneprizepts, 90;
mes "[Clone Arena Prizes]";
mes "'^0000FFA candle that may have a mysterious purpose.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFForbidden Red Candle^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Soft_Apron:
set $@cloneprize, 661;
set $@cloneprizepts, 90;
mes "[Clone Arena Prizes]";
mes "'^0000FFA soft apron that is double stitched for better quality. Favorite item of the Alice monster.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFSoft Apron^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Emperium:
set $@cloneprize, 714;
set $@cloneprizepts, 110;
mes "[Clone Arena Prizes]";
mes "'^0000FFA very splendid, shiny ore. It is rumored that this jewel can bring power and glory to one that is chosen by fate.'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like an ^0000FFEmperium^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Durian:
set $@cloneprize, 684;
set $@cloneprizepts, 140;
mes "[Clone Arena Prizes]";
mes "'^0000FFA tropical fruit which is called as 'the king of fruits' having a hard, prickly rind and soft pulp. It also has an offensive odor but a pleasant taste. Increase Attack Strength and Magic Attack Strength for a duration. ATK + 10, MATK + 10'^000000";
next;
mes "[Clone Arena Prizes]";
mes "Would you like a ^0000FFDurian^000000?";
next;
menu "Yes",P_Get,"No thanks",L_End;
P_Get:
mes "[Clone Arena Prizes]";
if (clonepts < $@cloneprizepts) goto P_No;
mes "Alright! Here you go!";
set clonepts,clonepts - $@cloneprizepts;
getitem $@cloneprize, 1;
close;
P_No:
mes "I'm sorry, but you don't have enough points to get this item!";
close;
L_End:
mes "[Clone Arena Prizes]";
mes "Alright, please enjoy the arena!";
close;
}
// -- Clone Arena Kafra ---------------
prt_are_in,108,22,2 script Kafra 115,{
cutin "kafra_03",2;
callfunc "F_Kafra",0,3;
M_Save:
savepoint "prt_are_in",98,15;
callfunc "F_KafEnd",0,1;
}
|