Paste #38447: Untitled Paste

Date: 2016/12/21 18:53:29 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


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
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326


#geeekscraft_version:
#  type: CORE
#  description: GeeksCraft Core
#  version: DEVELOPER 2.0
############################################
##              CUSTOM COMMANDS           ##
############################################
custom_commands:
  type: world
  debug: true
  events:
    on mmostart command:
    - if <player.flag[mmo_player].is[==].to[1]||true> {
      - narrate "Starting"
      - run start_sys
      - flag player mmo_player:2
      } else {
        - if <player.flag[mmo_player].is[==].to[2]||true>
        - narrate "Stoping"
        - flag player mmo_player:1
        }
############################################
##              WORLD  EVENTS             ##
############################################
core_events:
  type: world
  debug: true
  events:
    on player quits:
    - flag <player> current_board:!
    on player joins:
    - flag <player> current_board:!
    on player damaged by npc:
    - ^flag player healthbar:-:<def[finalhit]>
    - determine cancelled
    on npc damaged by player:
    - ^flag npc npc_health:-:<def[hit]>
    - determine cancelled
    on player damages npc:
    - determine cancelled
    on npc damages player:
    - determine cancelled
    on player damaged by player:
    - determine cancelled
    on player damages player:
    - determine cancelled
    on player clicks 1_exp_coin in inventory:
    - ^TAKE 1_exp_coin QTY:1
    - flag player exp:+:1
    - adjust <player> fake_experience:<player.flag[exp].div[<player.flag[level].mul[12]>]>|9999
    - if <player.flag[exp].div[<player.flag[level].mul[12]>].is[OR_MORE].than[1]||true> {
      - narrate "<player.name> You just leveled up"
      - flag player level:+:1
      - adjust <player> fake_experience:<player.flag[exp].div[<player.flag[level].mul[12]>]>|<player.flag[level]>
      }
    - determine cancelled
    on player left clicks with overpower_1:
      - if <player.flag[op_1_cd].is[OR_MORE].than[2]||false> {
        - narrate "Skill on cool down"
        } else {
          - flag player power:+:2 duration:30s
          - flag player op_1_cd:+:2 duration:30s
          }
    on player right clicks with overpower_1:
      - if <player.flag[op_1_cd].is[OR_MORE].than[2]||false> {
        - narrate "Skill on cool down"
        } else {
          - flag player power:+:2 duration:30s
          - flag player op_1_cd:+:2 duration:30s
          }
    on player right clicks with testing_sword:
    - ^flag npc npc_health:-:<def[hit]>
    on player left clicks with testing_sword:
    - ^flag npc npc_health:-:<def[hit]>
    on player equips testing_boots_red:
    - flag player armor:+:1
    on player unequips testing_boots_red:
    - flag player armor:-:1
    on player equips testing_pants_red:
    - flag player armor:+:2
    on player unequips testing_pants_red:
    - flag player armor:-:2
    on player equips testing_shirt_red:
    - flag player armor:+:3
    on player unequips testing_shirt_red:
    - flag player armor:-:3
    on player equips testing_helm_red:
    - flag player armor:+:1
    on player unequips testing_helm_red:
    - flag player armor:-:1
    on player equips testing_sword:
    - flag player damage:+:4
    on player unequips testing_sword:
    - flag player damage:-:4
############################################
##              DEFINATIONS               ##
############################################
defineit:
  type: task
  script:
  - ^define health "<player.flag[healthbar]>"
  - ^define max_hp "<player.flag[max_health]>"
  - ^define magic "<player.flag[manabar]>"
  - ^define max_mana "<player.flag[max_mana]>"
  - ^define power "<player.flag[power]>"
  - ^define damage "<player.flag[damage].min[1]>"
  - ^define armor "<player.flag[armor].min[1]>"
  - ^define level "<player.flag[level]"
  - ^define exp "<player.flag[exp]>"
  - ^define npc_health "<npc.flag[npc_health]||0>"
  - ^define npc_max_health "<npc.flag[npc_max_health]||0>"
  - ^define npc_mana_bar "<npc.flag[npc_mana_bar]||0>"
  - ^define npc_max_mana_bar "<npc.flag[npc_max_mana_bar]||0>"
  - ^define npc_damage "<npc.flag[npc_damage]||0>"
  - ^define npc_armor "<npc.flag[npc_armor]||0>"
  - ^define hit "<player.flag[power].add[<player.flag[damage]>]>"
  - ^define hit2 "<npc.flag[npc_damage]>"
  - ^define finalhit "<def[hit2].sub[<player.flag[armor].min[1]>]||1>"
############################################
##             SYSTEM  LOGIN              ##
############################################
start_sys:
  type: task
  script:
  - wait 1
  - inject defineit instantly
  - if <player.flag[mmo_player].is[==].to[2]||true> {
    - if <player.flag[first_done].is[==].to[99]> {
      - narrate "Starting"
      - execute as_server "say <red>GE-MMO <player.name> Logging in"
      - narrate "To protect you in Blocklandia we will insert you into a clone body"
      - wait 2
      - narrate "The process is quite safe."
      - wait 2
      - narrate "Restoring clone for <player.name>"
      - narrate "{========                             }"
      - narrate "{================                     }"
      - narrate "<green>CLONE CONTACTED"
      - wait 2
      - narrate "Inserting <player.name> into clone"
      - narrate "{======================               }"
      - wait 1
      - adjust <player> fake_health:1|1
      - wait 1
      - narrate "{============================         }"
      - wait 2
      - narrate "Checking clone link...."
      - wait 2
      - narrate "<green>{===============CONFIRMED=============}"
      - wait 2
      - narrate "<green>Begining clone durability tests"
      - wait 2
      - narrate "{========                             }"
      - narrate "<red>Running: Heath Bar check Please stand by..."
      - adjust <player> fake_health:2|1
      - wait 1
      - adjust <player> fake_health:10|1
      - wait 1
      - adjust <player> fake_health:20|1 
      - narrate "{================                     }"
      - wait 1
      - narrate "<red>Running: Magic check Please stand by..."
      - adjust <player> fake_health:20|10
      - wait 1
      - adjust <player> fake_health:20|20
      - wait 1
      - adjust <player> fake_health:20|20  
      - narrate "{======================               }"
      - narrate "<red>Running: Armor check Please stand by..."
      - adjust <player> fake_health:2|10
      - wait 1
      - adjust <player> fake_health:10|20
      - wait 1
      - adjust <player> fake_health:20|20
      - narrate "{============================         }"
      - narrate "<red>Running: Power check Please stand by..." 
      - adjust <player> fake_health:2|2
      - wait 1
      - adjust <player> fake_health:10|10
      - wait 1
      - adjust <player> fake_health:20|20
      - narrate "<green>{===============CONFIRMED=============}"
      - wait 2
      - narrate "Looks like your clone is working"
      - wait 2
      - narrate "Logging you into Blocklandia"
      - narrate "<green>{========                             }"
      - narrate "checking Daily reward"
      - inject daily_reward
      - narrate "<green>{================                     }"
      - wait 1
      - narrate "<green>{======================               }"
      - narrate "starting stats system"
      - narrate "<green>{============================         }"
      - narrate "healthbar: <player.flag[healthbar]>"
      - narrate "max_health: <player.flag[max_health]>"
      - narrate "manabar: <player.flag[manabar]>"
      - narrate "max_mana: <player.flag[max_mana]>"
      - narrate "armor:<player.flag[armor]>"
      - narrate "power:<player.flag[power]>"
      - narrate "damage:<player.flag[damage]>"
      - narrate "level:<player.flag[armor]>"
      - narrate "exp:<player.flag[exp]>"
      - adjust <player> level:<player.flag[level]>
      - run stats_sys
      - adjust <player> fake_experience:<player.flag[exp].div[<player.flag[level].mul[12]>]>|<player.flag[level]>
      - wait 3
      - narrate "<green>{===============LOGED IN==============}"
      - run welcome_message
      - narrate "Welcome to the system <player.name>"
      } else {
        - if <player.flag[mmo_player].is[==].to[2]||true> {
          - narrate "Starting"
          - execute as_server "say <red>GE-MMO <player.name> Logging in"
          - narrate "To protect you in Blocklandia we will insert you into a clone body"
          - wait 2
          - narrate "The process is quite safe."
           - wait 2
          - narrate "Generating new clone for <player.name>"
          - narrate "{========                             }"
          - narrate "{================                     }"
          - narrate "<green>CLONE CREATED"
          - wait 2
          - narrate "Inserting <player.name> into clone"
          - narrate "{======================               }"
          - wait 1
          - adjust <player> fake_health:1|1
          - wait 1
          - narrate "{============================         }"
          - wait 2
          - narrate "Checking clone link...."
          - wait 2
          - narrate "<green>{===============CONFIRMED=============}"
          - wait 2
          - narrate "<green>Begining clone durability tests"
          - wait 2
          - narrate "{========                             }"
          - narrate "<red>Running: Heath Bar check Please stand by..."
          - adjust <player> fake_health:2|1
          - wait 1
          - adjust <player> fake_health:10|1
          - wait 1
          - adjust <player> fake_health:20|1 
          - narrate "{================                     }"
          - wait 1
           - narrate "<red>Running: Magic check Please stand by..."
          - adjust <player> fake_health:20|10
          - wait 1
          - adjust <player> fake_health:20|20
          - wait 1
          - adjust <player> fake_health:20|20 
          - narrate "{======================               }"
          - narrate "<red>Running: Armor check Please stand by..."
          - adjust <player> fake_health:2|2
          - wait 1
          - adjust <player> fake_health:10|10
          - wait 1
          - adjust <player> fake_health:20|20
          - narrate "{============================         }"
          - narrate "<red>Running: Power check Please stand by..." 
          - adjust <player> fake_health:2|2
          - wait 1
          - adjust <player> fake_health:10|10
          - wait 1
          - adjust <player> fake_health:20|20
          - narrate "<green>{===============CONFIRMED=============}"
          - wait 2
          - narrate "Looks like your clone is working"
          - wait 2
          - narrate "Logging you into Blocklandia"
          - narrate "<green>{========                             }"
          - narrate "checking Daily reward"
          - inject daily_reward
          - narrate "<green>{================                     }"
          - wait 1
          - narrate "<green>{======================               }"
          - narrate "starting stats system"
          - narrate "<green>{============================         }"
          - ^flag player first_done:99
          - ^flag player healthbar:22
          - ^flag player max_health:42
          - ^flag player manabar:22
          - ^flag player max_mana:41
          - ^flag player power:1
          - ^flag player armor:1
          - ^flag player damage:1
          - ^flag player level:1
          - ^flag player exp:1
          - adjust <player> level:<player.flag[level]>
          - narrate "healthbar: <player.flag[healthbar]>"
          - narrate "max_health: <player.flag[max_health]>"
          - narrate "manabar: <player.flag[manabar]>"
          - narrate "max_mana: <player.flag[max_mana]>"
          - narrate "armor:<player.flag[armor]>"
          - narrate "power:<player.flag[power]>"
          - narrate "damage:<player.flag[damage]>"
          - narrate "level:<player.flag[armor]>"
          - narrate "exp:<player.flag[exp]>"
          - run stats_sys
          - wait 3
          - adjust <player> fake_experience:<player.flag[exp].div[<player.flag[level].mul[12]>]>|<player.flag[level]>
          - narrate "<green>{===============LOGED IN==============}"
          - run welcome_message
          - narrate "Welcome to the system <player.name>"
          }
        } 
  }
############################################
##             DAILY EVENTS               ##
############################################  
daily_reward:
  type: task
  script:
  - if <player.flag[daily_reward].is[OR_LESS].to[0]||true> {
    - flag player daily_reward duration:24h
    - run daily_coin_give
    }
############################################
##              STATS  SYSTEM             ##
############################################
stats_sys:
  type: task
  script:
  - while <player.flag[mmo_player].is[==].to[2]||true> {
    - wait 1
    - ^adjust <player> fake_health:<player.flag[Healthbar].div[<player.flag[max_health]>].mul[20].round_up.max[1]||1>|<player.flag[manabar].div[<player.flag[power]>].mul[20].round_up>
    - ^adjust <player> level:<player.flag[level]>
    - ^run max_hp
    - ^run min_hp
    - ^run death
    - ^run max_mp
    - ^run min_mp
    - ^run oom
    - wait 1
    }

max_hp:
  type: task
  script:
  - if <player.flag[healthbar].is[OR_MORE].than[<player.flag[max_health]>]>||true> {
      - wait 1
      - flag player healthbar:--
      }

min_hp:
  type: task
  script:
  - if <player.flag[healthbar].is[OR_LESS].than[<player.flag[max_health]>]||true> {
      - wait 1
      - flag player healthbar:++
      - ^adjust <player> fake_health:<player.flag[Healthbar].div[<player.flag[max_health]>].mul[20].round_up.max[1]||1>|<player.flag[manabar].div[<player.flag[power]>].mul[20].round_up>
      - ^adjust <player> level:<player.flag[level]>
      }

death:
  type: task
  script:
  - if <player.flag[healthbar].is[OR_LESS].than[1]||true> {
    - narrate "<player.name> You died!"
    - wait 1
    - flag player healthbar:5
    - ^adjust <player> fake_health:<player.flag[Healthbar].div[<player.flag[max_health]>].mul[20].round_up.max[1]||1>|<player.flag[manabar].div[<player.flag[power]>].mul[20].round_up>
    }

max_mp:
  type: task
  script:
  - if <player.flag[manabar].is[OR_MORE].than[<player.flag[max_mana]>]>||true> {
      - wait 1
      - flag player manabar:--
      }

min_mp:
  type: task
  script:
  - if <player.flag[manabar].is[OR_LESS].than[<player.flag[max_mana]>]||true> {
      - wait 1
      - flag player manabar:++
      - ^adjust <player> fake_health:<player.flag[Healthbar].div[<player.flag[max_health]>].mul[20].round_up.max[1]||1>|<player.flag[manabar].div[<player.flag[power]>].mul[20].round_up>
      - adjust <player> level:<player.flag[level]>
      }

oom:
  type: task
  script:
  - if <player.flag[manabar].is[OR_LESS].than[1]||true> {
    - narrate "<player.name> OOM!"
    - ^adjust <player> fake_health:<player.flag[Healthbar].div[<player.flag[max_health]>].mul[20].round_up.max[1]||1>|<player.flag[manabar].div[<player.flag[power]>].mul[20].round_up>
    - wait 1
    - ^adjust <player> level:<player.flag[level]>
    - flag player manabar:++
    }

############################################
##              SKills SYSTEM             ##
############################################
############################################
##                 WARRIOR                ##
############################################
goddess_warrior_blessing:

  type: item

  material: i@0377

  bound: true

  display name: <gold>Goddess's Blessing

  lore:
  lore:
  - <gold>----------                 <red>---------
  - <gold>|| <gold>PASSIVE <gold>||                 <red> || WARRIOR ||
  - <gold>----------                 <red>---------
  - <red>A blessing from the Goddess of fire
  - <red>   which grants immunity from Lava
  - <red>        to all Red Team Warriors
  - <gold>-------------------------------
  - <gold>||                  MAX LEVEL             || 
  - <gold>-------------------------------

overpower_1:

  type: item

  material: i@0340

  bound: true

  display name: <green>Overpower

  lore:
  lore:
  - <green>---------         <red>---------
  - <green>|| <green>ACTIVE <green>||         <red> || WARRIOR ||
  - <green>---------         <red>---------
  - <white>  Activate to boost Power by 
  - <white>   +2 for 5 Seconds with a
  - <white>    cooldown of 30 seconds
  - <gold>-------------------------
  - <gold>||             LEVEL 1 / 9        || 
  - <gold>-------------------------
############################################
##                 BOARDS                 ##
############################################  
Rules_board:
  debug: false
  type: command
  name: rulesboard
  script:
  - if <player.is_op.not> && <player.has_permission[rulesss.use].not||true> {
    - narrate "<&c>You have already accpted the rules. "
    - queue clear
    }
  - if <player.flag[current_board]||none> == debug {
    - sidebar remove
    - narrate "<&c>Thank you for accepting the rules!"
    - wait 2
    - narrate "<&c>We hope you enjoy the world of Blocklandia"
    - flag <player> current_board:!
    - queue clear
    }
  - flag <player> current_board:debug
  - while <player.flag[current_board].is[==].to[debug]||false> {
    - sidebar set "title:<&4>Blocklandia Rules" "values:<&c>No Griefing<&co><&e>|<&c>No Advertising of any kind<&co><&e>|<&c>No Trolling/Flaming<&co><&e>|<&c>No Asking for OP Ranks or Items<&co><&e>|<&c><&co>Respect all Players<&e>|<&c><&co>Obey Staff There the Law<&e>|<&c><&co>No Racist or Sexist Remarks.<&e>|<&c><&co>No Mods/Hacks<&e>|<&c><&co>No Full Caps Messages<&e>|<&c><&co>No Builds Near Spawn<&e>|<&c><&co>No 1x1 Towers<&e>|<&c><&co>When Trading, only buy and sell legit items<&e>"
    - wait 1s
    }

level_1_board:
  debug: false
  type: command
  name: level_1_board
  script:
  - if <player.is_op.not> && <player.has_permission[rulesss.use].not||true> {
    - narrate "Please visit the reset npc to reset the board"
    - queue clear
    }
  - if <player.flag[current_board]||none> == debug {
    - sidebar remove
    - narrate "<&c>Thanks for playing Blocklandia."
    - wait 1
    - narrate "<&c>Please come back soon"
    - flag <player> current_board:!
    - queue clear
    }
  - flag <player> current_board:debug
  - while <player.flag[current_board].is[==].to[debug]||false> {
    - sidebar set "title:<&4>Level 1 - Novice" "values:<&c>No Griefing<&co><&e>|<&c>No Advertising of any kind<&co><&e>|<&c>No Trolling/Flaming<&co><&e>|<&c>No Asking for OP Ranks or Items<&co><&e>|<&c><&co>Respect all Players<&e>|<&c><&co>Obey Staff There the Law<&e>|<&c><&co>No Racist or Sexist Remarks.<&e>|<&c><&co>No Mods/Hacks<&e>|<&c><&co>No Full Caps Messages<&e>|<&c><&co>No Builds Near Spawn<&e>|<&c><&co>No 1x1 Towers<&e>|<&c><&co>When Trading, only buy and sell legit items<&e>"
    - wait 1s
    - adjust <player> fake_health:<player.flag[healthbar].div[20].mul[20].round_up.max[1]||1>|<player.flag[manabar].div[20].mul[20].round_up>
    }

############################################
##         CURRENCY   SYSTEM              ##
############################################
daily_coin:

  type: item

  material: i@0385

  bound: true

  display name: <gold>Daily Charge

  lore:
  - <gold>-----------------------
  - <green> Collect 1 Charge per day!
  - <green>  Rewarded to all players!
  - <gold>-----------------------
  - <red>   Visit Reward Merchant
  - <red>  to claim special rewards
  - <gold>-----------------------

'daily_coin_display':
  type: task
  script:
  - narrate "<red><player.name> received <gold>Daily Charge"

ptw_coin:

  type: item

  material: i@slime_ball

  bound: true

  display name: <gold>PTW SLIME

  lore:
  - <gold>-----------------------
  - <gold>       OMG U PTW SCUM!!!
  - <gold> Collect 1 SCUM per day!
  - <gold> Rewarded to all patrons!
  - <gold>-----------------------
  - <red>   Visit Reward Merchant
  - <red>  to claim special rewards
  - <gold>-----------------------

'ptw_coin_display':
  type: task
  script:
  - narrate "<red><player.name> received <gold>PTW SLIME"

souls:

  type: item

  bound: true

  material: i@0410

  display name: <gold>Soul Shards

  lore:
  - <gold>-----------------------------
  - <gold>           Purified Souls
  - <gold>  The essence of each soul is
  - <gold>collected and turned into shards
  - <gold>-----------------------------
  - <red>      Visit Reward Merchant
  - <red>      to claim special rewards
  - <gold>-----------------------------

'souls_display':
  type: task
  script:
  - narrate "<red><player.name> received <gold>Soul Shards"

1_exp_coin:

  type: item

  bound: true

  material: i@0406

  display name: <gold>EXP x 1

  lore:
  - <gold>-----------------------
  - <green>   You grow stronger with 
  - <green>  monster you lay to waste!
  - <gold>-----------------------

############################################
##         Instance    Saving             ##
############################################
instance_save:
  type: task
  script:
  - random 10
  - chat "Don't worry <player.name> you cry baby I'll save you"
  - chat "We will either save your game or take 1000 souls, Lets see what the wheel says <player.name>"
  - chat "See folks at home, told you <player.name> scared, this means death for sure!"
  - chat "<player.name> playing it safe wont get you off my island!"
  - chat "Why should I save your game <player.name>? No appreciates me anyways..."
  - chat "OK <player.name> saving your game, but destroying all the world behind you...."
  - chat "<player.name> has no hope of making it though this next area"
  - chat "What's wrong <player.name> to chicken to play without saving?"
  - chat "Back in my day <player.name> we didn't have these fancy save points, when you died it was game over.."
  - chat "<player.name>'s 1000 Souls will be sent to the victim's of recent creeper attacks and their families"
  - wait 2
  - narrate "Game saving"
  - wait 1
  - random 5
  - narrate "<red>Deducted 1000 Souls from <player.name>'s account...Just kidding.. maybe"
  - narrate "<red>Changing spawn location to Room 1"
  - narrate "<red>ERROR: Your to ugly to save your game"
  - narrate "<red> Crediting 1 million souls to <player.name>'s account ... Dream on loser"
  - narrate "<red>ERROR: World corrupted... The admins wont be happy about this..."
  - narrate "{========                             }"
  - narrate "{================                     }"
  - narrate "{======================               }"
  - narrate "{============================         }"
  - narrate "{=====================================}"
  - execute as_op "mv set spawn" silent
  - random 10
  - narrate "<red>We saved your progress....or did we? Try not to die!"
  - narrate "<red>Your game may or may not have been saved.. we don't know"
  - narrate "<red>Your game was defiantly save... um somewhere... "
  - narrate "<red>There are no admins on to manually save your game.. Deleting progress"
  - narrate "<red>Unfortunately we are experiencing a higher then normal volume of saves, please hold"
  - narrate "<red>ERROR: World corrupt...... Your games saved probably but the worlds corrupt, think about it...."
  - narrate "<red>C:/      C:/dos    run dos run"
  - narrate "<red>Estimated time to complete final save 7y 6d 5h 34m 23s please wait"
  - narrate "<red> System saved your game but will respawn you at stat anyway"
  - narrate "<red>Unknown error: the admins will promise to fix but never get to"

############################################
##               COMMON  CHAT             ##
############################################
welcome_message:
  type: task
  script:
    - random 3
    - narrate "<green>Starting the server, Welcome to GeeksCraft MMO"
    - narrate "<green>Taking off our your armor... WOOOO DANCE PARTY"
    - narrate "Taking over the world. Bow to your new computer overload"

'npc_takes_damage':
  type: task
  Script:
  - if <player.has_flag[npc_attack]> queue clear
  - flag <player> npc_attack duration:5s
  - Random 21
  - chat "Ow! That hurt, <player.name>!"
  - chat "If you escape, I'll buy you ice-cream..."
  - chat " Do that again and see what happens!"
  - narrate "<red>1000 Souls taken from <player.name>'s account for attack an npc"
  - chat "Stop it #NPCLivesMatter"
  - chat "If you do that again I will destroy you"
  - chat "All quests have been now reset. Don't attack the host"
  - chat "Oh baby that feels so good, do it again"
  - chat "If you do that again, I will attack back"
  - chat "My grandmother hits harder then that"
  - narrate "<red>Reported to the admin team for NPC abuse"
  - narrate "<red>You have been banned for 7 years for NPC abuse"
  - chat "Why you got to do me like that homie?"
  - narrate "<red>madmaty: Buhahhaha I hate that npc anyways, go ahead and kill him"
  - chat "Ewwww stop it, I don't know where those hands have been!"
  - chat "I don't get paid enough for this shit!"
  - chat "Yo WTF is your problem?"
  - narrate "<red>This NPC has rage quit, quest no longer available"
  - chat "I'm telling on you /w admin <player.name> wont stop attacking me, ban please"
  - narrate "<red>You have been banned for life!"
  - narrate "<gold>Please don't attack our NPCs, they work hard."
############################################
##         CUSTOM   ITEMS   RED           ##
############################################
goddess_fire_blessing:

  type: item

  bound: true

  material: i@0377

  display name: Goddess of Fire Blessing

  lore:
  - <red>------------------------
  - <red>|| Goddess of Fire Blessing ||
  - <red>------------------------
  - <white>       The Goddess has blessed you,
  - <white>    on your journy though the Red Team
  - <gold>----------------------------------
  - <gold>   Trade to Rose at the Start for Gifts
  - <gold>----------------------------------

goddess_fire_test:

  type: item

  bound: true

  material: i@0175:4

  display name: Fire Blossom

  lore:
  - <red>-----------------
  - <red>|| Rare Flower ||
  - <red>-----------------
  - <white>       This Rare flower is said to be
  - <white>      the Goddess of Fire's favorite
  - <gold>----------------------------------
  - <gold>     Take to the Goddess of Fire
  - <gold>----------------------------------
############################################
##         CUSTOM   ITEMS   BLUE          ##
############################################
blue_trian_badge:

  type: item

  material: i@0425:4

  display name: Blue Trainee Badge

  lore:
  - <blue>-----------------------
  - <blue>|| Blue Team Trainee Card ||
  - <blue>-----------------------
  - <white>      You have taken the first steps
  - <white>    on your journy though the Blue Team
  - <gold>----------------------------------
  - <gold>           **Upgrade available**
  - <gold>----------------------------------
############################################
##               EQUIPMENT                ##
##                UPGRADES                ##
############################################
armor_upgrade:

  type: item

  material: i@0403

  display name: <gold>Armor Upgrade

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <gold>------------------------
  - <white>     Used to upgrade your
  - <white>         armor to Teir 1
  - <gold>------------------------
weapon_upgrade:

  type: item

  material: i@0403

  display name: <gold>Weapon Upgrade

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <gold>------------------------
  - <white>     Used to upgrade your
  - <white>         weapon to Teir 1
  - <gold>------------------------
############################################
##               EQUIPMENT                ##
##                TEIR  1                 ##
############################################

############################################
##                 BOOTS                  ##
############################################
testing_boots_red:

  type: item

  material: i@0301

  display name: <red>Testing Boots

  color: co@red

  lore:
  - <gold>----------
  - <gold>|| <red>Red Team <gold>||
  - <gold>----------
  - <white>    A welcome gift to help all
  - <white>   <red>Red Team members through
  - <white>    the trials that lay ahead.
  - <gold>--------------------------
  - <gold>      **Upgrade available**
  - <gold>--------------------------
newb_boots:

  type: item

  material: i@0301

  display name: Stained Boots

  color: co@white

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <white>    These boots seems to be stained,
  - <white>       with shit from the last victim,
  - <white> This should make for a pleasent trip :(
  - <gold>----------------------------------
  - <gold>           **Upgrade available**
  - <gold>----------------------------------

washed_boots:

  type: item

  material: i@0301

  display name: <green>Washed Boots

  color: co@green

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <green>    A quick wash of the shit stains
  - <green>        has revealed new stats!
  - <green>Do you feel like your walkin on a cloud?
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                     Armor +1
  - <gold>----------------------------------

shitty_boots:

  type: item

  material: i@0301

  display name: <blue>Shitty boots

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <blue>Upgrade failed to reveal any new stats!
  - <blue>To make matters worse they are stained
  - <blue>again the upgrade chicken shit on them!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                     Armor +1
  - <gold>----------------------------------

bloody_boots:

  type: item

  material: i@0301

  display name: <red>Bloody boots

  color: co@red

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <red>    The chicken gobbles up the boots,
  - <red>   She's a champ, no gag reflex at all!
  - <red>          When she shits them out
  - <red>      They have gained new stats!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                     Armor +2
  - <gold>----------------------------------

goldly_boots:

  type: item

  material: i@0301

  display name: <gold>Goldly Boots

  color: co@yellow

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <gold>    You Found the Golden Chicken!
  - <gold>      He ate your bloody boots,
  - <gold>        When he shits them out
  - <gold>     Nothing Happened :( Bullshit!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                     Armor +2
  - <gold>----------------------------------

magic_boots:

  type: item

  material: i@0301

  display name: <gold><magic>Goldly boots

  color: co@black

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <gold>      You can feel me magic pulsing
  - <gold>   everytime you put you toes inside,
  - <gold>            Socks and Sandles!
  - <gold>       Oh you are magical arn't you!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                     Armor +3
  - <gold>----------------------------------

'newb_boots_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <white>Stained Boots"

'washed_boots_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <green>Washed Boots"

'shitty_boots_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <blue>Shitty boots"

'bloody_boots_display':
  type: task
  script:
  - narrate "<red><player.name> recieved Bloody boots"

'goldly_boots_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <gold>Goldly Boots"

'magic_boots_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <gold><magic>Goldly boots"

############################################
##                 PANTS                  ##
############################################
testing_pants_red:

  type: item

  material: i@leather_leggings

  display name: <red>Testing pants

  color: co@red

  lore:
  - <gold>----------
  - <gold>|| <red>Red Team <gold>||
  - <gold>----------
  - <white>    A welcome gift to help all
  - <white>   <red>Red Team members through
  - <white>    the trials that lay ahead.
  - <gold>--------------------------
  - <gold>      **Upgrade available**
  - <gold>--------------------------

newb_pants:

  type: item

  material: i@leather_leggings

  display name: Stained Pants

  color: co@white

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <white>    These pants seem to be stained,
  - <white>    with blood from the last victim
  - <white>    who tried to Escape the Island!
  - <red>----------------------------------
  - <red>These pants are a gift for those brave
  - <red> souls who tried to Escape the Island!
  - <red>----------------------------------
  - <gold>----------------------------------
  - <gold>           **Upgrade available**
  - <gold>----------------------------------

washed_pants:

  type: item

  material: i@leather_leggings

  display name: <green>Washed Pants

  color: co@green

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <green>      A quick wash of the blood
  - <green>      stained pants pants have
  - <green>     revealed some hidden stats!!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                     Armor +1
  - <gold>----------------------------------

shitty_pants:

  type: item

  material: i@leather_leggings

  display name: <blue>Shitty Pants

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <blue>Upgrade failed to reveal any new stats!
  - <blue>To make matters worse they are stained
  - <blue>again the upgrade chicken shit on them!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                     Armor +1
  - <gold>----------------------------------

bloody_pants:

  type: item

  material: i@leather_leggings

  display name: <red>Bloody Pants

  color: co@red

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <red>    The chicken gobbles up the pants,
  - <red>   She's a champ, no gag reflex at all!
  - <red>          When she shits them out
  - <red>      They have gained new stats!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                     Armor +2
  - <gold>----------------------------------

goldly_pants:

  type: item

  material: i@leather_leggings

  display name: <gold>Goldly Pants

  color: co@yellow

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <gold>    You Found the Golden Chicken!
  - <gold>      He ate your bloody pants,
  - <gold>        When he shits them out
  - <gold>     Nothing Happened :( Bullshit!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                     Armor +2
  - <gold>----------------------------------

magic_pants:

  type: item

  material: i@leather_leggings

  display name: <gold><magic>Goldly Pants

  color: co@black

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <gold>      You can feel me magic pulsing
  - <gold>       everytime you put you hand,
  - <gold>            Inside your pocket!
  - <gold>       Oh you are magical arn't you!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                     Armor +3
  - <gold>----------------------------------

'newb_pants_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <white>Stained Pants"

'washed_pants_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <green>Washed Pants"

'shitty_pants_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <blue>Shitty Pants"

'bloody_pants_display':
  type: task
  script:
  - narrate "<red><player.name> recieved Bloody Pants"
'goldly_pants_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <gold>Goldly Pants"

'magic_pants_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <gold><magic>Goldly Pants"

############################################
##                 SHIRT                  ##
############################################
testing_shirt_red:

  type: item

  material: i@0299

  display name: <red>Testing Shirt

  color: co@red

  lore:
  - <gold>----------
  - <gold>|| <red>Red Team <gold>||
  - <gold>----------
  - <white>    A welcome gift to help all
  - <white>   <red>Red Team members through
  - <white>    the trials that lay ahead.
  - <gold>--------------------------
  - <gold>      **Upgrade available**
  - <gold>--------------------------

newb_shirt:

  type: item

  material: i@0299

  display name: Stained Shirt

  color: co@white

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <white>    This shirt seems to be stained,
  - <white>  with seamen from the host most likly
  - <white>         He must really like you!
  - <gold>----------------------------------
  - <gold>           **Upgrade available**
  - <gold>----------------------------------

washed_shirt:

  type: item

  material: i@0299

  display name: <green>Washed Shirt

  color: co@green

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <green>     A quick wash of the seamen
  - <green>     stains from the shirt have
  - <green>     revealed some hidden stats!!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                    Health +1
  - <gold>----------------------------------

shitty_shirt:

  type: item

  material: i@0299

  display name: <blue>Shitty Shirt

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <blue>Upgrade failed to reveal any new stats!
  - <blue>  To make matters worse it's stained
  - <blue> again the upgrade chicken shit on it!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                    Health +1
  - <gold>----------------------------------

bloody_shirt:

  type: item

  material: i@0299

  display name: <red>Bloody Shirt

  color: co@red

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <red>    The chicken gobbles up the shirt,
  - <red>   She's a champ, no gag reflex at all!
  - <red>           When she shits it out
  - <red>        It has gained new stats!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                    Health +2
  - <gold>----------------------------------

goldly_shirt:

  type: item

  material: i@0299

  display name: <gold>Goldly Shirt

  color: co@yellow

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <gold>    You Found the Golden Chicken!
  - <gold>       He ate your bloody shirt,
  - <gold>          When he shits it out
  - <gold>     Nothing Happened :( Bullshit!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                    Health +2
  - <gold>----------------------------------

magic_shirt:

  type: item

  material: i@0299

  display name: <gold><magic>Goldly Pants

  color: co@black

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <gold>      You can feel me magic pulsing
  - <gold>          everytime the breeze,
  - <gold>        Hits the nipple cut outs!
  - <gold>       Oh you are magical arn't you!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                    Health +3
  - <gold>----------------------------------

'newb_shirt_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <white>Stained Shirt"

'washed_shirt_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <green>Washed Shirt"

'shitty_shirt_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <blue>Shitty Shirt"

'bloody_shirt_display':
  type: task
  script:
  - narrate "<red><player.name> recieved Bloody Shirt"

'goldly_shirt_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <gold>Goldly Shirt"

'magic_shirt_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <gold><magic>Goldly Pants"
############################################
##                 HELM                   ##
############################################
testing_helm_red:

  type: item

  material: i@0298

  display name: <red>Testing Helm

  color: co@red

  lore:
  - <gold>----------
  - <gold>|| <red>Red Team <gold>||
  - <gold>----------
  - <white>    A welcome gift to help all
  - <white>   <red>Red Team members through
  - <white>    the trials that lay ahead.
  - <gold>--------------------------
  - <gold>      **Upgrade available**
  - <gold>--------------------------
newb_helm:

  type: item

  material: i@0298

  display name: Vomit Filled Helm

  color: co@white

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <white>      This helm seems to be filled,
  - <white>   with vomit from the last victim,
  - <white>   Who tried to escape this island!
  - <red>----------------------------------
  - <red> This helm is a gift for those brave
  - <red> souls who tried to Escape the Island!
  - <red>----------------------------------
  - <gold>----------------------------------
  - <gold>           **Upgrade available**
  - <gold>----------------------------------

washed_helm:

  type: item

  material: i@0298

  display name: <green>Washed Helm

  color: co@green

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <green>      A quick wash of the vomit
  - <green>        from the helm has has
  - <green>     revealed some hidden stats!!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                    Health +1
  - <gold>----------------------------------

shitty_helm:

  type: item

  material: i@0298

  display name: <blue>Shitty Helm

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <blue>Upgrade failed to reveal any new stats!
  - <blue>    To make matters worse it'smells
  - <blue> again the upgrade chicken shit in it!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                    Health +1
  - <gold>----------------------------------

bloody_helm:

  type: item

  material: i@0298

  display name: <red>Bloody Helm

  color: co@red

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <red>    The chicken gobbles up the helm,
  - <red>   She's a champ, no gag reflex at all!
  - <red>           When she shits it out
  - <red>        It has gained new stats!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                    Health +1
  - <gold>                    Armor +1
  - <gold>----------------------------------

goldly_helm:

  type: item

  material: i@0298

  display name: <gold>Goldly Helm

  color: co@yellow

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <gold>    You Found the Golden Chicken!
  - <gold>        He ate your bloody helm,
  - <gold>          When he shits it out
  - <gold>     Nothing Happened :( Bullshit!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                    Health +1
  - <gold>                    Armor +1
  - <gold>----------------------------------

magic_helm:

  type: item

  material: i@0298

  display name: <gold><magic>Goldly helm

  color: co@black

  lore:
  - <gold>--------
  - <gold>|| <white>Teir 1 <gold>||
  - <gold>--------
  - <gold>      You can feel me magic pulsing
  - <gold>      everytime you have a thought
  - <gold>            You must me smrt!
  - <gold>----------------------------------
  - <gold>                **Max Upgrades 6**
  - <gold>                    Health +1
  - <gold>                    Armor +2
  - <gold>----------------------------------

'newb_helm_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <white>Vomit Filled Helm"

'washed_helm_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <green>Washed Helm"

'shitty_helm_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <blue>Shitty Helm"

'bloody_helm_display':
  type: task
  script:
  - narrate "<red><player.name> recieved Bloody Helm"

'goldly_helm_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <gold>Goldly Helm"

'magic_helm_display':
  type: task
  script:
  - narrate "<red><player.name> recieved <gold><magic>Goldly helm"

############################################
##                 SWORD                  ##
############################################
testing_sword:

  type: item

  material: i@0268

  display name: <red>Testing Sword

  lore:
  - <gold>----------
  - <gold>|| <red>Red Team <gold>||
  - <gold>----------
  - <white>    A welcome gift to help all
  - <white>   <red>Red Team members through
  - <white>    the trials that lay ahead.
  - <gold>--------------------------
  - <gold>      **Upgrade available**
  - <gold>--------------------------

############################################
##                 SHIELD                 ##
############################################
testing_shield:

  type: item

  material: i@0442

  display name: <red>Testing Shield

  lore:
  - <gold>----------
  - <gold>|| <red>Red Team <gold>||
  - <gold>----------
  - <white>    A welcome gift to help all
  - <white>   <red>Red Team members through
  - <white>    the trials that lay ahead.
  - <gold>--------------------------
  - <gold>      **Upgrade available**
  - <gold>--------------------------
############################################
##           QUESTS   RED   START         ##
############################################
reds_welcome:
  type: assignment
  interact scripts:
  - 1 red_welcome_start

red_welcome_start:
  type: interact
  steps:
    1:
      Damage Trigger:
        Script:
        - run npc_takes_damage

      click trigger:
        script:
        - chat "Welcome to Blocklandia <player.name>"
        - wait 3
        - chat "I am Rose. I was sent from the other side of blocklandia by the Admin's!"
        - wait 3
        - chat "I am given the honor of greeting new players on behalf of the <red>Red Team"
        - wait 3
        - chat "No member of Blocklandia is allowed to be unalligned beyoind this room"
        - wait 3
        - chat "I might be bias but I think you should join the <red>Red Team"
        - wait 3
        - chat "As a member of the <red>Red Team <green>we are protected by the Goddess of Fire"
        - wait 3
        - chat "She blesses us with great power, as well as the ability to swim in lava"
        - wait 3
        - chat "We focus this into becoming great <red>Warriors"
        - wait 3
        - chat "We use Swords, and sheilds to protect us from our enemies."
        - wait 3
        - chat "We are able to use Leather and Chain armor."
        - wait 3
        - chat "As you progress further into the Red Teams ranks you will be able to specialize your skills"
        - wait 3
        - chat "by becoming either a Palidin which will give you healing and buffing abilities"
        - wait 3
        - chat "or by becoming a Champion which will give you a better set of skills for battle"
        - wait 3
        - chat "I really hope you choose to join the <red>Red Team"
        - wait 3
        - chat "I can sign you up our team right now if you want."
        - wait 3
        - chat "This choice is perminant and can not be undone at this time"
        - wait 3
        - chat "So make sure this is the choice you want to make"
        - wait 3
        - chat "If your ready to join our team just say"
        - chat "join red team"
        - chat "in chat and I will summon the Goddess to bless you."

      chat trigger:
        1:
          trigger: /join red team/
          script:
          - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
            - chat "Blue scum be gone with you!!"
            } else if <player.flag[red_team].is[==].to[2]||false> {
                - chat "We will ajust your resource pack to the <red>REd Team <green>now please stand by"
                - wait 2
                - adjust <player> resource_pack:http://localhost/pp/red/geekscraft_default_red.zip
                } else {
                  - chat "WOOOOOT you have choosen the best team!!!"
                  - wait 3
                  - chat "We are so excited to have you. I will send word to the elders immeditaly!"
                  - wait 3
                  - chat "The first thing we need to take care of is making sure you have the <red>Red Team Texture Pack"
                  - wait 3
                  - chat "please make sure you have your options set to allow txture packs from the server"
                  - wait 3
                  - chat "having this option set will allow us to do cool things like change your weapons looks as you equip them"
                  - wait 3
                  - chat "There will be a small peroid of lag when your pack changes, this can't be helped."
                  - wait 3
                  - chat "We will ajust your resource pack to the <red>Red Team <green>now please stand by"
                  - wait 2
                  - adjust <player> resource_pack:http://localhost/pp/red/geekscraft_default_red.zip
                  - wait 2
                  - flag player red_team:2
                  - execute as_server "say <player.name> joined the <red>Red Team"
                  - chat "When its complete click me again to continue"
                  - zap step:2
                  }

    2:
      Damage Trigger:
        Script:
        - run npc_takes_damage

      click trigger:
        script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
          - chat "Blue scum be gone with you!!"
          } else if <player.flag[red_team].is[==].to[2]||false> {
            - chat "On behlaf of the Elders and Admins I welcome you to the <red>Red Team"
            - wait 3
            - chat "I have summoned the Goddess to bless you in the protected chamber to my left"
            - wait 3
            - chat "We would not want any of those <blue>Blue Team <green>scum getting near her!"
            - wait 3
            - chat "The Gate keeper on my left will grant you access to the Goddess's Protected Chamber"
            - wait 3
            - chat "After you recieve her blessing come back here and we can talk more"
            - zap step:3
            }

    3:
      Damage Trigger:
        Script:
        - run npc_takes_damage

      click trigger:
        script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
          - chat "Blue scum be gone with you!!"
          } else if <player.flag[red_team].is[==].to[2]||false> && <player.inventory.contains[goddess_fire_blessing]> {
            - chat "I had no doubt the Goddess would bless you on your journey."
            - wait 3
            - chat "You will make a strong <red>Warrior <green>and be a vital asset to the <red>Red Team"
            - wait 3
            - chat "Here is your <red><Red Team Welcome Gift> <green>as promised"
            - wait 2
            - TAKE goddess_fire_blessing QTY:1000
            - wait 1
            - ^GIVE testing_sword QTY:1
            - narrate "<player.name> recieved Red Testing Sword"
            - wait 2
            - ^GIVE testing_shield QTY:1
            - narrate "<player.name> recieved Red Testing Shield"
            - wait 2
            - ^GIVE testing_boots_red QTY:1
            - narrate "<player.name> recieved Red Testing Boots"
            - wait 2
            - ^GIVE testing_pants_red QTY:1
            - narrate "<player.name> recieved Red Testing Pants"
            - wait 2
            - ^GIVE testing_shirt_red QTY:1
            - narrate "<player.name> recieved Red Testing Shirt"
            - wait 2
            - ^GIVE testing_helm_red QTY:1
            - narrate "<player.name> recieved Red Testing Helm"
            - wait 2
            - ^GIVE armor_upgrade QTY:2
            - narrate "<player.name> recieved Armor Upgrade X 2"
            - wait 2
            - ^GIVE weapon_upgrade QTY:1
            - narrate "<player.name> recieved Weapon Upgrade"
            - chat "Thse gifts will help you get though the testing process"
            - wait 3
            - chat "Your next test awaits you down the hallway on my right side"
            - wait 3
            - chat "Speak with the Battle Trainer, and she will help you with the next steps"
            - flag player red_team:3
            - zap step:4
            } else if <player.flag[red_team].is[==].to[2]||false> && !<player.inventory.contains[goddess_fire_blessing]> {
              - chat "You need the Goddess's Blessing before we may continue your testing."
              - wait 3
              - chat "Please recieve her blessing down the left hallway then return to continue"
              }
    4:
      Damage Trigger:
        Script:
        - run npc_takes_damage

      click trigger:
        script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
          - chat "Blue scum be gone with you!!"
          } else if <player.flag[red_team].is[==].to[3]||false> {
            - chat "continue your testing by visiting the Battle Trainer down the hall to the right"
            - zap step:1
            }

red_goddess_gate:
  type: assignment
  actions:
    on assignment:
    - trigger name:chat statue:false radius:4
    - trigger name:click statue:true
    - trigger name:damage statue:true
    - trigger name:proximity statue:true radius:4
  interact scripts:
  - 1 red_goddess_control

red_goddess_control:
  type: interact
  steps:
    1:
      Damage Trigger:
        Script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
             - execute as_op "kill <player.name>"
             } else if <player.flag[red_team].is[OR_MORE].than[2]||false> {
               - run npc_takes_damage
               }

      Proximity Trigger:
        entry:
          Script:
          - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
            - narrate "<red>GATE ERROR <blue>BLUE TEAM <red>DETECTED ABORTING OPEN"
            } else if <player.flag[red_team].is[OR_MORE].than[2]||false> {
              - ^switch state:off location:-595,90,-908,world
              - ^switch state:off location:-590,90,-908,world
              - wait 4
              - ^switch state:on location:-595,90,-908,world
              - ^switch state:on location:-590,90,-908,world
              }
        exit:
          Script:
          - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
            - narrate "<red>GATE ERROR <blue>BLUE TEAM <red>DETECTED ABORTING OPEN"
            } else if <player.flag[red_team].is[OR_MORE].than[2]||false> {
              - chat "Good to see you again <player.name>"
              }

      click trigger:
        script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
         - narrate "<red>GATE ERROR <blue>BLUE TEAM <red>DETECTED ABORTING OPEN"
         } else if <player.flag[red_team].is[OR_MORE].than[2]||false> {
             - ^switch state:off location:-595,90,-908,world
             - ^switch state:off location:-590,90,-908,world
             - wait 4
             - ^switch state:on location:-595,90,-908,world
             - ^switch state:on location:-590,90,-908,world
             }
red_test_gate:
  type: assignment
  actions:
    on assignment:
    - trigger name:chat statue:false radius:4
    - trigger name:click statue:true
    - trigger name:damage statue:true
    - trigger name:proximity statue:true radius:4
  interact scripts:
  - 1 red_test_control

red_test_control:
  type: interact
  steps:
    1:
      Damage Trigger:
        Script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
             - execute as_op "kill <player.name>"
             } else if <player.flag[red_team].is[OR_MORE].than[2]||false> {
               - run npc_takes_damage
               }

      Proximity Trigger:
        entry:
          Script:
          - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
            - narrate "<red>GATE ERROR <blue>BLUE TEAM <red>DETECTED ABORTING OPEN"
            } else if <player.flag[red_team].is[OR_MORE].than[3]||false> {
              - ^switch state:off location:-610,90,-908,world
              - ^switch state:off location:-605,90,-908,world
              - wait 4
              - ^switch state:on location:-610,90,-908,world
              - ^switch state:on location:-605,90,-908,world
              }
        exit:
          Script:
          - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
            - narrate "<red>GATE ERROR <blue>BLUE TEAM <red>DETECTED ABORTING OPEN"
            } else if <player.flag[red_team].is[OR_MORE].than[3]||false> {
              - chat "Good to see you again <player.name>"
              }

      click trigger:
        script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
          - narrate "<red>GATE ERROR <blue>BLUE TEAM <red>DETECTED ABORTING OPEN"
          } else if <player.flag[red_team].is[OR_MORE].than[3]||false> {
            - ^switch state:off location:-610,90,-908,world
            - ^switch state:off location:-605,90,-908,world
            - wait 4
            - ^switch state:on location:-610,90,-908,world
            - ^switch state:on location:-605,90,-908,world
            }

goddess_of_fire_Start:
  type: assignment
  interact scripts:
  - 1 goddess_of_fire_quest_faith

goddess_of_fire_quest_faith:
  type: interact
  steps:
    1:
      Damage Trigger:
        Script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
             - execute as_op "kill <player.name>"
             - chat "I have no time for your kind <player.name>"
             } else if <player.flag[red_team].is[>=].to[2]||false> {
               - chat "You can cause no damage to me I am made of pure fire."
               - chat "Let us continue our testing"
               }

      click trigger:
        script:
        - if <player.flag[blue_team].is[OR_MORE].than||false> {
          - execute as_op "kill <player.name>"
          - chat "I have no time for your kind <player.name>"
         } else if <player.flag[red_team].is[==].to[2]||false> && <player.inventory.contains[goddess_fire_test]> {
           - zap step:2
           } else if <player.flag[red_team].is[==].to[2]||false> && !<player.inventory.contains[goddess_fire_test]> {
             - chat "Welcome <player.name> I am the Goddess of Fire"
             - wait 3
             - chat "I hear you have sworn yourself to the <red>Red Team <green>Thank You!"
             - wait 3
             - chat "I hope that with your help we will gain enough force to do away with the <blue>Blue Team <green>once and for all"
             - wait 6
             - chat "I bless each and every <red>Red Warrior <green>with the ability to walk though and swim in lava"
             - wait 5
             - chat "But before I bless them I require them to show faith in me..."
             - wait 3
             - ^switch state:off location:-578,87,-917,world
             - ^switch state:off location:-578,87,-918,world
             - ^switch state:off location:-578,87,-919,world
             - switch state:off location:-577,92,-918,world
             - chat "Walk forth across the gap, and be clensed by the fire."
             - wait 3
             - chat "Trust that I will protect you and my blessing will find you."
             - wait 3
             - chat "On the other side of the lava is a chest. Return the item to me and I will consider your alligence sworn"
             - wait 3
             - chat "These gates will close in 1 minute"
             - wait 15
             - narrate "Gate closing in 45 seconds"
             - wait 15
             - narrate "Gate closing in 30 seconds"
             - wait 15
             - narrate "Gate closing in 15 seconds"
             - wait 10
             - narrate "Gate closing in 5 seconds"
             - wait 3
             - narrate "Gate closing in 2 Seconds"
             - wait 2
             - ^switch state:on location:-578,87,-917,world
             - ^switch state:on location:-578,87,-918,world
             - ^switch state:on location:-578,87,-919,world
             - switch state:on location:-577,92,-918,world       
             }
    2:
      Damage Trigger:
        Script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
             - execute as_op "kill <player.name>"
             - chat "I have no time for your kind <player.name>"
             } else if <player.flag[red_team].is[>=].to[2]||false> {
               - chat "You can cause no damage to me I am made of pure fire."
               - chat "Let us continue our testing"
               }

      click trigger:
        script:
        - if <player.flag[red_team].is[==].to[2]||false> && <player.inventory.contains[goddess_fire_test]> {
          - chat "Fire Blossoms are my very favorite, thank you so much!"
          - TAKE goddess_fire_test QTY:1
          - wait 3
          - chat "Congts on passing my test, you will now recieve my blessing all of the time!"
          - wait 3
          - chat "You may now continue your <red>Red Team <green> Testing Process"
          - wait 3 
          - chat "Head back to Rose in the first room with this token and she will give you a <red><Red Starter Pack>"
          - ^GIVE goddess_fire_blessing QTY:1
          } else if <player.flag[red_team].is[==].to[2]||false> && !<player.inventory.contains[goddess_fire_test]> {
            - chat "Welcome <player.name> I am the Goddess of Fire"
            - wait 3
            - chat "I hear you have sworn yourself to the <red>Red Team <green>Thank You!"
            - wait 3
            - chat "I hope that with your help we will gain enough force to do away with the <blue>Blue Team <green>once and for all"
            - wait 6
            - chat "I bless each and every <red>Red Warrior <green>with the ability to walk though and swim in lava"
            - wait 5
            - chat "But before I bless them I require them to show faith in me..."
            - wait 3
            - ^switch state:off location:-578,87,-917,world
            - ^switch state:off location:-578,87,-918,world
            - ^switch state:off location:-578,87,-919,world
            - switch state:off location:-577,92,-918,world
            - chat "Walk forth across the gap, and be clensed by the fire."
            - wait 3
            - chat "Trust that I will protect you and my blessing will find you."
            - wait 3
            - chat "On the other side of the lava is a chest. Return the item to me and I will consider your alligence sworn"
            - wait 3
            - chat "These gates will close in 1 minute"
            - wait 15
             - narrate "Gate closing in 45 seconds"
            - wait 15
            - narrate "Gate closing in 30 seconds"
            - wait 15
            - narrate "Gate closing in 15 seconds"
            - wait 10
            - narrate "Gate closing in 5 seconds"
            - wait 3
            - narrate "Gate closing in 2 Seconds"
            - wait 2
            - ^switch state:on location:-578,87,-917,world
            - ^switch state:on location:-578,87,-918,world
            - ^switch state:on location:-578,87,-919,world
            - switch state:on location:-577,92,-918,world       
            }

battle_trainer_1_red:
  type: assignment
  actions:
    on assignment:
    - trigger name:chat statue:true radius:10
    - trigger name:click statue:true
    - trigger name:damage statue:true
    - trigger name:proximity statue:false

  interact scripts:
  - 1 battle_trainer_1_red_quest

battle_trainer_1_red_quest:
  type: interact
  steps:
    1:
      Damage Trigger:
        Script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
             - execute as_op "kill <player.name>"
             - chat "I have no time for your kind <player.name>"
             } else if <player.flag[red_team].is[OR_MORE].than[1]||false> {
               - run npc_takes_damage
               }

      click trigger:
        script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
          - execute as_op "kill <player.name>"
          - chat "I have no time for your kind <player.name>"
         } else if <player.flag[red_team].is[==].to[3]||false> {
           - chat "Welcome to the <red>Red Team <green><player.name>"
           - wait 3
           - chat "I am the battle trainer for our team. You can find me all over the place"
           - wait 3
           - chat "Normally you find to me when it's time for you to upgrade your skills"
           - wait 3
           - chat "Today though I am here to test your skills, to see if you have waht it takes to be a great <red>Warrior"
           - wait 3
           - chat "As <red>Warriors <green>we gain the special skill Power"
           - wait 3
           - chat "Power add to your attacks, causing even more damage"
           - wait 3
           - chat "Your Power will increase as you train each time you level"
           - wait 3
           - chat "With no maximum to your level there is no telling how strong you could become"
           - wait 3
           - chat "You could have the kind of Power that is only spoken about songs"
           - wait 3
           - chat "Power so great your enemies dare not speak your name, for fear you may show up at the very mention of your name"
           - wait 4
           - chat "Let's not get ahead of ourselfs though, your still just a trainee..."
           - wait 3
           - chat "and your ass belongs to me. Are we square soilder??"
           - wait 2
           - narrate "<red>Type YES or NO in chat to continue"
           }
      chat trigger:
        1:
          trigger: /regex:.+/ 
          script:
          - random 5
          - chat "You don't listen to well do you shit for brain! I said ARE WE SQUARE SOILDER!!"
          - chat "Scrape the shit of of your ears and shape up soilder! I said ARE WE SQUARE SOILDER!!"
          - chat "Are you deaf or stuipd? I said ARE WE SQUARE SOILDER!!"
          - chat "What is your major malfunction?! I said ARE WE SQUARE SOILDER!!"
          - chat "You eye ballin’ me, soilder?! I said ARE WE SQUARE SOILDER!!"
          - wait 2
          - chat "The got dang computer told you"
          - narrate "<red>Type YES or NO in chat to continue"

        2:
          trigger: ma'am /yes/ ma'am
          script:
          - if <player.flag[armor].is[OR_LESS].than[2]||true> {
            - chat "Good then suit up!"
            - wait 3
            - chat "Prey to who or whatever you belive in, and prepare for combat"
            - wait 3
            - chat "When you feel prepared click me to continue"
            - zap step:2
            } else if <player.flag[armor].is[OR_MORE].than[7]||false> {
              - chat "Good your alreadt suited up!"
              - wait 3
              - chat "Being prepared is a soilders first defence, good work!"
              - wait 3
              - chat "Prey to who or whatever you belive in, and prepare for combat"
              - wait 3
              - chat "When you feel prepared click me to continue"
              - zap step:2
              }

    2:
      Damage Trigger:
        Script:
        - if <player.flag[blue_team].is[OR_MORE].than[1]||false> {
             - execute as_op "kill <player.name>"
             - chat "I have no time for your kind <player.name>"
             } else if <player.flag[red_team].is[OR_MORE].than[1]||false> {
               - run npc_takes_damage
               }

      click trigger:
        script:
        - if <player.flag[armor].is[OR_LESS].than[2]||ture> {
            - chat "I can see your armor rating moron!"
            - wait 3
            - chat "I said SUIT UP SOILDER!"
            } else if <player.flag[armor].is[OR_MORE].than[6]||false> {
              - chat "Good now that your all squared away lets get started"
              - wait 3
              - chat "The first skill I will teach you is Overpower"
              - wait 3
              - chat "when you use this skill your power will increase for a short time."
              - wait 3
              - chat "The more you level it the more power you will get, and the longer it will last"
              - wait 3
              - chat "Skills are bound and can not be traded to other players"
              - wait 3
              - chat "To use a skill, be holding the skill book in your hand and either left, or right click in the air"
              - wait 3
              - chat "The cooldown time will begin as soon as its clicked"
              - wait 3
              - ^GIVE overpower_1 QTY:1
              - narrate "You recieved <Skill: Overpower Lv.1>"
              - wait 2
              - chat "Look that over and when you done we will start our first test"
              - narrate "<red>When ready type"
              - narrate "ready"
              - narrate "<red>In chat"
              }

      chat trigger:
        1:
          trigger: /regex:.+/ 
          script:
          - random 5
          - chat "You don't listen to well do you shit for brain! I said ARE WE SQUARE SOILDER!!"
          - chat "Scrape the shit of of your ears and shape up soilder! I said ARE WE SQUARE SOILDER!!"
          - chat "Are you deaf or stuipd? I said ARE WE SQUARE SOILDER!!"
          - chat "What is your major malfunction?! I said ARE WE SQUARE SOILDER!!"
          - chat "You eye ballin’ me, soilder?! I said ARE WE SQUARE SOILDER!!"
          - wait 2
          - chat "The got dang computer told you"
          - narrate "<red>Type   ready    in chat to continue"

        2:
          trigger: /ready/ to start my first test
          script:
          - if <player.flag[armor].is[OR_LESS].than[2]||false> {
            - chat "I can see your armor rating moron!"
            - wait 3
            - chat "I said SUIT UP SOILDER!" 
            } else if <player.flag[armor].is[OR_MORE].than[6]||false> {
              - chat "Good lets get started..."
              - wait 3
              - chat "Lets see how well you can hold up aginst a level 1 monster"
              - create n@4 "Test" l@-616,89,-905,world save:test
              - adjust <server.list_online_players.exclude[<player>]> hide_entity:<entry[test].created_npc>
              - queue stop
              }

test_mob_hold:
  type: assignment
  actions:
    on assignment:
    - trigger name:chat statue:true radius:10
    - trigger name:click statue:true
    - trigger name:damage statue:true
    - trigger name:proximity statue:true radius:5
  interact scripts:
  - 1 test_mob_hold_task

test_mob_hold_task:
  type: interact
  steps:
    1:
      click Trigger:
        script:
        - ^execute as_op "npc sel <npc.id>"
        - ^execute as_op "npc assignment --set test_mob_ass"


test_mob_ass:
  type: assignment
  actions:
    on assignment:
    - trigger name:chat statue:true radius:10
    - trigger name:click statue:true
    - trigger name:damage statue:true
    - trigger name:proximity statue:true radius:5
  interact scripts:
  - 1 test_mob

test_mob:
  type: interact
  steps:
    1:
      Damage Trigger:
        Script:
        - inject defineit instantly
        - if <npc.flag[npc_engaged].is[==].to[2]||false> {
          - ^attack target:<player>
          - if <npc.flag[npc_health].is[OR_LESS].to[1]||false> {
            - remove n@<npc.id>
            }
          } else {
            - ^flag npc npc_health:20
            - ^flag npc npc_engaged:2
            - ^flag npc npc_damage:2
            - ^attack target:<player>
            }

      click trigger:
        script:
        - chat "Attack me you <red>Red Team <green>SCUM! Maybe you should join the <gold>Yellow Team <green>coward!"


############################################
##           QUESTS  BLUE   START         ##
############################################      
blue_welcome:
  type: assignment
  interact scripts:
  - 1 blue_welcome_start

blue_welcome_start:
  type: interact
  steps:
    1:
      Damage Trigger:
        Script:
        - run npc_takes_damage

      click trigger:
        script:
        - chat "Welcome to Blocklandia <player.name>"
        - wait 3
        - chat "I am Azura. I was sent from the other side of blocklandia by the Admin's!"
        - wait 3
        - chat "I am given the honor of greeting new players on behalf of the <blue>Blue Team"
        - wait 3
        - chat "No member of Blocklandia is allowed to be unalligned beyoind this room"
        - wait 3
        - chat "I might be bias but I think you should join the <blue>Blue Team"
        - wait 3
        - chat "As a member of the <blue>Blue Team <green>we are protected by the Goddess of Water"
        - wait 3
        - chat "She blesses us with great Magicial Powers, as well as the abilty to breath under water forever."
        - wait 3
        - chat "We focus this into becoming great <blue>Mages"
        - wait 3
        - chat "We use Staffs, and Charms to protect us from our enemies."
        - wait 3
        - chat "We are able to use cloth and leather armor."
        - wait 3
        - chat "As you progress further into the Blue Teams ranks you will be able to specialize your skills"
        - wait 3
        - chat "by becoming either a Acolyte which will give you healing and buffing abilities"
        - wait 3
        - chat "or by becoming a High Wizard which will give you a better set of skills for battle"
        - wait 3
        - chat "I really hope you choose to join the <blue>Blue Team"
        - wait 3
        - chat "I can sign you up our team right now if you want."
        - wait 3
        - chat "This choice is perminant and can not be undone at this time"
        - wait 3
        - chat "So make sure this is the choice you want to make"
        - wait 3
        - chat "If your ready to join our team just say"
        - chat "join blue team"
        - chat "in chat and I will summon the Goddess to bless you."

      chat trigger:
        1:
          trigger: /join blue team/
          script:
           - if <player.flag[red_team].is[==].to[2]||false> {
            - chat "Red scum be gone with you!!"
            } else if <player.flag[blue_team].is[==].to[2]||false> {
                - chat "We will ajust your resource pack to the <blue>Blue Team <green>now please stand by"
                - wait 2
                - adjust <player> resource_pack:http://localhost/pp/blue/geekscraft_default_blue.zip
                } else {
                  - chat "WOOOOOT you have choosen the best team!!!"
                  - wait 2
                  - chat "We are so excited to have you. I will send word to the elders immeditaly!"
                  - wait 1
                  - chat "The first thing we need to take care of is making sure you have the <blue>Blue Team Texture Pack"
                  - wait 2
                  - chat "please make sure you have your options set to allow txture packs from the server"
                  - wait 2
                  - chat "having this option set will allow us to do cool things like change your weapons looks as you equip them"
                  - wait 2
                  - chat "There will be a small peroid of lag when your pack changes, this can't be helped."
                  - wait 2
                  - chat "We will ajust your resource pack to the <blue>Blue Team <green>now please stand by"
                  - chat "When its complete click me again to continue"
                  - adjust <player> resource_pack:http://localhost/pp/blue/geekscraft_default_blue.zip
                  - flag player blue_team:2
                  - ^GIVE blue_trian_badge QTY:1
                  - narrate "gained <blue><Blue Trainee Badge>"
                  - execute as_server "say <player.name> joined the <blue>Blue Team"
                  - zap step:2
                  }

    2:
      Damage Trigger:
      Script:
      - run npc_takes_damage

      click trigger:
        script:
        -

      chat trigger:
       1:
         trigger: /1/ 
         script:
         - 

       2:                
         trigger: /2/ 
         script:
         - 
############################################
##               DEBUG STUFF              ##
############################################
debugboard:
  debug: false
  type: command
  name: db
  script:
  - if <player.is_op.not> && <player.has_permission[debugboard.use].not||true> {
    - narrate "<&c>You do not have permission to do this!"
    - queue clear
    }
  - if <player.flag[current_board]||none> == debug {
    - sidebar remove
    - narrate "<&c>Disabled  debugboard."
    - flag <player> current_board:!
    - queue clear
    }
  - flag <player> current_board:debug
  - while <player.flag[current_board].is[==].to[debug]||false> {
    - adjust <player> fake_health:<player.flag[Healthbar].div[<player.flag[max_health]>].mul[20].round_up.max[1]||1>|<player.flag[manabar].div[<player.flag[max_mana]>].mul[20].round_up>
    - sidebar set "title:<&4>Main Debug Board" "values:<&c>online players<&co><&e> <server.list_online_players.size>|<&c>player ping<&co><&e> <player.ping>|<&c>server TPS<&co><&e> <server.recent_tps.get[1].as_money>|<&c>server RAM<&co><&e> <server.ram_max.sub[<server.ram_free>].div[1048576].round_up>MB/<server.ram_max.div[1048576].round_up>MB|<&c>queues running<&co><&e> <queue.list.size>|<&c>YAML files loaded<&co><&e> <yaml.list.size>|<&c>Entities nearby<&co><&e> <player.location.find.entities.within[50].size||Too many>|<&c>cuboids<&co> <&6><player.location.cuboids.size||0><&e>- <player.location.cuboids.parse[notable_name].separated_by[/]||>|<&c>regions<&co> <&6><player.location.regions.size||0><&e>- <player.location.regions.parse[substring[11]].separated_by[/]||>|<&c>Inventory<&co> <&e><player.open_inventory||none>|<&c>Item in hand<&co> <&e><player.item_in_hand||i@air>|<&c>target<&co> <&e><player.target.name||<player.target.entity_type||<player.location.cursor_on.material>>>|<&c>precise<&co> <&e><player.target||<player.location.cursor_on.simple>>"
    - wait 1s
    }