~case/dbns

ref: 85d3c74215baa48cb2fd97d3c85ff6060e7c42b1 dbns/src/player.c -rw-r--r-- 120.1 KiB
85d3c742Zerhyn SBC oopsie 3 years ago
                                                                                
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
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
/****************************************************************************
 * [S]imulated [M]edieval [A]dventure multi[U]ser [G]ame      |   \\._.//   *
 * -----------------------------------------------------------|   (0...0)   *
 * SMAUG 1.4 (C) 1994, 1995, 1996, 1998  by Derek Snider      |    ).:.(    *
 * -----------------------------------------------------------|    {o o}    *
 * SMAUG code team: Thoric, Altrag, Blodkai, Narn, Haus,      |   / ' ' \   *
 * Scryn, Rennard, Swordbearer, Gorog, Grishnakh, Nivek,      |~'~.VxvxV.~'~*
 * Tricops and Fireblade                                      |             *
 * ------------------------------------------------------------------------ *
 * Merc 2.1 Diku Mud improvments copyright (C) 1992, 1993 by Michael        *
 * Chastain, Michael Quan, and Mitchell Tse.                                *
 * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer,          *
 * Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe.     *
 * ------------------------------------------------------------------------ *
 * 		Commands for personal player settings/statictics	    *
 ****************************************************************************/

#include <sys/types.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <stdbool.h>
#include <time.h>
#include "mud.h"
#include "sha256.h"

bool	add_hiscore(char *keyword, char *name, int score);
bool	add_hiscore_ld(char *keyword, char *name, long double score);

/*
 *  Locals
 */
char   *tiny_affect_loc_name(int location);

void 
do_gained(CHAR_DATA * ch, char *argument)
{
	if (IS_NPC(ch))
		return;
	long double pltrack = 0;

	pltrack = ch->exp - ch->logon_start;
	if (pltrack < 0)
		pltrack = 0;
	if (is_android(ch) || is_superandroid(ch))
		pager_printf(ch, "\n\r&GGAINED TL SINCE LOGON: %-16s&C\n\r",
		    num_punct_ld(pltrack));
	else
		pager_printf(ch, "\n\r&GGAINED PL SINCE LOGON: %-16s&C\n\r",
		    num_punct_ld(pltrack));
	return;
}

void 
do_pstatus(CHAR_DATA * ch, char *argument)
{
	char lf[MAX_STRING_LENGTH];
	char lfMax[MAX_STRING_LENGTH];
	char ac[MAX_STRING_LENGTH];
	char acMax[MAX_STRING_LENGTH];
	char energy[MAX_STRING_LENGTH];
	char energyMax[MAX_STRING_LENGTH];
	char bpl[MAX_STRING_LENGTH];
	char cpl[MAX_STRING_LENGTH];

	if (IS_NPC(ch) && ch->fighting)
		return;

	strcpy(lf, num_punct(ch->hit));
	strcpy(lfMax, num_punct(ch->max_hit));
	strcpy(ac, num_punct(get_armor(ch)));
	strcpy(acMax, num_punct(get_maxarmor(ch)));
	strcpy(energy, num_punct(ch->mana));
	strcpy(energyMax, num_punct(ch->max_mana));
	strcpy(bpl, num_punct_ld(ch->exp));
	strcpy(cpl, num_punct_ld(ch->pl));

	ch_printf(ch, "&wLifeforce:(&g%s&w/&G%s&w) Armor:(&g%s&w/&G%s&w) Energy:(&g%s&w/&G%s&w)\n\r",
	    lf, lfMax, ac, acMax, energy, energyMax);
	if (is_android(ch) || is_superandroid(ch))
		ch_printf(ch, "Techlevel:(&g%s&w/&G%s&w)\n\r", bpl, cpl);
	else
		ch_printf(ch, "Powerlevel:(&g%s&w/&G%s&w)\n\r", bpl, cpl);

	return;
}

void 
do_gold(CHAR_DATA * ch, char *argument)
{
	set_char_color(AT_GOLD, ch);
	ch_printf(ch, "You have %s zeni.\n\r", num_punct(ch->gold));
	return;
}


void 
do_worth(CHAR_DATA * ch, char *argument)
{
	char buf[MAX_STRING_LENGTH];
	char buf2[MAX_STRING_LENGTH];
	char buf3[MAX_STRING_LENGTH];

	if (IS_NPC(ch))
		return;

	set_pager_color(AT_SCORE, ch);
	pager_printf(ch, "\n\rWorth for %s%s.\n\r", ch->name, ch->pcdata->title);
	send_to_pager(" ----------------------------------------------------------------------------\n\r", ch);
	if (!ch->pcdata->deity)
		sprintf(buf, "N/A");
	else if (ch->pcdata->favor > 2250)
		sprintf(buf, "loved");
	else if (ch->pcdata->favor > 2000)
		sprintf(buf, "cherished");
	else if (ch->pcdata->favor > 1750)
		sprintf(buf, "honored");
	else if (ch->pcdata->favor > 1500)
		sprintf(buf, "praised");
	else if (ch->pcdata->favor > 1250)
		sprintf(buf, "favored");
	else if (ch->pcdata->favor > 1000)
		sprintf(buf, "respected");
	else if (ch->pcdata->favor > 750)
		sprintf(buf, "liked");
	else if (ch->pcdata->favor > 250)
		sprintf(buf, "tolerated");
	else if (ch->pcdata->favor > -250)
		sprintf(buf, "ignored");
	else if (ch->pcdata->favor > -750)
		sprintf(buf, "shunned");
	else if (ch->pcdata->favor > -1000)
		sprintf(buf, "disliked");
	else if (ch->pcdata->favor > -1250)
		sprintf(buf, "dishonored");
	else if (ch->pcdata->favor > -1500)
		sprintf(buf, "disowned");
	else if (ch->pcdata->favor > -1750)
		sprintf(buf, "abandoned");
	else if (ch->pcdata->favor > -2000)
		sprintf(buf, "despised");
	else if (ch->pcdata->favor > -2250)
		sprintf(buf, "hated");
	else
		sprintf(buf, "damned");

	if (ch->level < 10) {
		if (ch->alignment > 900)
			sprintf(buf2, "devout");
		else if (ch->alignment > 700)
			sprintf(buf2, "noble");
		else if (ch->alignment > 350)
			sprintf(buf2, "honorable");
		else if (ch->alignment > 100)
			sprintf(buf2, "worthy");
		else if (ch->alignment > -100)
			sprintf(buf2, "neutral");
		else if (ch->alignment > -350)
			sprintf(buf2, "base");
		else if (ch->alignment > -700)
			sprintf(buf2, "evil");
		else if (ch->alignment > -900)
			sprintf(buf2, "ignoble");
		else
			sprintf(buf2, "fiendish");
	} else
		sprintf(buf2, "%d", ch->alignment);
	strcpy(buf3, num_punct_ld(ch->exp));
	pager_printf(ch, "|Level: %-4d |Favor: %-10s |Alignment: %-9s |PL: %17s|\n\r",
	    ch->level, buf, buf2, buf3);
	send_to_pager(" ----------------------------------------------------------------------------\n\r", ch);
	switch (ch->style) {
	case STYLE_EVASIVE:
		sprintf(buf, "evasive");
		break;
	case STYLE_DEFENSIVE:
		sprintf(buf, "defensive");
		break;
	case STYLE_AGGRESSIVE:
		sprintf(buf, "aggressive");
		break;
	case STYLE_BERSERK:
		sprintf(buf, "berserk");
		break;
	default:
		sprintf(buf, "standard");
		break;
	}
	pager_printf(ch, "|Glory: %-4d |Weight: %-9d |Style: %-13s |Zeni: %-14s |\n\r",
	    ch->pcdata->quest_curr, ch->carry_weight, buf, num_punct(ch->gold));
	send_to_pager(" ----------------------------------------------------------------------------\n\r", ch);
	if (ch->level < 15 && !IS_PKILL(ch))
		pager_printf(ch, "|            |Hitroll: -------- |Damroll: ----------- |                     |\n\r");
	else
		pager_printf(ch, "|            |Hitroll: %-8d |Damroll: %-11d |                     |\n\r", GET_HITROLL(ch), GET_DAMROLL(ch));
	send_to_pager(" ----------------------------------------------------------------------------\n\r", ch);
	return;
}

/* pager_printf_color
 * New score command by Haus
 */
void 
do_score(CHAR_DATA * ch, char *argument)
{
	char buf[MAX_STRING_LENGTH];
	char buf2[MAX_STRING_LENGTH];
	AFFECT_DATA *paf;

	if (IS_NPC(ch)) {
		do_oldscore(ch, argument);
		return;
	}
	sysdata.outBytesFlag = LOGBOUTINFORMATION;

	pager_printf(ch, "\n\r&CThe %s,\n\r", get_rank(ch));
	pager_printf(ch, "%s%s%s.&C\n\r", ch->name,
	    ch->pcdata->last_name ? ch->pcdata->last_name : "", ch->pcdata->title);
	if (get_trust(ch) != ch->level)
		pager_printf(ch, "You are trusted at level %d.\n\r", get_trust(ch));

	send_to_pager("&c----------------------------------------------------------------------------&C\n\r", ch);

	pager_printf(ch, "RACE : &W%-16.16s&C    SEX: &W%-7s&C Played: &w%d hours&C\n\r",
	    capitalize(get_race(ch)),
	    ch->sex == SEX_MALE ? "Male" :
	    ch->sex == SEX_FEMALE ? "Female" : "Neutral",
	    (get_age(ch) - 4) * 2);
	pager_printf(ch, "YEARS: &W%-6d&C                           Created: &w%s\r&C",
	    get_newage(ch), ctime(&ch->pcdata->creation_date));

	if (get_curr_str(ch) >= 100 || ch->perm_str >= 100)
		pager_printf(ch, "STR  : &W%-3d&C(&w%3d.%2.2d&C)  DAM+: &R%-2d&C        Log in: &w%s\r&C",
		    get_curr_str(ch), ch->perm_str, ch->pcdata->tStr, get_damroll(ch), ctime(&ch->logon));
	else
		pager_printf(ch, "STR  : &W%-2d&C(&w%2d.%2.2d&C)    DAM+: &R%-2d&C        Log in: &w%s\r&C",
		    get_curr_str(ch), ch->perm_str, ch->pcdata->tStr, get_damroll(ch), ctime(&ch->logon));
	if (get_curr_dex(ch) >= 100 || ch->perm_dex >= 100)
		pager_printf(ch, "SPD  : &W%-3d&C(&w%3d.%2.2d&C)                   Last Saved: &w%s\r&C",
		    get_curr_dex(ch), ch->perm_dex, ch->pcdata->tSpd, ch->save_time ? ctime(&ch->save_time) : "no save this session\n");
	else
		pager_printf(ch, "SPD  : &W%-2d&C(&w%2d.%2.2d&C)                     Last Saved: &w%s\r&C",
		    get_curr_dex(ch), ch->perm_dex, ch->pcdata->tSpd, ch->save_time ? ctime(&ch->save_time) : "no save this session\n");
	if (get_curr_int(ch) >= 100 || ch->perm_int >= 100)
		pager_printf(ch, "INT  : &W%-3d&C(&w%3d.%2.2d&C)                   CurrTime: &w%s\r&C",
		    get_curr_int(ch), ch->perm_int, ch->pcdata->tInt, ctime(&current_time));
	else
		pager_printf(ch, "INT  : &W%-2d&C(&w%2d.%2.2d&C)                     CurrTime: &w%s\r&C",
		    get_curr_int(ch), ch->perm_int, ch->pcdata->tInt, ctime(&current_time));

	if (get_armor(ch) < 0)
		sprintf(buf, "&Wthe rags of a beggar&C");
	else if (get_armor(ch) == 0)
		sprintf(buf, "&Wimproper for a battle&C");
	else if (get_armor(ch) < 500)
		sprintf(buf, "&Wof poor quality&C");
	else if (get_armor(ch) < 2500)
		sprintf(buf, "&Wmoderately crafted&C");
	else if (get_armor(ch) < 5000)
		sprintf(buf, "&Wwell crafted&C");
	else if (get_armor(ch) < 7500)
		sprintf(buf, "&Wexcellently crafted&C");
	else if (get_armor(ch) <= 10000)
		sprintf(buf, "&Wexcellently crafted&C");
	else
		sprintf(buf, "&WERROR: Please report&C");

	if (get_curr_con(ch) >= 100 || ch->perm_con >= 100)
		pager_printf(ch, "CON  : &W%-3d&C(&w%3d.%2.2d&C)  DAM-: &W%d%\n\r",
			     get_curr_con(ch), ch->perm_con, ch->pcdata->tCon, (get_armor(ch) / 100));
	else
		pager_printf(ch, "CON  : &W%-2d&C(&w%2d.%2.2d&C)   DAM-: &W%d%\n\r",
			     get_curr_con(ch), ch->perm_con, ch->pcdata->tCon, (get_armor(ch) / 100));

	if (ch->alignment > 900)
		sprintf(buf, "&Ydevout");
	else if (ch->alignment > 700)
		sprintf(buf, "&Ynoble");
	else if (ch->alignment > 350)
		sprintf(buf, "&Yhonorable");
	else if (ch->alignment > 100)
		sprintf(buf, "&Yworthy");
	else if (ch->alignment > -100)
		sprintf(buf, "&Wneutral");
	else if (ch->alignment > -350)
		sprintf(buf, "&Rbase");
	else if (ch->alignment > -700)
		sprintf(buf, "&Revil");
	else if (ch->alignment > -900)
		sprintf(buf, "&Rignoble");
	else
		sprintf(buf, "&Rfiendish");

	/*
	 * if (ch->level < 50) pager_printf(ch,"                   Align:
	 * &W%-12s&C               Items: &W%3d&C  (&wmax %3d&C)\n\r", buf,
	 * ch->carry_number, can_carry_n(ch)); else
	 */
	pager_printf(ch, "                       Align: &W%+4.4d, %-12s&C     Items: &W%3d&C  (&wmax %3d&C)\n\r",
	    ch->alignment, buf, ch->carry_number, can_carry_n(ch));

	switch (ch->position) {
	case POS_DEAD:
		sprintf(buf, "slowly decomposing");
		break;
	case POS_MORTAL:
		sprintf(buf, "mortally wounded");
		break;
	case POS_INCAP:
		sprintf(buf, "incapacitated");
		break;
	case POS_STUNNED:
		sprintf(buf, "stunned");
		break;
	case POS_SLEEPING:
		sprintf(buf, "sleeping");
		break;
	case POS_RESTING:
		sprintf(buf, "resting");
		break;
	case POS_STANDING:
		sprintf(buf, "standing");
		break;
	case POS_FIGHTING:
		sprintf(buf, "fighting");
		break;
	case POS_EVASIVE:
		sprintf(buf, "fighting (evasive)");	/* Fighting style
							 * support -haus */
		break;
	case POS_DEFENSIVE:
		sprintf(buf, "fighting (defensive)");
		break;
	case POS_AGGRESSIVE:
		sprintf(buf, "fighting (aggressive)");
		break;
	case POS_BERSERK:
		sprintf(buf, "fighting (berserk)");
		break;
	case POS_MOUNTED:
		sprintf(buf, "mounted");
		break;
	case POS_SITTING:
		sprintf(buf, "sitting");
		break;
	}
	pager_printf(ch, "Rpp: %3d/%-3d           Pos'n: &W%s&C              Weight: &W%3d&C  (&wmax %3d&C)\n\r",
	    ch->pcdata->quest_curr, ch->pcdata->quest_accum, buf, ch->carry_weight, can_carry_w(ch));

	switch (ch->style) {
	case STYLE_EVASIVE:
		sprintf(buf, "evasive");
		break;
	case STYLE_DEFENSIVE:
		sprintf(buf, "defensive");
		break;
	case STYLE_AGGRESSIVE:
		sprintf(buf, "aggressive");
		break;
	case STYLE_BERSERK:
		sprintf(buf, "berserk");
		break;
	default:
		sprintf(buf, "standard");
		break;
	}

	pager_printf(ch, "                       Wimpy: &R%-5d&C                 Style: &W%-10.10s&C\n\r",
	    ch->wimpy, buf);

	pager_printf(ch, "&b-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&C\n\r");

	if (is_android(ch)) {
		pager_printf_color(ch, "UPGRD: &G%-3d&C        &YDamage&C: [&Y%3d&C]%c              AutoCompass: (&W%c&C) AutoZeni: (&W%c&C)\n\r",
		    ch->train, ch->hit, '%',
		    xIS_SET(ch->act, PLR_AUTO_COMPASS) ? 'X' : ' ',
		    xIS_SET(ch->act, PLR_AUTOGOLD) ? 'X' : ' ');
	} else {
		pager_printf_color(ch, "&YLifeforce&C: [&Y%3d &C/ &Y%3d&C]         AutoCompass: (&W%c&C) AutoZeni: (&W%c&C)\n\r",
		    ch->hit, ch->max_hit,
		    xIS_SET(ch->act, PLR_AUTO_COMPASS) ? 'X' : ' ',
		    xIS_SET(ch->act, PLR_AUTOGOLD) ? 'X' : ' ');
	}

	strcpy(buf, num_punct(ch->mana));
	strcpy(buf2, num_punct(ch->max_mana));

	if (is_android(ch)) {
		if (ch->max_mana < 1000)
			pager_printf_color(ch, "&YEnergy&C: [&Y%3s&C/&Y%-3s&C]              AutoExit: (&W%c&C) AutoLoot: (&W%c&C)\n\r",
			    buf, buf2, xIS_SET(ch->act, PLR_AUTOEXIT) ? 'X' : ' ', xIS_SET(ch->act, PLR_AUTOLOOT) ? 'X' : ' ');
		else if (ch->max_mana < 10000)
			pager_printf_color(ch, "&YEnergy&C: [&Y%5s&C/&Y%-5s&C]          AutoExit: (&W%c&C) AutoLoot: (&W%c&C)\n\r",
			    buf, buf2, xIS_SET(ch->act, PLR_AUTOEXIT) ? 'X' : ' ', xIS_SET(ch->act, PLR_AUTOLOOT) ? 'X' : ' ');
		else
			pager_printf_color(ch, "&YEnergy&C: [&Y%6s&C/&Y%-6s&C]        AutoExit: (&W%c&C) AutoLoot: (&W%c&C)\n\r",
			    buf, buf2, xIS_SET(ch->act, PLR_AUTOEXIT) ? 'X' : ' ', xIS_SET(ch->act, PLR_AUTOLOOT) ? 'X' : ' ');
	} else {
		if (ch->max_mana < 1000)
			pager_printf_color(ch, "&YEnergy&C: [&Y%3s&C/&Y%-3s&C]              AutoExit: (&W%c&C) AutoLoot: (&W%c&C)\n\r",
			    buf, buf2, xIS_SET(ch->act, PLR_AUTOEXIT) ? 'X' : ' ', xIS_SET(ch->act, PLR_AUTOLOOT) ? 'X' : ' ');
		else if (ch->max_mana < 10000)
			pager_printf_color(ch, "&YEnergy&C: [&Y%5s&C/&Y%-5s&C]          AutoExit: (&W%c&C) AutoLoot: (&W%c&C)\n\r",
			    buf, buf2, xIS_SET(ch->act, PLR_AUTOEXIT) ? 'X' : ' ', xIS_SET(ch->act, PLR_AUTOLOOT) ? 'X' : ' ');
		else
			pager_printf_color(ch, "&YEnergy&C: [&Y%6s&C/&Y%-6s&C]        AutoExit: (&W%c&C) AutoLoot: (&W%c&C)\n\r",
			    buf, buf2, xIS_SET(ch->act, PLR_AUTOEXIT) ? 'X' : ' ', xIS_SET(ch->act, PLR_AUTOLOOT) ? 'X' : ' ');
	}

	pager_printf_color(ch, "ZENI : &Y%-13s&C           AutoSac: (&W%c&C)\n\r",
	    num_punct(ch->gold), xIS_SET(ch->act, PLR_AUTOSAC) ? 'X' : ' ');

	int form_mastery = 0;
	
	if (is_saiyan(ch) || is_hb(ch))
		form_mastery = (ch->masteryssj / 90000);
	if (is_icer(ch))
		form_mastery = (ch->masteryicer / 90000);
	if (is_kaio(ch) || is_human(ch))
		form_mastery = (ch->masterymystic / 90000);
	if (is_namek(ch))
		form_mastery = (ch->masterynamek / 90000);

	if(form_mastery < 1) {
	  form_mastery = 1;
	}
	
	if (is_android(ch) || is_superandroid(ch)) {
		pager_printf(ch, "BASE TECHLEVEL: %-16s\n\r", num_punct_ld(ch->exp));

		if (ch->pl != ch->exp) {
			pager_printf(ch, "&YCURR TECHLEVEL: %-16s&C\n\r", num_punct_ld(ch->pl));
		} else
			pager_printf(ch, "CURR TECHLEVEL: %-16s\n\r", num_punct_ld(ch->pl));
	} else {
		pager_printf(ch, "BASE POWERLEVEL: %-16s\n\r", num_punct_ld(ch->exp));
		
		if (ch->pl != ch->exp) {
			pager_printf(ch, "&YCURR POWERLEVEL: %-16s&C\n\r", num_punct_ld(ch->pl));
		} else {
			pager_printf(ch, "CURR POWERLEVEL: %-16s\n\r", num_punct_ld(ch->pl));
		}
		int acc = 0;
		acc = ((ch->gravExp / 1000) + 1);
		pager_printf_color(ch, "&GKI CONTROL: &Y%-3d\n\r", ch->train);
		pager_printf_color(ch, "&GFORM MASTERY LEVEL: &Y%-3d\n\r", form_mastery);
	}
	long double pltrack = 0;

	pltrack = ch->exp - ch->logon_start;
	if (pltrack < 0)
		pltrack = 0;
	if (is_android(ch) || is_superandroid(ch))
		pager_printf(ch, "&GGAINED TL SINCE LOGON: %-16s&C\n\r",
		    num_punct_ld(pltrack));
	else
		pager_printf(ch, "&GGAINED PL SINCE LOGON: %-16s&C\n\r",
		    num_punct_ld(pltrack));

	pager_printf(ch, "                          PKills: [&R%5.5d&C] PDeaths: [&R%5.5d&C] SparWins: [&R%5.5d&C]\n\r",
	    ch->pcdata->pkills, ch->pcdata->pdeaths, ch->pcdata->spar_wins);
	pager_printf(ch, "                          MKills: [&R%5.5d&C] MDeaths: [&R%5.5d&C] SparLoss: [&R%5.5d&C]\n\r",
	    ch->pcdata->mkills, ch->pcdata->mdeaths, ch->pcdata->spar_loss);

	if (is_android(ch) && ch->pcdata->learned[gsn_self_destruct] > 0)
		pager_printf_color(ch, "                                              Self Destruct Charges: [&R%5.5d&C]\n\r",
		    ch->pcdata->sd_charge);
	if (is_android_e(ch) && ch->pcdata->learned[gsn_battery] > 0)
		pager_printf_color(ch, "                                                   Stored Ki Energy: [&R%3.3d&C]\n\r",
		    ch->battery);

	if (!IS_NPC(ch) && ch->pcdata->condition[COND_DRUNK] > 10)
		send_to_pager("You are drunk.\n\r", ch);
	if (!IS_NPC(ch) && ch->pcdata->condition[COND_THIRST] == 0)
		send_to_pager("You are in danger of dehydrating.\n\r", ch);
	if (!IS_NPC(ch) && ch->pcdata->condition[COND_FULL] == 0)
		send_to_pager("You are starving to death.\n\r", ch);
	if (ch->position != POS_SLEEPING)
		switch (ch->mental_state / 10) {
		default:
			send_to_pager("You're completely messed up!\n\r", ch);
			break;
		case -10:
			send_to_pager("You're barely conscious.\n\r", ch);
			break;
		case -9:
			send_to_pager("You can barely keep your eyes open.\n\r", ch);
			break;
		case -8:
			send_to_pager("You're extremely drowsy.\n\r", ch);
			break;
		case -7:
			send_to_pager("You feel very unmotivated.\n\r", ch);
			break;
		case -6:
			send_to_pager("You feel sedated.\n\r", ch);
			break;
		case -5:
			send_to_pager("You feel sleepy.\n\r", ch);
			break;
		case -4:
			send_to_pager("You feel tired.\n\r", ch);
			break;
		case -3:
			send_to_pager("You could use a rest.\n\r", ch);
			break;
		case -2:
			send_to_pager("You feel a little under the weather.\n\r", ch);
			break;
		case -1:
			send_to_pager("You feel fine.\n\r", ch);
			break;
		case 0:
			send_to_pager("You feel great.\n\r", ch);
			break;
		case 1:
			send_to_pager("You feel energetic.\n\r", ch);
			break;
		case 2:
			send_to_pager("Your mind is racing.\n\r", ch);
			break;
		case 3:
			send_to_pager("You can't think straight.\n\r", ch);
			break;
		case 4:
			send_to_pager("Your mind is going 100 miles an hour.\n\r", ch);
			break;
		case 5:
			send_to_pager("You're high as a kite.\n\r", ch);
			break;
		case 6:
			send_to_pager("Your mind and body are slipping apart.\n\r", ch);
			break;
		case 7:
			send_to_pager("Reality is slipping away.\n\r", ch);
			break;
		case 8:
			send_to_pager("You have no idea what is real, and what is not.\n\r", ch);
			break;
		case 9:
			send_to_pager("You feel immortal.\n\r", ch);
			break;
		case 10:
			send_to_pager("You are a Supreme Entity.\n\r", ch);
			break;
		}
	else if (ch->mental_state > 45)
		send_to_pager("Your sleep is filled with strange and vivid dreams.\n\r", ch);
	else if (ch->mental_state > 25)
		send_to_pager("Your sleep is uneasy.\n\r", ch);
	else if (ch->mental_state < -35)
		send_to_pager("You are deep in a much needed sleep.\n\r", ch);
	else if (ch->mental_state < -25)
		send_to_pager("You are in deep slumber.\n\r", ch);
	send_to_pager("&c----------------------------------------------------------------------------&C\n\r", ch);

	if (ch->pcdata->bestowments && ch->pcdata->bestowments[0] != '\0')
		pager_printf(ch, "You are bestowed with the command(s): %s.\n\r",
		    ch->pcdata->bestowments);

	if (ch->morph && ch->morph->morph) {
		if (IS_IMMORTAL(ch))
			pager_printf(ch, "Morphed as (%d) %s with a timer of %d.\n\r",
			    ch->morph->morph->vnum, ch->morph->morph->short_desc,
			    ch->morph->timer
			    );
		else
			pager_printf(ch, "You are morphed into a %s.\n\r",
			    ch->morph->morph->short_desc);
		send_to_pager("&c----------------------------------------------------------------------------&C\n\r", ch);
	}
	if (ch->pcdata->clan) {
		pager_printf(ch, "CLAN NAME:  %s%-s\n\r", color_clan(ch), ch->pcdata->clan->name);
		pager_printf(ch, "&c Current Rank: (&w%d&c)&W%-20s  &cTotal Clan Members: (&w%d&c)\n\r", ch->pcdata->clanRank, get_clanTitle(ch), ch->pcdata->clan->members);
		pager_printf(ch, "&c Total Zeni Donated: (&W%s&c) Total Zeni Taxed: (&W%s&c)\n\r", num_punct_d(ch->pcdata->clanZeniDonated), num_punct_d(ch->pcdata->clanZeniClanTax));
		send_to_pager("&c----------------------------------------------------------------------------&C\n\r", ch);
	}
	if (ch->pcdata->deity) {
		if (ch->pcdata->favor > 2250)
			sprintf(buf, "loved");
		else if (ch->pcdata->favor > 2000)
			sprintf(buf, "cherished");
		else if (ch->pcdata->favor > 1750)
			sprintf(buf, "honored");
		else if (ch->pcdata->favor > 1500)
			sprintf(buf, "praised");
		else if (ch->pcdata->favor > 1250)
			sprintf(buf, "favored");
		else if (ch->pcdata->favor > 1000)
			sprintf(buf, "respected");
		else if (ch->pcdata->favor > 750)
			sprintf(buf, "liked");
		else if (ch->pcdata->favor > 250)
			sprintf(buf, "tolerated");
		else if (ch->pcdata->favor > -250)
			sprintf(buf, "ignored");
		else if (ch->pcdata->favor > -750)
			sprintf(buf, "shunned");
		else if (ch->pcdata->favor > -1000)
			sprintf(buf, "disliked");
		else if (ch->pcdata->favor > -1250)
			sprintf(buf, "dishonored");
		else if (ch->pcdata->favor > -1500)
			sprintf(buf, "disowned");
		else if (ch->pcdata->favor > -1750)
			sprintf(buf, "abandoned");
		else if (ch->pcdata->favor > -2000)
			sprintf(buf, "despised");
		else if (ch->pcdata->favor > -2250)
			sprintf(buf, "hated");
		else
			sprintf(buf, "damned");
		pager_printf(ch, "Deity:  %-20s  Favor: %s\n\r", ch->pcdata->deity->name, buf);
		send_to_pager("&c----------------------------------------------------------------------------\n\r", ch);
	}
	if (ch->pcdata->clan && ch->pcdata->clan->clan_type == CLAN_ORDER) {
		pager_printf(ch, "Order:  %-20s  Order Mkills:  %-6d   Order MDeaths:  %-6d\n\r",
		    ch->pcdata->clan->name, ch->pcdata->clan->mkills, ch->pcdata->clan->mdeaths);
		send_to_pager("&c----------------------------------------------------------------------------\n\r", ch);
	}
	if (ch->pcdata->clan && ch->pcdata->clan->clan_type == CLAN_GUILD) {
		pager_printf(ch, "Guild:  %-20s  Guild Mkills:  %-6d   Guild MDeaths:  %-6d\n\r",
		    ch->pcdata->clan->name, ch->pcdata->clan->mkills, ch->pcdata->clan->mdeaths);
		send_to_pager("&c----------------------------------------------------------------------------\n\r", ch);
	}
	if (IS_IMMORTAL(ch)) {

		pager_printf(ch, "IMMORTAL DATA:  Wizinvis [%s]  Wizlevel (%d)\n\r",
		    xIS_SET(ch->act, PLR_WIZINVIS) ? "X" : " ", ch->pcdata->wizinvis);

		pager_printf(ch, "Bamfin:  %s %s\n\r", ch->name, (ch->pcdata->bamfin[0] != '\0')
		    ? ch->pcdata->bamfin : "appears in a swirling mist.");
		pager_printf(ch, "Bamfout: %s %s\n\r", ch->name, (ch->pcdata->bamfout[0] != '\0')
		    ? ch->pcdata->bamfout : "leaves in a swirling mist.");


		if (ch->pcdata->area) {
			pager_printf(ch, "Vnums:   Room (%-5.5d - %-5.5d)   Object (%-5.5d - %-5.5d)   Mob (%-5.5d - %-5.5d)\n\r",
			    ch->pcdata->area->low_r_vnum, ch->pcdata->area->hi_r_vnum,
			    ch->pcdata->area->low_o_vnum, ch->pcdata->area->hi_o_vnum,
			    ch->pcdata->area->low_m_vnum, ch->pcdata->area->hi_m_vnum);
			pager_printf(ch, "Area Loaded [%s]\n\r", (IS_SET(ch->pcdata->area->status, AREA_LOADED)) ? "yes" : "no");
		}
		send_to_pager("&c----------------------------------------------------------------------------\n\r", ch);
	}
	if (ch->first_affect) {
		int i;
		SKILLTYPE *sktmp;

		i = 0;
		send_to_pager("AFFECT DATA:                            ", ch);
		for (paf = ch->first_affect; paf; paf = paf->next) {
			if ((sktmp = get_skilltype(paf->type)) == NULL)
				continue;
			if (ch->level < 20) {
				pager_printf(ch, "[%-34.34s]    ", sktmp->name);
				if (i == 0)
					i = 2;
				if ((++i % 3) == 0)
					send_to_pager("\n\r", ch);
			}
			if (ch->level >= 20) {
				if (paf->modifier == 0)
					pager_printf(ch, "[%-24.24s;%5d rds]    ",
					    sktmp->name,
					    paf->duration);
				else if (paf->modifier > 999)
					pager_printf(ch, "[%-15.15s; %7.7s;%5d rds]    ",
					    sktmp->name,
					    tiny_affect_loc_name(paf->location),
					    paf->duration);
				else
					pager_printf(ch, "[%-11.11s;%+-3.3d %7.7s;%5d rds]    ",
					    sktmp->name,
					    paf->modifier,
					    tiny_affect_loc_name(paf->location),
					    paf->duration);
				if (i == 0)
					i = 1;
				if ((++i % 2) == 0)
					send_to_pager("\n\r", ch);
			}
		}
		send_to_pager("\n\r&c----------------------------------------------------------------------------\n\r", ch);
	}
	send_to_pager("&w&D\n\r", ch);
	sysdata.outBytesFlag = LOGBOUTNORM;
	return;
}


void 
do_newscore(CHAR_DATA * ch, char *argument)
{
	char buf[MAX_STRING_LENGTH];
	char arg[MAX_INPUT_LENGTH];
	AFFECT_DATA *paf;

	if (IS_NPC(ch)) {
		do_oldscore(ch, argument);
		return;
	}
	set_pager_color(AT_SCORE, ch);

	pager_printf_color(ch, "\n\r&C%s%s.\n\r", ch->name, ch->pcdata->title);
	if (get_trust(ch) != ch->level)
		pager_printf(ch, "You are trusted at level %d.\n\r", get_trust(ch));

	send_to_pager_color("&W----------------------------------------------------------------------------\n\r", ch);

	pager_printf_color(ch, "Level: &W%-3d         &CRace : &W%-10.10s        &CPlayed: &W%d &Chours\n\r",
	    ch->level, capitalize(get_race(ch)), (get_age(ch) - 4) * 2);
	pager_printf_color(ch, "&CYears: &W%-6d      &CClass: &W%-11.11s       &CLog In: %s\r",
	    get_age(ch), capitalize(get_class(ch)), ctime(&(ch->logon)));

	if (ch->level >= 15
	    || IS_PKILL(ch)) {
		pager_printf_color(ch, "&CSTR  : &W%2.2d&C(&w%2.2d&C)    HitRoll: &R%-4d               &CSaved: %s\r",
		    get_curr_str(ch), ch->perm_str, GET_HITROLL(ch), ch->save_time ? ctime(&(ch->save_time)) : "no save this session\n");

		pager_printf_color(ch, "&CINT  : &W%2.2d&C(&w%2.2d&C)    DamRoll: &R%-4d                &CTime: %s\r",
		    get_curr_int(ch), ch->perm_int, GET_DAMROLL(ch), ctime(&current_time));
	} else {
		pager_printf_color(ch, "&CSTR  : &W%2.2d&C(&w%2.2d&C)                               Saved:  %s\r",
		    get_curr_str(ch), ch->perm_str, ch->save_time ? ctime(&(ch->save_time)) : "no\n");

		pager_printf_color(ch, "&CINT  : &W%2.2d&C(&w%2.2d&C)                               Time:   %s\r",
		    get_curr_int(ch), ch->perm_int, ctime(&current_time));
	}

	if (GET_AC(ch) >= 101)
		sprintf(buf, "the rags of a beggar");
	else if (GET_AC(ch) >= 80)
		sprintf(buf, "improper for adventure");
	else if (GET_AC(ch) >= 55)
		sprintf(buf, "shabby and threadbare");
	else if (GET_AC(ch) >= 40)
		sprintf(buf, "of poor quality");
	else if (GET_AC(ch) >= 20)
		sprintf(buf, "scant protection");
	else if (GET_AC(ch) >= 10)
		sprintf(buf, "that of a knave");
	else if (GET_AC(ch) >= 0)
		sprintf(buf, "moderately crafted");
	else if (GET_AC(ch) >= -10)
		sprintf(buf, "well crafted");
	else if (GET_AC(ch) >= -20)
		sprintf(buf, "the envy of squires");
	else if (GET_AC(ch) >= -40)
		sprintf(buf, "excellently crafted");
	else if (GET_AC(ch) >= -60)
		sprintf(buf, "the envy of knights");
	else if (GET_AC(ch) >= -80)
		sprintf(buf, "the envy of barons");
	else if (GET_AC(ch) >= -100)
		sprintf(buf, "the envy of dukes");
	else if (GET_AC(ch) >= -200)
		sprintf(buf, "the envy of emperors");
	else
		sprintf(buf, "that of an avatar");
	if (ch->level > 24)
		pager_printf_color(ch, "&CWIS  : &W0&C(&w0&C)      Armor: &W%-d; %s\n\r",
		    GET_AC(ch), buf);
	else
		pager_printf_color(ch, "&CWIS  : &W0&C(&w0&C)      Armor: &W%s \n\r",
		    buf);

	if (ch->alignment > 900)
		sprintf(buf, "devout");
	else if (ch->alignment > 700)
		sprintf(buf, "noble");
	else if (ch->alignment > 350)
		sprintf(buf, "honorable");
	else if (ch->alignment > 100)
		sprintf(buf, "worthy");
	else if (ch->alignment > -100)
		sprintf(buf, "neutral");
	else if (ch->alignment > -350)
		sprintf(buf, "base");
	else if (ch->alignment > -700)
		sprintf(buf, "evil");
	else if (ch->alignment > -900)
		sprintf(buf, "ignoble");
	else
		sprintf(buf, "fiendish");
	if (ch->level < 10)
		pager_printf_color(ch, "&CDEX  : &W%2.2d&C(&w%2.2d&C)      Align: &W%-20.20s    &CItems:  &W%d (max %d)\n\r",
		    get_curr_dex(ch), ch->perm_dex, buf, ch->carry_number, can_carry_n(ch));
	else
		pager_printf_color(ch, "&CDEX  : &W%2.2d&C(&w%2.2d&C)      Align: &W%4d; %-14.14s   &CItems:  &W%d &w(max %d)\n\r",
		    get_curr_dex(ch), ch->perm_dex, ch->alignment, buf, ch->carry_number, can_carry_n(ch));

	switch (ch->position) {
	case POS_DEAD:
		sprintf(buf, "slowly decomposing");
		break;
	case POS_MORTAL:
		sprintf(buf, "mortally wounded");
		break;
	case POS_INCAP:
		sprintf(buf, "incapacitated");
		break;
	case POS_STUNNED:
		sprintf(buf, "stunned");
		break;
	case POS_SLEEPING:
		sprintf(buf, "sleeping");
		break;
	case POS_RESTING:
		sprintf(buf, "resting");
		break;
	case POS_STANDING:
		sprintf(buf, "standing");
		break;
	case POS_FIGHTING:
		sprintf(buf, "fighting");
		break;
	case POS_EVASIVE:
		sprintf(buf, "fighting (evasive)");	/* Fighting style
							 * support -haus */
		break;
	case POS_DEFENSIVE:
		sprintf(buf, "fighting (defensive)");
		break;
	case POS_AGGRESSIVE:
		sprintf(buf, "fighting (aggressive)");
		break;
	case POS_BERSERK:
		sprintf(buf, "fighting (berserk)");
		break;
	case POS_MOUNTED:
		sprintf(buf, "mounted");
		break;
	case POS_SITTING:
		sprintf(buf, "sitting");
		break;
	}
	pager_printf_color(ch, "&CCON  : &W%2.2d&C(&w%2.2d&C)      Pos'n: &W%-21.21s  &CWeight: &W%d &w(max %d)\n\r",
	    get_curr_con(ch), ch->perm_con, buf, ch->carry_weight, can_carry_w(ch));


	/*
         * Fighting style support -haus
         */
	pager_printf_color(ch, "&CCHA  : &W0&C(&w0&C)      Wimpy: &Y%-5d      ",
	    ch->wimpy);

	switch (ch->style) {
	case STYLE_EVASIVE:
		sprintf(buf, "evasive");
		break;
	case STYLE_DEFENSIVE:
		sprintf(buf, "defensive");
		break;
	case STYLE_AGGRESSIVE:
		sprintf(buf, "aggressive");
		break;
	case STYLE_BERSERK:
		sprintf(buf, "berserk");
		break;
	default:
		sprintf(buf, "standard");
		break;
	}
	pager_printf_color(ch, "\n\r&CLCK  : &W%2.2d&C(&w%2.2d&C)      Style: &W%-10.10s\n\r",
	    get_curr_lck(ch), ch->perm_lck, buf);

	pager_printf_color(ch, "&CGlory: &W%d&C/&w%d\n\r",
	    ch->pcdata->quest_curr, ch->pcdata->quest_accum);

	pager_printf_color(ch, "&CPRACT: &W%3d         &CHitpoints: &G%-5d &Cof &g%5d   &CPager: (&W%c&C) &W%3d    &CAutoExit(&W%c&C)\n\r",
	    ch->practice, ch->hit, ch->max_hit,
	    IS_SET(ch->pcdata->flags, PCFLAG_PAGERON) ? 'X' : ' ',
	    ch->pcdata->pagerlen, xIS_SET(ch->act, PLR_AUTOEXIT) ? 'X' : ' ');

	pager_printf_color(ch, "&CEXP  : &W%-9d        &CMana: &B%-5d &Cof &b%5d   &CMKills:  &W%5d    &CAutoLoot(&W%c&C)\n\r",
	    ch->exp, ch->mana, ch->max_mana, ch->pcdata->mkills, xIS_SET(ch->act, PLR_AUTOLOOT) ? 'X' : ' ');

	pager_printf_color(ch, "&CGOLD : &Y%-13s    &CMove: &W%-5d &Cof &w%5d   &CMdeaths: &W%5d    &CAutoSac (&W%c&C)\n\r",
	    num_punct(ch->gold), ch->move, ch->max_move, ch->pcdata->mdeaths, xIS_SET(ch->act, PLR_AUTOSAC) ? 'X' : ' ');

	if (!IS_NPC(ch) && ch->pcdata->condition[COND_DRUNK] > 10)
		send_to_pager("You are drunk.\n\r", ch);
	if (!IS_NPC(ch) && ch->pcdata->condition[COND_THIRST] == 0)
		send_to_pager("You are in danger of dehydrating.\n\r", ch);
	if (!IS_NPC(ch) && ch->pcdata->condition[COND_FULL] == 0)
		send_to_pager("You are starving to death.\n\r", ch);
	if (ch->position != POS_SLEEPING)
		switch (ch->mental_state / 10) {
		default:
			send_to_pager("You're completely messed up!\n\r", ch);
			break;
		case -10:
			send_to_pager("You're barely conscious.\n\r", ch);
			break;
		case -9:
			send_to_pager("You can barely keep your eyes open.\n\r", ch);
			break;
		case -8:
			send_to_pager("You're extremely drowsy.\n\r", ch);
			break;
		case -7:
			send_to_pager("You feel very unmotivated.\n\r", ch);
			break;
		case -6:
			send_to_pager("You feel sedated.\n\r", ch);
			break;
		case -5:
			send_to_pager("You feel sleepy.\n\r", ch);
			break;
		case -4:
			send_to_pager("You feel tired.\n\r", ch);
			break;
		case -3:
			send_to_pager("You could use a rest.\n\r", ch);
			break;
		case -2:
			send_to_pager("You feel a little under the weather.\n\r", ch);
			break;
		case -1:
			send_to_pager("You feel fine.\n\r", ch);
			break;
		case 0:
			send_to_pager("You feel great.\n\r", ch);
			break;
		case 1:
			send_to_pager("You feel energetic.\n\r", ch);
			break;
		case 2:
			send_to_pager("Your mind is racing.\n\r", ch);
			break;
		case 3:
			send_to_pager("You can't think straight.\n\r", ch);
			break;
		case 4:
			send_to_pager("Your mind is going 100 miles an hour.\n\r", ch);
			break;
		case 5:
			send_to_pager("You're high as a kite.\n\r", ch);
			break;
		case 6:
			send_to_pager("Your mind and body are slipping apart.\n\r", ch);
			break;
		case 7:
			send_to_pager("Reality is slipping away.\n\r", ch);
			break;
		case 8:
			send_to_pager("You have no idea what is real, and what is not.\n\r", ch);
			break;
		case 9:
			send_to_pager("You feel immortal.\n\r", ch);
			break;
		case 10:
			send_to_pager("You are a Supreme Entity.\n\r", ch);
			break;
		}
	else if (ch->mental_state > 45)
		send_to_pager("Your sleep is filled with strange and vivid dreams.\n\r", ch);
	else if (ch->mental_state > 25)
		send_to_pager("Your sleep is uneasy.\n\r", ch);
	else if (ch->mental_state < -35)
		send_to_pager("You are deep in a much needed sleep.\n\r", ch);
	else if (ch->mental_state < -25)
		send_to_pager("You are in deep slumber.\n\r", ch);
/*  send_to_pager("Languages: ", ch );
    for ( iLang = 0; lang_array[iLang] != LANG_UNKNOWN; iLang++ )
	if ( knows_language( ch, lang_array[iLang], ch )
	||  (IS_NPC(ch) && ch->speaks == 0) )
	{
	    if ( lang_array[iLang] & ch->speaking
	    ||  (IS_NPC(ch) && !ch->speaking) )
		set_pager_color( AT_RED, ch );
	    send_to_pager( lang_names[iLang], ch );
	    send_to_pager( " ", ch );
	    set_pager_color( AT_SCORE, ch );
	}
    send_to_pager( "\n\r", ch );
*/
	if (ch->pcdata->bestowments && ch->pcdata->bestowments[0] != '\0')
		pager_printf_color(ch, "&CYou are bestowed with the command(s): &Y%s\n\r",
		    ch->pcdata->bestowments);

	if (ch->morph && ch->morph->morph) {
		send_to_pager_color("&W----------------------------------------------------------------------------&C\n\r", ch);
		if (IS_IMMORTAL(ch))
			pager_printf(ch, "Morphed as (%d) %s with a timer of %d.\n\r",
			    ch->morph->morph->vnum, ch->morph->morph->short_desc,
			    ch->morph->timer
			    );
		else
			pager_printf(ch, "You are morphed into a %s.\n\r",
			    ch->morph->morph->short_desc);
		send_to_pager_color("&W----------------------------------------------------------------------------&C\n\r", ch);
	}
	if (CAN_PKILL(ch)) {
		send_to_pager_color("&W----------------------------------------------------------------------------&C\n\r", ch);
		pager_printf_color(ch, "&CPKILL DATA:  Pkills (&W%d&C)     Illegal Pkills (&W%d&C)     Pdeaths (&W%d&C)\n\r",
		    ch->pcdata->pkills, ch->pcdata->illegal_pk, ch->pcdata->pdeaths);
	}
	if (ch->pcdata->clan && ch->pcdata->clan->clan_type != CLAN_ORDER && ch->pcdata->clan->clan_type != CLAN_GUILD) {
/*
	send_to_pager_color( "&W----------------------------------------------------------------------------&C\n\r", ch);
*/
		pager_printf_color(ch, "&CCLAN STATS:  &W%-14.14s  &CClan AvPkills : &W%-5d  &CClan NonAvpkills : &W%-5d\n\r",
		    ch->pcdata->clan->name, ch->pcdata->clan->pkills[5],
		    (ch->pcdata->clan->pkills[0] + ch->pcdata->clan->pkills[1] +
		    ch->pcdata->clan->pkills[2] + ch->pcdata->clan->pkills[3] +
		    ch->pcdata->clan->pkills[4]));
		pager_printf_color(ch, "&C                             Clan AvPdeaths: &W%-5d  &CClan NonAvpdeaths: &W%-5d\n\r",
		    ch->pcdata->clan->pdeaths[5],
		    (ch->pcdata->clan->pdeaths[0] + ch->pcdata->clan->pdeaths[1] +
		    ch->pcdata->clan->pdeaths[2] + ch->pcdata->clan->pdeaths[3] +
		    ch->pcdata->clan->pdeaths[4]));
	}
	if (ch->pcdata->deity) {
		send_to_pager_color("&W----------------------------------------------------------------------------&C\n\r", ch);
		if (ch->pcdata->favor > 2250)
			sprintf(buf, "loved");
		else if (ch->pcdata->favor > 2000)
			sprintf(buf, "cherished");
		else if (ch->pcdata->favor > 1750)
			sprintf(buf, "honored");
		else if (ch->pcdata->favor > 1500)
			sprintf(buf, "praised");
		else if (ch->pcdata->favor > 1250)
			sprintf(buf, "favored");
		else if (ch->pcdata->favor > 1000)
			sprintf(buf, "respected");
		else if (ch->pcdata->favor > 750)
			sprintf(buf, "liked");
		else if (ch->pcdata->favor > 250)
			sprintf(buf, "tolerated");
		else if (ch->pcdata->favor > -250)
			sprintf(buf, "ignored");
		else if (ch->pcdata->favor > -750)
			sprintf(buf, "shunned");
		else if (ch->pcdata->favor > -1000)
			sprintf(buf, "disliked");
		else if (ch->pcdata->favor > -1250)
			sprintf(buf, "dishonored");
		else if (ch->pcdata->favor > -1500)
			sprintf(buf, "disowned");
		else if (ch->pcdata->favor > -1750)
			sprintf(buf, "abandoned");
		else if (ch->pcdata->favor > -2000)
			sprintf(buf, "despised");
		else if (ch->pcdata->favor > -2250)
			sprintf(buf, "hated");
		else
			sprintf(buf, "damned");
		pager_printf_color(ch, "&CDeity:  &W%-20s &CFavor:  &W%s&C\n\r", ch->pcdata->deity->name, buf);
	}
	if (ch->pcdata->clan && ch->pcdata->clan->clan_type == CLAN_ORDER) {
		send_to_pager_color("&W----------------------------------------------------------------------------&C\n\r", ch);
		pager_printf_color(ch, "&COrder:  &W%-20s  &COrder Mkills:  &W%-6d   &COrder MDeaths:  &W%-6d\n\r",
		    ch->pcdata->clan->name, ch->pcdata->clan->mkills, ch->pcdata->clan->mdeaths);
	}
	if (ch->pcdata->clan && ch->pcdata->clan->clan_type == CLAN_GUILD) {
		send_to_pager_color("&W----------------------------------------------------------------------------&C\n\r", ch);
		pager_printf_color(ch, "&CGuild:  &W%-20s  &CGuild Mkills:  &W%-6d   &CGuild MDeaths:  &W%-6d\n\r",
		    ch->pcdata->clan->name, ch->pcdata->clan->mkills, ch->pcdata->clan->mdeaths);
	}
	argument = one_argument(argument, arg);
	if (ch->first_affect && !str_cmp(arg, "affects")) {
		int i;
		SKILLTYPE *sktmp;

		i = 0;
		send_to_pager_color("&W----------------------------------------------------------------------------&C\n\r", ch);
		send_to_pager_color("AFFECT DATA:                            ", ch);
		for (paf = ch->first_affect; paf; paf = paf->next) {
			if ((sktmp = get_skilltype(paf->type)) == NULL)
				continue;
			if (ch->level < 20) {
				pager_printf_color(ch, "&C[&W%-34.34s&C]    ", sktmp->name);
				if (i == 0)
					i = 2;
				if ((++i % 3) == 0)
					send_to_pager("\n\r", ch);
			}
			if (ch->level >= 20) {
				if (paf->modifier == 0)
					pager_printf_color(ch, "&C[&W%-24.24s;%5d &Crds]    ",
					    sktmp->name,
					    paf->duration);
				else if (paf->modifier > 999)
					pager_printf_color(ch, "&C[&W%-15.15s; %7.7s;%5d &Crds]    ",
					    sktmp->name,
					    tiny_affect_loc_name(paf->location),
					    paf->duration);
				else
					pager_printf_color(ch, "&C[&W%-11.11s;%+-3.3d %7.7s;%5d &Crds]    ",
					    sktmp->name,
					    paf->modifier,
					    tiny_affect_loc_name(paf->location),
					    paf->duration);
				if (i == 0)
					i = 1;
				if ((++i % 2) == 0)
					send_to_pager("\n\r", ch);
			}
		}
	}
	send_to_pager("\n\r", ch);
	return;
}

/*
 * Return ascii name of an affect location.
 */
char   *
tiny_affect_loc_name(int location)
{
	switch (location) {
	case APPLY_NONE:
		return "NIL";
	case APPLY_STR:
		return " STR  ";
	case APPLY_DEX:
		return " DEX  ";
	case APPLY_INT:
		return " INT  ";
	case APPLY_CON:
		return " CON  ";
	case APPLY_LCK:
		return " LCK  ";
	case APPLY_ALLSTATS:
		return " ALL STATS  ";
	case APPLY_SEX:
		return " SEX  ";
	case APPLY_CLASS:
		return " CLASS";
	case APPLY_LEVEL:
		return " LVL  ";
	case APPLY_AGE:
		return " AGE  ";
	case APPLY_MANA:
		return " MANA ";
	case APPLY_HIT:
		return " HV   ";
	case APPLY_MOVE:
		return " MOVE ";
	case APPLY_GOLD:
		return " GOLD ";
	case APPLY_EXP:
		return " EXP  ";
	case APPLY_PL_MULT:
		return " PL MULT   ";
	case APPLY_PL_PERCENT:
		return " PL PERCENT  ";
	case APPLY_AC:
		return " AC   ";
	case APPLY_HITROLL:
		return " HITRL";
	case APPLY_DAMROLL:
		return " DAMRL";
	case APPLY_SAVING_POISON:
		return "SV POI";
	case APPLY_SAVING_ROD:
		return "SV ROD";
	case APPLY_SAVING_PARA:
		return "SV PARA";
	case APPLY_SAVING_BREATH:
		return "SV BRTH";
	case APPLY_SAVING_SPELL:
		return "SV SPLL";
	case APPLY_HEIGHT:
		return "HEIGHT";
	case APPLY_WEIGHT:
		return "WEIGHT";
	case APPLY_AFFECT:
		return "AFF BY";
	case APPLY_RESISTANT:
		return "RESIST";
	case APPLY_IMMUNE:
		return "IMMUNE";
	case APPLY_SUSCEPTIBLE:
		return "SUSCEPT";
	case APPLY_WEAPONSPELL:
		return " WEAPON";
	case APPLY_BACKSTAB:
		return "BACKSTB";
	case APPLY_PICK:
		return " PICK  ";
	case APPLY_TRACK:
		return " TRACK ";
	case APPLY_STEAL:
		return " STEAL ";
	case APPLY_SNEAK:
		return " SNEAK ";
	case APPLY_HIDE:
		return " HIDE  ";
	case APPLY_PALM:
		return " PALM  ";
	case APPLY_DETRAP:
		return " DETRAP";
	case APPLY_DODGE:
		return " DODGE ";
	case APPLY_PEEK:
		return " PEEK  ";
	case APPLY_SCAN:
		return " SCAN  ";
	case APPLY_GOUGE:
		return " GOUGE ";
	case APPLY_SEARCH:
		return " SEARCH";
	case APPLY_MOUNT:
		return " MOUNT ";
	case APPLY_DISARM:
		return " DISARM";
	case APPLY_KICK:
		return " KICK  ";
	case APPLY_PARRY:
		return " PARRY ";
	case APPLY_BASH:
		return " BASH  ";
	case APPLY_STUN:
		return " STUN  ";
	case APPLY_PUNCH:
		return " PUNCH ";
	case APPLY_CLIMB:
		return " CLIMB ";
	case APPLY_GRIP:
		return " GRIP  ";
	case APPLY_SCRIBE:
		return " SCRIBE";
	case APPLY_BREW:
		return " BREW  ";
	case APPLY_WEARSPELL:
		return " WEAR  ";
	case APPLY_REMOVESPELL:
		return " REMOVE";
	case APPLY_EMOTION:
		return "EMOTION";
	case APPLY_MENTALSTATE:
		return " MENTAL";
	case APPLY_STRIPSN:
		return " DISPEL";
	case APPLY_REMOVE:
		return " REMOVE";
	case APPLY_DIG:
		return " DIG   ";
	case APPLY_FULL:
		return " HUNGER";
	case APPLY_THIRST:
		return " THIRST";
	case APPLY_DRUNK:
		return " DRUNK ";
	case APPLY_BLOOD:
		return " BLOOD ";
	case APPLY_COOK:
		return " COOK  ";
	case APPLY_RECURRINGSPELL:
		return " RECURR";
	case APPLY_CONTAGIOUS:
		return "CONTGUS";
	case APPLY_ODOR:
		return " ODOR  ";
	case APPLY_ROOMFLAG:
		return " RMFLG ";
	case APPLY_SECTORTYPE:
		return " SECTOR";
	case APPLY_ROOMLIGHT:
		return " LIGHT ";
	case APPLY_TELEVNUM:
		return " TELEVN";
	case APPLY_TELEDELAY:
		return " TELEDY";
	case APPLY_NATURALAC:
		return " NTRLAC";
	};

	bug("Affect_location_name: unknown location %d.", location);
	return "(BUG: NOTIFY GOKU)";
}

char   *
get_class(CHAR_DATA * ch)
{
	if (IS_NPC(ch) && ch->class < MAX_NPC_CLASS && ch->class >= 0)
		return (npc_class[ch->class]);
	else if (!IS_NPC(ch) && ch->class < MAX_PC_CLASS && ch->class >= 0)
		return class_table[ch->class]->who_name;
	return ("Unknown");
}


char   *
get_race(CHAR_DATA * ch)
{
	if (ch->race < MAX_PC_RACE && ch->race >= 0)
		return (race_table[ch->race]->race_name);
	if (ch->race < MAX_NPC_RACE && ch->race >= 0)
		return (npc_race[ch->race]);
	return ("Unknown");
}

char   *
get_kai(CHAR_DATA * ch)
{
	switch (ch->kairank) {
	case 1:
		return ("South Kai");
		break;
	case 2:
		return ("East Kai");
		break;
	case 3:
		return ("West Kai");
		break;
	case 4:
		return ("North Kai");
		break;
	case 5:
		return ("Grand Kai");
		break;
	case 6:
		return ("Supreme Kai");
		break;
	default:
		break;
	}
	return ("None");
}

char   *
get_demon(CHAR_DATA * ch)
{
	switch (ch->demonrank) {
	case 1:
		return ("Greater Demon");
		break;
	case 2:
		return ("Demon Warlord");
		break;
	case 3:
		return ("Demon King");
		break;
	}
	return ("None");
}

int 
get_race_num(char *arg)
{
	int a = 0;

	for (a = 0; a < MAX_PC_RACE; a++)
		if (!str_cmp(arg, race_table[a]->race_name))
			return a;

	for (a = 0; a < MAX_NPC_RACE; a++)
		if (!str_cmp(arg, npc_race[a]))
			return a;

	return 0;
}

int 
get_class_num(char *arg)
{
	int a = 0;

	for (a = 0; a < MAX_PC_CLASS; a++)
		if (!str_cmp(arg, class_table[a]->who_name))
			return a;

	for (a = 0; a < MAX_NPC_CLASS; a++)
		if (!str_cmp(arg, npc_class[a]))
			return a;

	return 0;
}

void 
do_oldscore(CHAR_DATA * ch, char *argument)
{
	AFFECT_DATA *paf;
	SKILLTYPE *skill;

	if (!IS_NPC(ch)) {
		do_score(ch, argument);
		return;
	}
	set_pager_color(AT_SCORE, ch);
	pager_printf(ch,
	    "You are %s%s&D&C, level %d, %d years old (%d hours).\n\r",
	    ch->name,
	    IS_NPC(ch) ? "" : ch->pcdata->title,
	    ch->level,
	    get_age(ch),
	    (get_age(ch) - 4) * 2);

	if (get_trust(ch) != ch->level)
		pager_printf(ch, "You are trusted at level %d.\n\r",
		    get_trust(ch));

	if (IS_NPC(ch) && xIS_SET(ch->act, ACT_MOBINVIS))
		pager_printf(ch, "You are mobinvis at level %d.\n\r",
		    ch->mobinvis);

	pager_printf(ch,
	    "You have %d/%d hit, %d/%d mana, %d/%d movement, %d practices.\n\r",
	    ch->hit, ch->max_hit,
	    ch->mana, ch->max_mana,
	    ch->move, ch->max_move,
	    ch->practice);

	pager_printf(ch,
	    "You are carrying %d/%d items with weight %d/%d kg.\n\r",
	    ch->carry_number, can_carry_n(ch),
	    ch->carry_weight, can_carry_w(ch));

	pager_printf(ch,
	    "Str: %d  Int: %d  Wis: 0  Dex: %d  Con: 0  Cha: %d  Lck: %d.\n\r",
	    get_curr_str(ch),
	    get_curr_int(ch),
	    get_curr_dex(ch),
	    get_curr_con(ch),
	    get_curr_lck(ch));

	pager_printf(ch, "You have scored %s exp, and have ", num_punct_ld(ch->exp));
	pager_printf(ch, "%s gold coins.\n\r", num_punct(ch->gold));

	if (!IS_NPC(ch))
		pager_printf(ch,
		    "You have achieved %d glory during your life, and currently have %d.\n\r",
		    ch->pcdata->quest_accum, ch->pcdata->quest_curr);

	pager_printf(ch,
	    "Autoexit: %s   Autoloot: %s   Autosac: %s   Autogold: %s\n\r",
	    (!IS_NPC(ch) && xIS_SET(ch->act, PLR_AUTOEXIT)) ? "yes" : "no",
	    (!IS_NPC(ch) && xIS_SET(ch->act, PLR_AUTOLOOT)) ? "yes" : "no",
	    (!IS_NPC(ch) && xIS_SET(ch->act, PLR_AUTOSAC)) ? "yes" : "no",
	    (!IS_NPC(ch) && xIS_SET(ch->act, PLR_AUTOGOLD)) ? "yes" : "no");

	pager_printf(ch, "Wimpy set to %d hit points.\n\r", ch->wimpy);

	if (!IS_NPC(ch)) {
		if (ch->pcdata->condition[COND_DRUNK] > 10)
			send_to_pager("You are drunk.\n\r", ch);
		if (ch->pcdata->condition[COND_THIRST] == 0)
			send_to_pager("You are thirsty.\n\r", ch);
		if (ch->pcdata->condition[COND_FULL] == 0)
			send_to_pager("You are hungry.\n\r", ch);
	}
	switch (ch->mental_state / 10) {
	default:
		send_to_pager("You're completely messed up!\n\r", ch);
		break;
	case -10:
		send_to_pager("You're barely conscious.\n\r", ch);
		break;
	case -9:
		send_to_pager("You can barely keep your eyes open.\n\r", ch);
		break;
	case -8:
		send_to_pager("You're extremely drowsy.\n\r", ch);
		break;
	case -7:
		send_to_pager("You feel very unmotivated.\n\r", ch);
		break;
	case -6:
		send_to_pager("You feel sedated.\n\r", ch);
		break;
	case -5:
		send_to_pager("You feel sleepy.\n\r", ch);
		break;
	case -4:
		send_to_pager("You feel tired.\n\r", ch);
		break;
	case -3:
		send_to_pager("You could use a rest.\n\r", ch);
		break;
	case -2:
		send_to_pager("You feel a little under the weather.\n\r", ch);
		break;
	case -1:
		send_to_pager("You feel fine.\n\r", ch);
		break;
	case 0:
		send_to_pager("You feel great.\n\r", ch);
		break;
	case 1:
		send_to_pager("You feel energetic.\n\r", ch);
		break;
	case 2:
		send_to_pager("Your mind is racing.\n\r", ch);
		break;
	case 3:
		send_to_pager("You can't think straight.\n\r", ch);
		break;
	case 4:
		send_to_pager("Your mind is going 100 miles an hour.\n\r", ch);
		break;
	case 5:
		send_to_pager("You're high as a kite.\n\r", ch);
		break;
	case 6:
		send_to_pager("Your mind and body are slipping appart.\n\r", ch);
		break;
	case 7:
		send_to_pager("Reality is slipping away.\n\r", ch);
		break;
	case 8:
		send_to_pager("You have no idea what is real, and what is not.\n\r", ch);
		break;
	case 9:
		send_to_pager("You feel immortal.\n\r", ch);
		break;
	case 10:
		send_to_pager("You are a Supreme Entity.\n\r", ch);
		break;
	}

	switch (ch->position) {
	case POS_DEAD:
		send_to_pager("You are DEAD!!\n\r", ch);
		break;
	case POS_MORTAL:
		send_to_pager("You are mortally wounded.\n\r", ch);
		break;
	case POS_INCAP:
		send_to_pager("You are incapacitated.\n\r", ch);
		break;
	case POS_STUNNED:
		send_to_pager("You are stunned.\n\r", ch);
		break;
	case POS_SLEEPING:
		send_to_pager("You are sleeping.\n\r", ch);
		break;
	case POS_RESTING:
		send_to_pager("You are resting.\n\r", ch);
		break;
	case POS_STANDING:
		send_to_pager("You are standing.\n\r", ch);
		break;
	case POS_FIGHTING:
		send_to_pager("You are fighting.\n\r", ch);
		break;
	case POS_MOUNTED:
		send_to_pager("Mounted.\n\r", ch);
		break;
	case POS_SHOVE:
		send_to_pager("Being shoved.\n\r", ch);
		break;
	case POS_DRAG:
		send_to_pager("Being dragged.\n\r", ch);
		break;
	}

	if (ch->level >= 25)
		pager_printf(ch, "AC: %d.  ", GET_AC(ch));

	send_to_pager("You are ", ch);
	if (GET_AC(ch) >= 101)
		send_to_pager("WORSE than naked!\n\r", ch);
	else if (GET_AC(ch) >= 80)
		send_to_pager("naked.\n\r", ch);
	else if (GET_AC(ch) >= 60)
		send_to_pager("wearing clothes.\n\r", ch);
	else if (GET_AC(ch) >= 40)
		send_to_pager("slightly armored.\n\r", ch);
	else if (GET_AC(ch) >= 20)
		send_to_pager("somewhat armored.\n\r", ch);
	else if (GET_AC(ch) >= 0)
		send_to_pager("armored.\n\r", ch);
	else if (GET_AC(ch) >= -20)
		send_to_pager("well armored.\n\r", ch);
	else if (GET_AC(ch) >= -40)
		send_to_pager("strongly armored.\n\r", ch);
	else if (GET_AC(ch) >= -60)
		send_to_pager("heavily armored.\n\r", ch);
	else if (GET_AC(ch) >= -80)
		send_to_pager("superbly armored.\n\r", ch);
	else if (GET_AC(ch) >= -100)
		send_to_pager("divinely armored.\n\r",
		    ch);
	else
		send_to_pager("invincible!\n\r", ch);

	if (ch->level >= 15
	    || IS_PKILL(ch))
		pager_printf(ch, "Hitroll: %d  Damroll: %d.\n\r",
		    GET_HITROLL(ch), GET_DAMROLL(ch));

	if (ch->level >= 10)
		pager_printf(ch, "Alignment: %d.  ", ch->alignment);

	send_to_pager("You are ", ch);
	if (ch->alignment > 900)
		send_to_pager("angelic.\n\r", ch);
	else if (ch->alignment > 700)
		send_to_pager("saintly.\n\r", ch);
	else if (ch->alignment > 350)
		send_to_pager("good.\n\r", ch);
	else if (ch->alignment > 100)
		send_to_pager("kind.\n\r", ch);
	else if (ch->alignment > -100)
		send_to_pager("neutral.\n\r", ch);
	else if (ch->alignment > -350)
		send_to_pager("mean.\n\r", ch);
	else if (ch->alignment > -700)
		send_to_pager("evil.\n\r", ch);
	else if (ch->alignment > -900)
		send_to_pager("demonic.\n\r", ch);
	else
		send_to_pager("satanic.\n\r", ch);

	if (ch->first_affect) {
		send_to_pager("You are affected by:\n\r", ch);
		for (paf = ch->first_affect; paf; paf = paf->next)
			if ((skill = get_skilltype(paf->type)) != NULL) {
				pager_printf(ch, "Spell: '%s'", skill->name);

				if (ch->level >= 20)
					pager_printf(ch,
					    " modifies %s by %d for %d rounds",
					    affect_loc_name(paf->location),
					    paf->modifier,
					    paf->duration);

				send_to_pager(".\n\r", ch);
			}
	}
	if (!IS_NPC(ch) && IS_IMMORTAL(ch)) {
		pager_printf(ch, "\n\rWizInvis level: %d   WizInvis is %s\n\r",
		    ch->pcdata->wizinvis,
		    xIS_SET(ch->act, PLR_WIZINVIS) ? "ON" : "OFF");
		if (ch->pcdata->r_range_lo && ch->pcdata->r_range_hi)
			pager_printf(ch, "Room Range: %d - %d\n\r", ch->pcdata->r_range_lo,
			    ch->pcdata->r_range_hi);
		if (ch->pcdata->o_range_lo && ch->pcdata->o_range_hi)
			pager_printf(ch, "Obj Range : %d - %d\n\r", ch->pcdata->o_range_lo,
			    ch->pcdata->o_range_hi);
		if (ch->pcdata->m_range_lo && ch->pcdata->m_range_hi)
			pager_printf(ch, "Mob Range : %d - %d\n\r", ch->pcdata->m_range_lo,
			    ch->pcdata->m_range_hi);
	}
	return;
}

/*								-Thoric
 * Display your current exp, level, and surrounding level exp requirements
 */
void 
do_level(CHAR_DATA * ch, char *argument)
{
	char buf[MAX_STRING_LENGTH];
	char buf2[MAX_STRING_LENGTH];
	int x, lowlvl, hilvl;

	if (ch->level == 1)
		lowlvl = 1;
	else
		lowlvl = UMAX(2, ch->level - 5);
	hilvl = URANGE(ch->level, ch->level + 5, MAX_LEVEL);
	set_char_color(AT_SCORE, ch);
	ch_printf(ch, "\n\rExperience required, levels %d to %d:\n\r______________________________________________\n\r\n\r", lowlvl, hilvl);
	sprintf(buf, " exp  (Current: %12s)", num_punct(ch->exp));
	sprintf(buf2, " exp  (Needed:  %12s)", num_punct(exp_level(ch, ch->level + 1) - ch->exp));
	for (x = lowlvl; x <= hilvl; x++)
		ch_printf(ch, " (%2d) %12s%s\n\r", x, num_punct(exp_level(ch, x)),
		    (x == ch->level) ? buf : (x == ch->level + 1) ? buf2 : " exp");
	send_to_char("______________________________________________\n\r", ch);
}

/* 1997, Blodkai */
void 
do_remains(CHAR_DATA * ch, char *argument)
{
	char buf[MAX_STRING_LENGTH];
	OBJ_DATA *obj;
	bool found = false;

	if (IS_NPC(ch))
		return;
	set_char_color(AT_MAGIC, ch);
	if (!ch->pcdata->deity) {
		send_to_pager("You have no deity from which to seek such assistance...\n\r", ch);
		return;
	}
	if (ch->pcdata->favor < ch->level * 2) {
		send_to_pager("Your favor is insufficient for such assistance...\n\r", ch);
		return;
	}
	pager_printf(ch, "%s appears in a vision, revealing that your remains... ", ch->pcdata->deity->name);
	sprintf(buf, "the corpse of %s", ch->name);
	for (obj = first_object; obj; obj = obj->next) {
		if (obj->in_room && !str_cmp(buf, obj->short_descr)
		    && (obj->pIndexData->vnum == 11)) {
			found = true;
			pager_printf(ch, "\n\r  - at %s will endure for %d ticks",
			    obj->in_room->name,
			    obj->timer);
		}
	}
	if (!found)
		send_to_pager(" no longer exist.\n\r", ch);
	else {
		send_to_pager("\n\r", ch);
		ch->pcdata->favor -= ch->level * 2;
	}
	return;
}

/* Affects-at-a-glance, Blodkai */
void 
do_affected(CHAR_DATA * ch, char *argument)
{
	char arg[MAX_INPUT_LENGTH];
	AFFECT_DATA *paf;
	SKILLTYPE *skill;

	if (IS_NPC(ch))
		return;

	set_char_color(AT_SCORE, ch);

	argument = one_argument(argument, arg);
	if (!str_cmp(arg, "by")) {
		send_to_char_color("\n\r&BImbued with:\n\r", ch);
		ch_printf_color(ch, "&C%s\n\r",
		    !xIS_EMPTY(ch->affected_by) ? affect_bit_name(&ch->affected_by) : "nothing");
		if (ch->level >= 20) {
			send_to_char("\n\r", ch);
			if (ch->resistant > 0) {
				send_to_char_color("&BResistances:  ", ch);
				ch_printf_color(ch, "&C%s\n\r", flag_string(ch->resistant, ris_flags));
			}
			if (ch->immune > 0) {
				send_to_char_color("&BImmunities:   ", ch);
				ch_printf_color(ch, "&C%s\n\r", flag_string(ch->immune, ris_flags));
			}
			if (ch->susceptible > 0) {
				send_to_char_color("&BSuscepts:     ", ch);
				ch_printf_color(ch, "&C%s\n\r", flag_string(ch->susceptible, ris_flags));
			}
		}
		return;
	}
	if (!ch->first_affect) {
		send_to_char_color("\n\r&CNo cantrip or skill affects you.\n\r", ch);
	} else {
		send_to_char("\n\r", ch);
		for (paf = ch->first_affect; paf; paf = paf->next)
			if ((skill = get_skilltype(paf->type)) != NULL) {
				set_char_color(AT_BLUE, ch);
				send_to_char("Affected:  ", ch);
				set_char_color(AT_SCORE, ch);
				if (ch->level >= 20
				    || IS_PKILL(ch)) {
					if (paf->duration < 25)
						set_char_color(AT_WHITE, ch);
					if (paf->duration < 6)
						set_char_color(AT_WHITE + AT_BLINK, ch);
					ch_printf(ch, "(%5d)   ", paf->duration);
				}
				ch_printf(ch, "%-18s\n\r", skill->name);
			}
	}
	return;
}

void 
do_inventory(CHAR_DATA * ch, char *argument)
{
	sysdata.outBytesFlag = LOGBOUTINFORMATION;
	set_char_color(AT_RED, ch);
	send_to_char("You are carrying:\n\r", ch);
	show_list_to_char(ch->first_carrying, ch, true, true);
	sysdata.outBytesFlag = LOGBOUTNORM;
	return;
}


void 
do_equipment(CHAR_DATA * ch, char *argument)
{
	OBJ_DATA *obj;
	int iWear;
	bool found;

	sysdata.outBytesFlag = LOGBOUTINFORMATION;
	set_char_color(AT_RED, ch);
	send_to_char("\n\rYou are using:\n\r&w", ch);
	found = false;
	/* set_char_color( AT_OBJECT, ch ); */
	for (iWear = 0; iWear < MAX_WEAR; iWear++) {
		for (obj = ch->first_carrying; obj; obj = obj->next_content)
			if (obj->wear_loc == iWear) {
				if ((!IS_NPC(ch)) && (ch->race > 0) && (ch->race < MAX_PC_RACE))
					send_to_char(race_table[ch->race]->where_name[iWear], ch);
				else
					send_to_char(where_name[iWear], ch);

				if (can_see_obj(ch, obj)) {
					send_to_char(format_obj_to_char(obj, ch, true), ch);
					send_to_char("&D\n\r", ch);
				} else
					send_to_char("something.\n\r", ch);
				found = true;
			}
	}

	if (!found)
		send_to_char("Nothing.\n\r", ch);

	sysdata.outBytesFlag = LOGBOUTNORM;

	return;
}



void 
set_title(CHAR_DATA * ch, char *title)
{
	char buf[MAX_STRING_LENGTH];

	if (IS_NPC(ch)) {
		bug("Set_title: NPC.", 0);
		return;
	}
	if (isalpha(title[0]) || isdigit(title[0])) {
		buf[0] = ' ';
		strcpy(buf + 1, title);
	} else
		strcpy(buf, title);

	STRFREE(ch->pcdata->title);
	ch->pcdata->title = STRALLOC(buf);
	return;
}



void 
do_title(CHAR_DATA * ch, char *argument)
{
	if (IS_NPC(ch))
		return;

	set_char_color(AT_SCORE, ch);
	if (IS_SET(ch->pcdata->flags, PCFLAG_NOTITLE)) {
		set_char_color(AT_IMMORT, ch);
		send_to_char("The Gods prohibit you from changing your title.\n\r", ch);
		return;
	}
	if (argument[0] == '\0') {
		send_to_char("Change your title to what?\n\r", ch);
		return;
	}
	if (strlen(argument) > 50)
		argument[50] = '\0';

	if (strstr(argument, "(") || strstr(argument, ")")
	    || strstr(argument, "[") || strstr(argument, "]")
	    || strstr(argument, "<") || strstr(argument, ">")
	    || strstr(argument, "{")) {
		send_to_char("You may not use any of the following symbols in your title: ( ) [ ] { } < >.\n\r", ch);
		return;
	}
	smash_tilde(argument);
	set_title(ch, argument);
	send_to_char("Ok.\n\r", ch);
}

/*
 * Set your personal description				-Thoric
 */
void 
do_description(CHAR_DATA * ch, char *argument)
{
	if (IS_NPC(ch)) {
		send_to_char("Monsters are too dumb to do that!\n\r", ch);
		return;
	}
	if (!ch->desc) {
		bug("do_description: no descriptor", 0);
		return;
	}
	if (xIS_SET((ch)->in_room->room_flags, ROOM_GRAV)) {
		ch_printf(ch, "You can't do that in a grav room.\n\r");
		return;
	}
	switch (ch->substate) {
	default:
		/* bug( "do_description: illegal substate", 0 ); */
		return;

	case SUB_RESTRICTED:
		send_to_char("You cannot use this command from within another command.\n\r", ch);
		return;

	case SUB_NONE:
		ch->substate = SUB_PERSONAL_DESC;
		ch->dest_buf = ch;
		start_editing(ch, ch->description);
		return;

	case SUB_PERSONAL_DESC:
		STRFREE(ch->description);
		ch->description = copy_buffer(ch);
		stop_editing(ch);
		return;
	}
}

void 
do_description1(CHAR_DATA * ch, char *argument)
{
	if (IS_NPC(ch)) {
		send_to_char("Monsters are too dumb to do that!\n\r", ch);
		return;
	}
	if (!ch->desc) {
		bug("do_description1: no descriptor", 0);
		return;
	}
	if (xIS_SET((ch)->in_room->room_flags, ROOM_GRAV)) {
		ch_printf(ch, "You can't do that in a grav room.\n\r");
		return;
	}
	switch (ch->substate) {
	default:
		/* bug( "do_description1: illegal substate", 0 ); */
		return;

	case SUB_RESTRICTED:
		send_to_char("You cannot use this command from within another command.\n\r", ch);
		return;

	case SUB_NONE:
		send_to_char("&RThis sets your description when in your first transformation (if you have one).&w\n\r", ch);
		ch->substate = SUB_PERSONAL_DESC1;
		ch->dest_buf = ch;
		start_editing(ch, ch->pcdata->description1);
		return;

	case SUB_PERSONAL_DESC1:
		STRFREE(ch->pcdata->description1);
		ch->pcdata->description1 = copy_buffer(ch);
		stop_editing(ch);
		return;
	}
}

void 
do_description2(CHAR_DATA * ch, char *argument)
{
	if (IS_NPC(ch)) {
		send_to_char("Monsters are too dumb to do that!\n\r", ch);
		return;
	}
	if (!ch->desc) {
		bug("do_description2: no descriptor", 0);
		return;
	}
	if (xIS_SET((ch)->in_room->room_flags, ROOM_GRAV)) {
		ch_printf(ch, "You can't do that in a grav room.\n\r");
		return;
	}
	switch (ch->substate) {
	default:
		/* bug( "do_description2: illegal substate", 0 ); */
		return;

	case SUB_RESTRICTED:
		send_to_char("You cannot use this command from within another command.\n\r", ch);
		return;

	case SUB_NONE:
		send_to_char("&RThis sets your description when in your second transformation (if you have one).&w\n\r", ch);
		ch->substate = SUB_PERSONAL_DESC2;
		ch->dest_buf = ch;
		start_editing(ch, ch->pcdata->description2);
		return;

	case SUB_PERSONAL_DESC2:
		STRFREE(ch->pcdata->description2);
		ch->pcdata->description2 = copy_buffer(ch);
		stop_editing(ch);
		return;
	}
}

void 
do_description3(CHAR_DATA * ch, char *argument)
{
	if (IS_NPC(ch)) {
		send_to_char("Monsters are too dumb to do that!\n\r", ch);
		return;
	}
	if (!ch->desc) {
		bug("do_description3: no descriptor", 0);
		return;
	}
	if (xIS_SET((ch)->in_room->room_flags, ROOM_GRAV)) {
		ch_printf(ch, "You can't do that in a grav room.\n\r");
		return;
	}
	switch (ch->substate) {
	default:
		/* bug( "do_description3: illegal substate", 0 ); */
		return;

	case SUB_RESTRICTED:
		send_to_char("You cannot use this command from within another command.\n\r", ch);
		return;

	case SUB_NONE:
		send_to_char("&RThis sets your description when in your third transformation (if you have one).&w\n\r", ch);
		ch->substate = SUB_PERSONAL_DESC3;
		ch->dest_buf = ch;
		start_editing(ch, ch->pcdata->description3);
		return;

	case SUB_PERSONAL_DESC3:
		STRFREE(ch->pcdata->description3);
		ch->pcdata->description3 = copy_buffer(ch);
		stop_editing(ch);
		return;
	}
}

void 
do_description4(CHAR_DATA * ch, char *argument)
{
	if (IS_NPC(ch)) {
		send_to_char("Monsters are too dumb to do that!\n\r", ch);
		return;
	}
	if (!ch->desc) {
		bug("do_description4: no descriptor", 0);
		return;
	}
	if (xIS_SET((ch)->in_room->room_flags, ROOM_GRAV)) {
		ch_printf(ch, "You can't do that in a grav room.\n\r");
		return;
	}
	switch (ch->substate) {
	default:
		/* bug( "do_description4: illegal substate", 0 ); */
		return;

	case SUB_RESTRICTED:
		send_to_char("You cannot use this command from within another command.\n\r", ch);
		return;

	case SUB_NONE:
		send_to_char("&RThis sets your description when in your fourth transformation (if you have one).&w\n\r", ch);
		ch->substate = SUB_PERSONAL_DESC4;
		ch->dest_buf = ch;
		start_editing(ch, ch->pcdata->description4);
		return;

	case SUB_PERSONAL_DESC4:
		STRFREE(ch->pcdata->description4);
		ch->pcdata->description4 = copy_buffer(ch);
		stop_editing(ch);
		return;
	}
}

void 
do_description5(CHAR_DATA * ch, char *argument)
{
	if (IS_NPC(ch)) {
		send_to_char("Monsters are too dumb to do that!\n\r", ch);
		return;
	}
	if (!ch->desc) {
		bug("do_description5: no descriptor", 0);
		return;
	}
	if (xIS_SET((ch)->in_room->room_flags, ROOM_GRAV)) {
		ch_printf(ch, "You can't do that in a grav room.\n\r");
		return;
	}
	switch (ch->substate) {
	default:
		/* bug( "do_description5: illegal substate", 0 ); */
		return;

	case SUB_RESTRICTED:
		send_to_char("You cannot use this command from within another command.\n\r", ch);
		return;

	case SUB_NONE:
		send_to_char("&RThis sets your description when in your fifth transformation (if you have one).&w\n\r", ch);
		ch->substate = SUB_PERSONAL_DESC5;
		ch->dest_buf = ch;
		start_editing(ch, ch->pcdata->description5);
		return;

	case SUB_PERSONAL_DESC5:
		STRFREE(ch->pcdata->description5);
		ch->pcdata->description5 = copy_buffer(ch);
		stop_editing(ch);
		return;
	}
}

/* Ripped off do_description for whois bio's -- Scryn*/
void 
do_bio(CHAR_DATA * ch, char *argument)
{
	if (IS_NPC(ch)) {
		send_to_char("Mobs cannot set a bio.\n\r", ch);
		return;
	}
	if (!ch->desc) {
		bug("do_bio: no descriptor", 0);
		return;
	}
	if (xIS_SET((ch)->in_room->room_flags, ROOM_GRAV)) {
		ch_printf(ch, "You can't do that in a grav room.\n\r");
		return;
	}
	switch (ch->substate) {
	default:
		/* bug( "do_bio: illegal substate", 0 ); */
		return;

	case SUB_RESTRICTED:
		send_to_char("You cannot use this command from within another command.\n\r", ch);
		return;

	case SUB_NONE:
		do_help(ch, "bio");
		send_to_char("&RPlease read the above guidelines before writing your bio.&w\n\r", ch);
		if (xIS_SET(ch->act, PLR_CAN_CHAT))
			xREMOVE_BIT(ch->act, PLR_CAN_CHAT);
		ch->substate = SUB_PERSONAL_BIO;
		ch->dest_buf = ch;
		start_editing(ch, ch->pcdata->bio);
		return;

	case SUB_PERSONAL_BIO:
		STRFREE(ch->pcdata->bio);
		ch->pcdata->bio = copy_buffer(ch);
		stop_editing(ch);
		send_to_char("\n\r&wIf you would like your bio to be queued for authorization, please\n\rtype '&WREQBIOAUTH&w'.  Please do not ask for an admin to check your bio.\n\r", ch);
		return;
	}
}



/*
 * New stat and statreport command coded by Morphina
 * Bug fixes by Shaddai
 */

void 
do_statreport(CHAR_DATA * ch, char *argument)
{
	char buf[MAX_INPUT_LENGTH];

	if (IS_NPC(ch)) {
		send_to_char("Huh?\n\r", ch);
		return;
	} {
		ch_printf(ch, "You report: %d/%d hp %d/%d mana %d/%d mv %.0Lf xp.\n\r",
		    ch->hit, ch->max_hit, ch->mana, ch->max_mana,
		    ch->move, ch->max_move, ch->exp);
		sprintf(buf, "$n reports: %d/%d hp %d/%d mana %d/%d mv %.0Lf xp.",
		    ch->hit, ch->max_hit, ch->mana, ch->max_mana,
		    ch->move, ch->max_move, ch->exp);
		act(AT_REPORT, buf, ch, NULL, NULL, TO_ROOM);
	}

	ch_printf(ch, "Your base stats:    %-2d str %-2d wis 0 int %-2d dex %-2d con %-2d cha 0 lck.\n\r",
	    ch->perm_str, ch->perm_int, ch->perm_dex,
	    ch->perm_con, ch->perm_lck);
	sprintf(buf, "$n's base stats:    %-2d str %-2d wis 0 int %-2d dex %-2d con %-2d cha 0 lck.",
	    ch->perm_str, ch->perm_int, ch->perm_dex,
	    ch->perm_con, ch->perm_lck);
	act(AT_REPORT, buf, ch, NULL, NULL, TO_ROOM);

	ch_printf(ch, "Your current stats: %-2d str %-2d wis 0 int %-2d dex %-2d con %-2d cha 0 lck.\n\r",
	    get_curr_str(ch), get_curr_int(ch),
	    get_curr_dex(ch), get_curr_con(ch),
	    get_curr_lck(ch));
	sprintf(buf, "$n's current stats: %-2d str %-2d wis 0 int %-2d dex %-2d con %-2d cha 0 lck.",
	    get_curr_str(ch), get_curr_int(ch),
	    get_curr_dex(ch), get_curr_con(ch),
	    get_curr_lck(ch));
	act(AT_REPORT, buf, ch, NULL, NULL, TO_ROOM);
	return;
}

void 
do_stat(CHAR_DATA * ch, char *argument)
{
	if (IS_NPC(ch)) {
		send_to_char("Huh?\n\r", ch);
		return;
	}
	ch_printf(ch, "You report: %d/%d hp %d/%d mana %d/%d mv %.0Lf xp.\n\r",
	    ch->hit, ch->max_hit, ch->mana, ch->max_mana,
	    ch->move, ch->max_move, ch->exp);

	ch_printf(ch, "Your base stats:    %-2d str %-2d wis 0 int %-2d dex %-2d con %-2d cha 0 lck.\n\r",
	    ch->perm_str, ch->perm_int, ch->perm_dex,
	    ch->perm_con, ch->perm_lck);

	ch_printf(ch, "Your current stats: %-2d str %-2d wis 0 int %-2d dex %-2d con %-2d cha 0 lck.\n\r",
	    get_curr_str(ch), get_curr_int(ch),
	    get_curr_dex(ch), get_curr_con(ch),
	    get_curr_lck(ch));
	return;
}


void 
do_report(CHAR_DATA * ch, char *argument)
{
	char buf[MAX_INPUT_LENGTH];

	if (IS_NPC(ch) && ch->fighting)
		return;

	if (IS_AFFECTED(ch, AFF_POSSESS)) {
		send_to_char("You can't do that in your current state of mind!\n\r", ch);
		return;
	}
	ch_printf(ch,
	    //"You report: %d/%d hp %d/%d mana %d/%d mv %s xp.\n\r",
	    "You report: %d/%d lf %d/%d energy %s PL.\n\r",
	    ch->hit, ch->max_hit,
	    ch->mana, ch->max_mana,
	    //ch->move, ch->max_move,
	    num_punct_ld(ch->exp));

	//sprintf(buf, "$n reports: %d/%d hp %d/%d mana %d/%d mv %s xp.",
	    if (!IS_NPC(ch))
	    sprintf(buf, "$n reports: %d/%d lf %d/%d energy %s PL.",
	    ch->hit, ch->max_hit,
	    ch->mana, ch->max_mana,
	    //ch->move, ch->max_move,
	    num_punct_ld(ch->exp));
	else {
		sprintf(buf, "$n reports: %d/%d lf %d/%d energy %s/",
		    ch->hit, ch->max_hit,
		    ch->mana, ch->max_mana,
		    //ch->move, ch->max_move,
		    num_punct_ld(ch->exp));
		strcat(buf, num_punct_ld(ch->pl));
		strcat(buf, " PL.");
	}

	act(AT_REPORT, buf, ch, NULL, NULL, TO_ROOM);

	return;
}

void 
do_fprompt(CHAR_DATA * ch, char *argument)
{
	char arg[MAX_INPUT_LENGTH];

	set_char_color(AT_GREY, ch);

	if (IS_NPC(ch)) {
		send_to_char("NPC's can't change their prompt..\n\r", ch);
		return;
	}
	smash_tilde(argument);
	one_argument(argument, arg);
	if (!*arg || !str_cmp(arg, "display")) {
		send_to_char("Your current fighting prompt string:\n\r", ch);
		set_char_color(AT_WHITE, ch);
		ch_printf(ch, "%s\n\r", !str_cmp(ch->pcdata->fprompt, "") ? "(default prompt)"
		    : ch->pcdata->fprompt);
		set_char_color(AT_GREY, ch);
		send_to_char("Type 'help prompt' for information on changing your prompt.\n\r", ch);
		return;
	}
	send_to_char("Replacing old prompt of:\n\r", ch);
	set_char_color(AT_WHITE, ch);
	ch_printf(ch, "%s\n\r", !str_cmp(ch->pcdata->fprompt, "") ? "(default prompt)"
	    : ch->pcdata->fprompt);
	if (ch->pcdata->fprompt)
		STRFREE(ch->pcdata->fprompt);
	if (strlen(argument) > 128)
		argument[128] = '\0';

	/*
	 * Can add a list of pre-set prompts here if wanted.. perhaps
	 * 'prompt 1' brings up a different, pre-set prompt
	 */
	if (!str_cmp(arg, "default"))
		ch->pcdata->fprompt = STRALLOC("");
	else
		ch->pcdata->fprompt = STRALLOC(argument);
	return;
}

void 
do_prompt(CHAR_DATA * ch, char *argument)
{
	char arg[MAX_INPUT_LENGTH];

	set_char_color(AT_GREY, ch);

	if (IS_NPC(ch)) {
		send_to_char("NPC's can't change their prompt..\n\r", ch);
		return;
	}
	smash_tilde(argument);
	one_argument(argument, arg);
	if (!*arg || !str_cmp(arg, "display")) {
		send_to_char("Your current prompt string:\n\r", ch);
		set_char_color(AT_WHITE, ch);
		ch_printf(ch, "%s\n\r", !str_cmp(ch->pcdata->prompt, "") ? "(default prompt)"
		    : ch->pcdata->prompt);
		set_char_color(AT_GREY, ch);
		send_to_char("Type 'help prompt' for information on changing your prompt.\n\r", ch);
		return;
	}
	send_to_char("Replacing old prompt of:\n\r", ch);
	set_char_color(AT_WHITE, ch);
	ch_printf(ch, "%s\n\r", !str_cmp(ch->pcdata->prompt, "") ? "(default prompt)"
	    : ch->pcdata->prompt);
	if (ch->pcdata->prompt)
		STRFREE(ch->pcdata->prompt);
	if (strlen(argument) > 128)
		argument[128] = '\0';

	/*
	 * Can add a list of pre-set prompts here if wanted.. perhaps
	 * 'prompt 1' brings up a different, pre-set prompt
	 */
	if (!str_cmp(arg, "default"))
		ch->pcdata->prompt = STRALLOC("");
	else
		ch->pcdata->prompt = STRALLOC(argument);
	return;
}

/*
 * Figured this belonged here seeing it involves players...
 * really simple little function to tax players with a large
 * amount of gold to help reduce the overall gold pool...
 *  --TRI
 */
void 
tax_player(CHAR_DATA * ch)
{
	int tax = (ch->gold * .025);
	struct tm *tms;
	int lastTaxDay = 0;
	bool beenTaxed = false;
	CLAN_DATA *clan;

	if (IS_IMMORTAL(ch))
		return;

	tms = localtime(&current_time);

	if (ch->pcdata && ch->pcdata->lastTaxation <= 0) {
		ch->pcdata->lastTaxation = mktime(tms);
	} else {
		struct tm *ltms;

		ltms = localtime(&ch->pcdata->lastTaxation);
		lastTaxDay = ltms->tm_yday;
	}

	if (lastTaxDay == tms->tm_yday) {
		beenTaxed = true;
	}
	if (!beenTaxed && get_true_rank(ch) > 2 && ch->gold > 10000) {
		set_char_color(AT_WHITE, ch);
		ch_printf(ch, "You pay your daily zeni tax of %s zeni.\n\r",
		    num_punct(tax));
		ch->gold -= tax;
		boost_economy(ch->in_room->area, tax);
		if (ch->pcdata) {
			ch->pcdata->lastTaxation = mktime(tms);
		}
	}
	if (!beenTaxed && ch->pcdata->clan && ch->pcdata->clan->tax > 0) {
		clan = ch->pcdata->clan;
		tax = ch->gold * clan->tax / 100;
		set_char_color(AT_WHITE, ch);
		ch_printf(ch, "Your clan (%s) requires that you pay daily taxes.\n\r", clan->name);
		ch_printf(ch, "%d%% (%s zeni) of your total (%s) zeni will be deposited\n\r",
		    clan->tax, num_punct(tax), num_punct(ch->gold));
		ch_printf(ch, "into your clans bank account bringing it to %s zeni.\n\r", num_punct_ld(clan->bank));
	}
	return;
}

/* Calculate interest for players using MCCP */
void 
mccp_interest(CHAR_DATA * ch)
{
/*
    int zeni = 0;
    int interest = 0;
    float interestPercent = 0.05; // Set the interest gained

    if (!ch->desc->out_compress)
    	return;
    else if (ch->pcdata->interestLastMonth >= time_info.month
    		&& (((time_info.month+1)/4) == 4
    			|| ch->pcdata->interestLastMonth <= time_info.month+4)
    		&& ch->pcdata->interestLastYear > time_info.year)
    	return;
    else
    {
    	zeni = ch->gold;
    	interest = ch->gold * interestPercent;
    	ch->gold += interest;
    	ch_printf( ch, "&W%s's Bank Statement:\n\r", ch->name);
    	ch_printf( ch, "&W-------------------\n\r");
    	ch_printf( ch, "&WOld Balance:         &w%d\n\r", num_punct(zeni));
    	ch_printf( ch, "&WInterest Gained(&C%d%%&W): &w%d\n\r", num_punct(interest));
    	ch_printf( ch, "&W-------------------\n\r");
    	ch_printf( ch, "&WNew Balance:         &w%d\n\r", num_punct(ch->gold));
		// remember to change interest vars before activating :)
   }
*/
	return;
}

/* Delete command for players to remove themselves  - Gareth */
void 
do_delete(CHAR_DATA * ch, char *argument)
{
	char arg[MAX_INPUT_LENGTH];
	char arg2[MAX_INPUT_LENGTH];
	char buf[MAX_STRING_LENGTH];
	char buf2[MAX_STRING_LENGTH];
	OBJ_DATA *o;
	int x, y;
	DESCRIPTOR_DATA *dold;
	int cstate;
	CHAR_DATA *cch;
	char log_buf[MAX_STRING_LENGTH];

	argument = one_argument(argument, arg);
	argument = one_argument(argument, arg2);

	if (arg[0] == '\0') {
		send_to_char("Syntax: delete <password> <yourname>\n\r", ch);
		return;
	}
	if (IS_NPC(ch)) {
		send_to_char("Huh?\n\r", ch);
		return;
	}
	if (ch->kairank > 0) {
		ch_printf(ch, "You cannot delete until an imm removes your kaio rank.\n\r");
		return;
	}
	if (ch->demonrank > 0) {
		ch_printf(ch, "You cannot delete until an imm removes your demon rank.\n\r");
		return;
	}
	if (auction->item != NULL && ((ch == auction->buyer) || (ch == auction->seller))) {
		send_to_char("You cannot delete while participating in an auction.\n\r", ch);
		return;
	}
	for (dold = first_descriptor; dold; dold = dold->next) {
		if (dold != ch->desc
		    && (dold->character || dold->original)
		    && !str_cmp(ch->name, dold->original ? dold->original->pcdata->filename
		    : dold->character->pcdata->filename)) {
			cstate = dold->connected;
			cch = dold->original ? dold->original : dold->character;
			if (!cch->name
			    || (cstate != CON_PLAYING && cstate != CON_EDITING)) {
				send_to_char("You can't do that in your current state.\n\r", ch);
				sprintf(log_buf, "%s trying to abuse 'delete' bug.", cch->pcdata->filename);
				log_string(log_buf);
				return;
			}
		}
	}

	if (strcasecmp(ch->name, arg2)) {
		send_to_char("That's not your name.\n\r", ch);
		return;
	}
	if (str_cmp(sha256_crypt(argument), ch->pcdata->pwd)) {
		WAIT_STATE(ch, 40);
		send_to_char("Wrong password.  Wait 10 seconds.\n\r", ch);
		return;
	}
	add_hiscore("sparwins", ch->name, 0);
	add_hiscore("sparloss", ch->name, 0);
	add_hiscore("mkills", ch->name, 0);
	add_hiscore("deaths", ch->name, 0);
	add_hiscore_ld("powerlevel", ch->name, 0);
	if (is_saiyan(ch))
		add_hiscore_ld("plsaiyan", ch->name, 0);
	if (is_human(ch))
		add_hiscore_ld("plhuman", ch->name, 0);
	if (is_hb(ch))
		add_hiscore_ld("plhalfbreed", ch->name, 0);
	if (is_namek(ch))
		add_hiscore_ld("plnamek", ch->name, 0);
	if (is_android(ch))
		add_hiscore_ld("plandroid", ch->name, 0);
	if (is_icer(ch))
		add_hiscore_ld("plicer", ch->name, 0);
	if (is_bio(ch))
		add_hiscore_ld("plbio-android", ch->name, 0);
	if (is_kaio(ch))
		add_hiscore_ld("plkaio", ch->name, 0);
	if (is_demon(ch))
		add_hiscore_ld("pldemon", ch->name, 0);
	add_hiscore("played", ch->name, 0);
	add_hiscore("zeni", ch->name, 0);
	add_hiscore("bounty", ch->name, 0);

	while ((o = carrying_noquit(ch)) != NULL) {
		obj_from_char(o);
		obj_to_room(o, ch->in_room);
		ch_printf(ch, "&wYou drop %s&w.\n\r", o->short_descr);
	}

	if (ch->desc && ch->desc->host[0] != '\0')
		sprintf(log_buf, "%s deleting self from site %s", ch->name,
		    ch->desc->host);
	else
		sprintf(log_buf, "%s deleting self with no descriptor!", ch->name);

	log_string(log_buf);

	if (ch->pcdata->clan)
		remove_member(ch);

	quitting_char = ch;
	save_char_obj(ch);
	saving_char = NULL;
	extract_char(ch, true, false);
	for (x = 0; x < MAX_WEAR; x++)
		for (y = 0; y < MAX_LAYERS; y++)
			save_equipment[x][y] = NULL;

	sprintf(buf, "%s%c/%s", PLAYER_DIR, tolower(arg2[0]),
	    capitalize(arg2));
	sprintf(buf2, "%s%c/%s", BACKUP_DIR, tolower(arg2[0]),
	    capitalize(arg2));

	rename(buf, buf2);
	sprintf(buf, "%s deleted self, pfile stored in backup directory.", arg2);
	log_string(buf);

}

void 
do_tag(CHAR_DATA * ch, char *argument)
{
	DESCRIPTOR_DATA *d;
	CHAR_DATA *victim = NULL;
	CHAR_DATA *vch;
	char arg[MAX_INPUT_LENGTH];

	one_argument(argument, arg);

	for (d = first_descriptor; d; d = d->next) {
		vch = d->character;

		if (!vch) {
			continue;
		}
		if (xIS_SET(vch->affected_by, AFF_TAG) && vch == ch) {
			break;
		}
		if (xIS_SET(vch->affected_by, AFF_TAG)) {
			pager_printf_color(ch, "Your not it, %s is!\n\r", vch->name);
			return;
		}
	}

	if (arg[0] == '\0') {
		act(AT_SOCIAL, "You shout, 'Enough killing!  Let's play some tag!'", ch, NULL, victim, TO_CHAR);
		act(AT_SOCIAL, "$n says, 'Enough killing!  Let's play some tag!'", ch, NULL, victim, TO_ROOM);
		return;
	}
	if ((victim = get_char_room(ch, arg)) == NULL) {
		send_to_char("They aren't here.\n\r", ch);
		return;
	}
	if (victim == ch) {
		act(AT_SOCIAL, "$n dodges $s left hand, but is led directly into $s right!  Fool!", ch, NULL, victim, TO_ROOM);
		act(AT_SOCIAL, "You dodge your left hand, but are led directly into your right!  Fool!", ch, NULL, victim, TO_CHAR);
		return;
	}
	if (xIS_SET(victim->in_room->room_flags, ROOM_SAFE)) {
		act(AT_SOCIAL, "$n chases $N around but $N puts $S hand on the wall and yells, 'BASE!'", ch, NULL, victim, TO_NOTVICT);
		act(AT_SOCIAL, "You chase $N around but $N puts $S hand on the wall and yells, 'BASE!'", ch, NULL, victim, TO_CHAR);
		act(AT_SOCIAL, "$n chases you around but you put your hand on the wall and yell, 'BASE!'", ch, NULL, victim, TO_VICT);
		return;
	}
	switch (number_range(1, 10)) {
	default:
	case 1:
	case 2:
	case 3:
	case 4:
	case 5:
	case 6:
		act(AT_SOCIAL, "$n slaps $N on the back and screams, 'You're it slowpoke!'", ch, NULL, victim, TO_NOTVICT);
		act(AT_SOCIAL, "You slap $N on the back and scream, 'You're it slowpoke!'", ch, NULL, victim, TO_CHAR);
		act(AT_SOCIAL, "$n slaps you on the back and screams, 'You're it slowpoke!'", ch, NULL, victim, TO_VICT);

		xREMOVE_BIT(ch->affected_by, AFF_TAG);
		xSET_BIT(victim->affected_by, AFF_TAG);
		break;

	case 7:
	case 8:
	case 9:
	case 10:
		act(AT_SOCIAL, "$n chases after $N but $n trips and lands flat on $s face! Ouch!", ch, NULL, victim, TO_NOTVICT);
		act(AT_SOCIAL, "You chase after $N but you trip and land flat on your face! Ouch!", ch, NULL, victim, TO_CHAR);
		act(AT_SOCIAL, "$n chases after you but $e trips and lands flat on $s face! Ouch!", ch, NULL, victim, TO_VICT);
		break;
	}

	return;
}

void 
do_pk(CHAR_DATA * ch, char *argument)
{
	char arg[MAX_INPUT_LENGTH];

	argument = one_argument(argument, arg);

	if (IS_NPC(ch))
		return;

	if (get_timer(ch, TIMER_PKILLED) > 0) {
		ch_printf(ch, "&GYou have been killed within the last 30 minutes.\n\r");
		ch_printf(ch, "&GYou have %d minutes remaining till you can kill and be killed again.\n\r",
		    (get_timer(ch, TIMER_PKILLED) / 23));
	}
	if (IS_HC(ch) && strcmp(arg, "war") && strcmp(arg, "off")) {
		send_to_char("You're HARD CORE you don't even need to bother with that lame flag.", ch);
		return;
	}
	if (ch->exp < 5000) {
		send_to_char("You can't turn on your PK flag until you are out of training.", ch);
		if (xIS_SET(ch->act, PLR_PK1))
			xREMOVE_BIT(ch->act, PLR_PK1);
		if (xIS_SET(ch->act, PLR_PK2))
			xREMOVE_BIT(ch->act, PLR_PK2);
		if (xIS_SET(ch->act, PLR_WAR1))
			xREMOVE_BIT(ch->act, PLR_WAR1);
		if (xIS_SET(ch->act, PLR_WAR2))
			xREMOVE_BIT(ch->act, PLR_WAR2);
		return;
	}
	if (arg[0] == '\0') {
		send_to_char("PK flags currently set: ", ch);
		if (xIS_SET(ch->act, PLR_PK1))
			send_to_pager_color(" &YPK", ch);
		if (xIS_SET(ch->act, PLR_PK2))
			send_to_pager_color(" &RPK", ch);
		if (xIS_SET(ch->act, PLR_WAR1))
			send_to_pager_color(" &YCLAN WAR", ch);
		if (xIS_SET(ch->act, PLR_WAR2))
			send_to_pager_color(" &RCLAN WAR", ch);
		send_to_char(".\n\r", ch);
		if (xIS_SET(ch->act, PLR_PK1) || xIS_SET(ch->act, PLR_PK2) ||
		    xIS_SET(ch->act, PLR_WAR1) || xIS_SET(ch->act, PLR_WAR2))
			pager_printf_color(ch, "You must wait %d more minutes left until PK mode can be turned off.\n\r", ch->pcdata->pk_timer);
		return;
		return;
	}
	if (!strcmp(arg, "flag")) {
		if (!strcmp(argument, "yellow"))
			if (xIS_SET(ch->act, PLR_PK1))
				send_to_pager_color("&wYour &Yyellow &wPK flag is already set.\n\r", ch);
			else if (xIS_SET(ch->act, PLR_PK2)) {
				if (ch->pcdata->pk_timer > 0)
					pager_printf_color(ch, "You must wait %d more minutes before you can set your &Yyellow PK flag.\n\r", ch->pcdata->pk_timer);
				else {
					xREMOVE_BIT(ch->act, PLR_PK2);
					xSET_BIT(ch->act, PLR_PK1);
					ch->pcdata->pk_timer = 60;
					send_to_pager_color("&wYour &Yyellow &wPK flag is now set.\n\r", ch);
				}
			} else {
				xSET_BIT(ch->act, PLR_PK1);
				ch->pcdata->pk_timer = 60;
				send_to_pager_color("&wYour &Yyellow &wPK flag is now set.\n\r", ch);
			}
		else if (!strcmp(argument, "red"))
			if (xIS_SET(ch->act, PLR_PK2))
				send_to_pager_color("&wYour &Rred &wPK flag is already set.\n\r", ch);
			else {
				if (xIS_SET(ch->act, PLR_PK1))
					xREMOVE_BIT(ch->act, PLR_PK1);
				xSET_BIT(ch->act, PLR_PK2);
				ch->pcdata->pk_timer = 60;
				send_to_pager_color("&wYour &Rred &wPK flag is set.\n\r", ch);
			}
		else
			send_to_pager_color("&wWhat PK flag do you want to turn on?\n\r", ch);

		return;
	}
	if (!strcmp(arg, "war")) {
/*send_to_pager_color( "&WThis feature is disabled for now.\n\r", ch );
return;*/
		if (!ch->pcdata->clan) {
			send_to_pager_color("&wYou do not belong to a clan.\n\r", ch);
			return;
		}
		if (!strcmp(argument, "yellow"))
			if (xIS_SET(ch->act, PLR_WAR1))
				send_to_pager_color("&wYour &Yyellow &wWAR flag is already set.\n\r", ch);
			else if (xIS_SET(ch->act, PLR_WAR2)) {
				if (ch->pcdata->pk_timer > 0)
					pager_printf_color(ch, "You must wait %d more minutes before you can set your &Yyellow WAR flag.\n\r", ch->pcdata->pk_timer);
				else {
					xREMOVE_BIT(ch->act, PLR_WAR2);
					xSET_BIT(ch->act, PLR_WAR1);
					if (!xIS_SET(ch->act, PLR_PK1) && !xIS_SET(ch->act, PLR_PK2))
						ch->pcdata->pk_timer = 60;
					send_to_pager_color("&wYour &Yyellow &wWAR flag is now set.\n\r", ch);
				}
			} else {
				xSET_BIT(ch->act, PLR_WAR1);
				send_to_pager_color("&wYour &Yyellow &wWAR flag is now set.\n\r", ch);
			}
		else if (!strcmp(argument, "red"))
			if (xIS_SET(ch->act, PLR_WAR2))
				send_to_pager_color("&wYour &Rred &wWAR flag is already set.\n\r", ch);
			else {
				if (xIS_SET(ch->act, PLR_WAR1))
					xREMOVE_BIT(ch->act, PLR_WAR1);
				xSET_BIT(ch->act, PLR_WAR2);
				ch->pcdata->pk_timer = 60;
				send_to_pager_color("&wYour &Rred &wWAR flag is set.\n\r", ch);
			}
		else
			send_to_pager_color("&wWhat WAR flag do you want to turn on?\n\r", ch);

		return;
	}
	if (!strcmp(arg, "off")) {
		if (ch->pcdata->pk_timer > 0) {
			if (get_timer(ch, TIMER_PKILLED) > 0) {
				ch->pcdata->pk_timer = 0;
			} else {
				pager_printf_color(ch, "You must wait %d more minutes until PK mode can be turned off.\n\r", ch->pcdata->pk_timer);
				return;
				return;
			}
		}
		if (xIS_SET(ch->act, PLR_PK1))
			xREMOVE_BIT(ch->act, PLR_PK1);
		if (xIS_SET(ch->act, PLR_PK2))
			xREMOVE_BIT(ch->act, PLR_PK2);
		if (xIS_SET(ch->act, PLR_WAR1))
			xREMOVE_BIT(ch->act, PLR_WAR1);
		if (xIS_SET(ch->act, PLR_WAR2))
			xREMOVE_BIT(ch->act, PLR_WAR2);

		send_to_pager_color("&wPK mode is now off.\n\r", ch);


		return;
	}
	send_to_char("PK flags currently set: ", ch);
	if (xIS_SET(ch->act, PLR_PK1))
		send_to_pager_color(" &YPK", ch);
	if (xIS_SET(ch->act, PLR_PK2))
		send_to_pager_color(" &RPK", ch);
	if (xIS_SET(ch->act, PLR_WAR1))
		send_to_pager_color(" &YCLAN WAR", ch);
	if (xIS_SET(ch->act, PLR_WAR2))
		send_to_pager_color(" &RCLAN WAR", ch);
	send_to_char(".\n\r", ch);
	if (xIS_SET(ch->act, PLR_PK1) || xIS_SET(ch->act, PLR_PK2))
		pager_printf_color(ch, "You must wait %d more minutes left until PK mode can be turned off.\n\r", ch->pcdata->pk_timer);
	return;
	return;

}


void 
do_setage(CHAR_DATA * ch, char *argument)
{
	char arg[MAX_STRING_LENGTH];
	int value;

	one_argument(argument, arg);

	if (arg[0] == '\0') {
		send_to_pager("&wHow old do you wish to become?\n\r", ch);
		return;
	}
	if (!is_number(arg)) {
		send_to_char("&wTry a number instead...", ch);
		return;
	}
	value = atoi(argument);
	if (value < 4 || value > 150) {
		send_to_char("&wInvalid age.", ch);
		return;
	}
	ch->pcdata->age = value;
	send_to_char("&wOk.", ch);
	return;
}

void 
do_setheight(CHAR_DATA * ch, char *argument)
{
	char arg[MAX_STRING_LENGTH];
	int value;

	one_argument(argument, arg);

	if (arg[0] == '\0') {
		send_to_pager("&wHow tall do you wish to become?\n\r", ch);
		return;
	}
	if (!is_number(arg)) {
		send_to_char("&wTry a number instead...", ch);
		return;
	}
	value = atoi(argument);
	if (value < 36 || value > 96) {
		send_to_char("&wInvalid height.", ch);
		return;
	}
	ch->height = value;
	send_to_char("&wOk.", ch);
	return;
}

void 
do_setweight(CHAR_DATA * ch, char *argument)
{
	char arg[MAX_STRING_LENGTH];
	int value;

	one_argument(argument, arg);

	if (arg[0] == '\0') {
		send_to_pager("&wHow much do you wish to weigh?\n\r", ch);
		return;
	}
	if (!is_number(arg)) {
		send_to_char("&wTry a number instead...", ch);
		return;
	}
	value = atoi(argument);
	if (value < 50 || value > 300) {
		send_to_char("&wInvalid weight.", ch);
		return;
	}
	ch->weight = value;
	send_to_char("&wOk.", ch);
	return;
}

void 
do_reqbio(CHAR_DATA * ch, char *argument)
{

	if (IS_NPC(ch))
		return;

	if (xIS_SET(ch->act, PLR_CAN_CHAT)) {
		send_to_char("Your bio has already been authorized.\n\r", ch);
		return;
	}
	if (xIS_SET(ch->act, PLR_REQBIO)) {
		send_to_char("Your bio has already been queued.\n\r", ch);
		return;
	}
	xSET_BIT(ch->act, PLR_REQBIO);
	send_to_char("You're bio has been queued for authorization.\n\rPlease wait until an administrator can authorize it.\n\r", ch);
	return;
}

sh_int 
get_aura(CHAR_DATA * ch)
{
	if (IS_NPC(ch) && is_split(ch)) {
		if (!ch->master)
			return AT_GREEN;
		if (!ch->master->pcdata)
			return AT_GREEN;

		return ch->master->pcdata->auraColorPowerUp;
	}
	if (IS_NPC(ch))
		return AT_GREEN;
	if (!ch->pcdata)
		return AT_GREEN;
	if (ch->pcdata->auraColorPowerUp > 0)
		return ch->pcdata->auraColorPowerUp;
	else
		return AT_GREEN;
}

void 
do_aura_set(CHAR_DATA * ch, char *argument)
{
	sh_int auraColor;
	char colorWord[20];
	char showBuf[MAX_STRING_LENGTH];
	char arg[MAX_INPUT_LENGTH];

	if (IS_NPC(ch))
		return;

	if (argument[0] == '\0') {
		send_to_char("usage:\n\r", ch);
		send_to_char("  aura show -- shows list of colors and your set color\n\r", ch);
		send_to_char("  aura set <color> -- sets aura to color chosen\n\r", ch);
		send_to_char("  *note: you can only set your aura color once\n\r", ch);
		return;
	}
	argument = one_argument(argument, arg);

	if (!str_prefix(arg, "show")) {
		if (ch->pcdata->auraColorPowerUp > 0)
			auraColor = ch->pcdata->auraColorPowerUp;
		else
			auraColor = AT_BLACK;

		switch (auraColor) {
		case AT_BLACK:
			sprintf(colorWord, "None");
			break;

		case AT_BLOOD:
			sprintf(colorWord, "Dark Red");
			break;

		case AT_DGREEN:
			sprintf(colorWord, "Dark Green");
			break;

		case AT_ORANGE:
			sprintf(colorWord, "Brown");
			break;

		case AT_DBLUE:
			sprintf(colorWord, "Dark Blue");
			break;

		case AT_PURPLE:
			sprintf(colorWord, "Purple");
			break;

		case AT_CYAN:
			sprintf(colorWord, "Cyan");
			break;

		case AT_GREY:
			sprintf(colorWord, "Grey");
			break;

		case AT_DGREY:
			sprintf(colorWord, "Dark Grey");
			break;

		case AT_RED:
			sprintf(colorWord, "Red");
			break;

		case AT_GREEN:
			sprintf(colorWord, "Green");
			break;

		case AT_YELLOW:
			sprintf(colorWord, "Yellow");
			break;

		case AT_BLUE:
			sprintf(colorWord, "Blue");
			break;

		case AT_PINK:
			sprintf(colorWord, "Pink");
			break;

		case AT_LBLUE:
			sprintf(colorWord, "Light Blue");
			break;

		case AT_WHITE:
			sprintf(colorWord, "White");
			break;

		default:
			sprintf(colorWord, "Yellow");
			break;
		}
		sprintf(showBuf, "Valid color choices:\n\r"
		    "&W%-10s   &r%-10s   &g%-10s   &O%-10s\n\r"
		    "&b%-10s   &p%-10s   &c%-10s   &w%-10s\n\r"
		    "&z%-10s   &R%-10s   &G%-10s   &Y%-10s\n\r"
		    "&B%-10s   &P%-10s   &C%-10s&D\n\r"
		    ,"white", "darkred", "darkgreen", "brown"
		    ,"darkblue", "purple", "cyan", "grey", "darkgrey"
		    ,"red", "green", "yellow", "blue", "pink"
		    ,"lightblue");
		send_to_char(showBuf, ch);
		if (ch->pcdata->auraColorPowerUp >= 0) {
			sprintf(showBuf, "Your aura is currently set to: %s\n\r", colorWord);
			act(AT_GREY, showBuf, ch, NULL, NULL, TO_CHAR);
		}
		return;
	}
	if (ch->pcdata->auraColorPowerUp > 0) {
		send_to_char("You've already set your aura.\n\r", ch);
		return;
	}
	if (!str_prefix(arg, "set")) {
		if (argument[0] == '\0') {
			send_to_char("What color do you want?\n\r", ch);
			return;
		}
		if (!str_prefix(argument, "black")) {
			/*
			 * ch->pcdata->auraColorPowerUp = AT_BLACK; sprintf(
			 * colorWord, "%s", "Black" );
			 */
			ch_printf(ch, "You may not set your aura color to black.\n\r");
			return;
		} else if (!str_prefix(argument, "darkred")) {
			ch->pcdata->auraColorPowerUp = AT_BLOOD;
			sprintf(colorWord, "%s", "Dark Red");
		} else if (!str_prefix(argument, "darkgreen")) {
			ch->pcdata->auraColorPowerUp = AT_DGREEN;
			sprintf(colorWord, "%s", "Dark Green");
		} else if (!str_prefix(argument, "brown")) {
			ch->pcdata->auraColorPowerUp = AT_ORANGE;
			sprintf(colorWord, "%s", "Brown");
		} else if (!str_prefix(argument, "darkblue")) {
			ch->pcdata->auraColorPowerUp = AT_DBLUE;
			sprintf(colorWord, "%s", "Dark Blue");
		} else if (!str_prefix(argument, "purple")) {
			ch->pcdata->auraColorPowerUp = AT_PURPLE;
			sprintf(colorWord, "%s", "Purple");
		} else if (!str_prefix(argument, "cyan")) {
			ch->pcdata->auraColorPowerUp = AT_CYAN;
			sprintf(colorWord, "%s", "Cyan");
		} else if (!str_prefix(argument, "grey")) {
			ch->pcdata->auraColorPowerUp = AT_GREY;
			sprintf(colorWord, "%s", "Grey");
		} else if (!str_prefix(argument, "darkgrey")) {
			ch->pcdata->auraColorPowerUp = AT_DGREY;
			sprintf(colorWord, "%s", "Dark Grey");
		} else if (!str_prefix(argument, "red")) {
			ch->pcdata->auraColorPowerUp = AT_RED;
			sprintf(colorWord, "%s", "Red");
		} else if (!str_prefix(argument, "green")) {
			ch->pcdata->auraColorPowerUp = AT_GREEN;
			sprintf(colorWord, "%s", "Green");
		} else if (!str_prefix(argument, "yellow")) {
			ch->pcdata->auraColorPowerUp = AT_YELLOW;
			sprintf(colorWord, "%s", "Yellow");
		} else if (!str_prefix(argument, "blue")) {
			ch->pcdata->auraColorPowerUp = AT_BLUE;
			sprintf(colorWord, "%s", "Blue");
		} else if (!str_prefix(argument, "pink")) {
			ch->pcdata->auraColorPowerUp = AT_PINK;
			sprintf(colorWord, "%s", "Pink");
		} else if (!str_prefix(argument, "lightblue")) {
			ch->pcdata->auraColorPowerUp = AT_LBLUE;
			sprintf(colorWord, "%s", "Light Blue");
		} else if (!str_prefix(argument, "white")) {
			ch->pcdata->auraColorPowerUp = AT_WHITE;
			sprintf(colorWord, "%s", "White");
		} else {
			send_to_char("Invalid color.\n\r", ch);
			return;
		}

		sprintf(showBuf, "Powerup aura set to: %s\n\r", colorWord);
		act(ch->pcdata->auraColorPowerUp, showBuf, ch, NULL, NULL, TO_CHAR);
		return;
	}
	send_to_char("Invalid choice.\n\r", ch);
	return;
}

/* Checks room to see if an Undertaker mob is present */
CHAR_DATA *
find_undertaker(CHAR_DATA * ch)
{
	CHAR_DATA *undertaker = NULL;

	for (undertaker = ch->in_room->first_person; undertaker; undertaker = undertaker->next_in_room)
		if (IS_NPC(undertaker) && xIS_SET(undertaker->act, ACT_UNDERTAKER))
			break;

	return undertaker;
}

void 
do_corpse(CHAR_DATA * ch, char *argument)
{
	char buf[MAX_STRING_LENGTH];
	char arg[MAX_INPUT_LENGTH];
	OBJ_DATA *obj, *outer_obj;
	CHAR_DATA *mob;
	bool found = false;
	int cost = 0;

	/*
	 * Avoids the potential for filling the room with hundreds of mob
	 * corpses
	 */
	if (IS_NPC(ch)) {
		send_to_char("Mobs cannot retreive corpses.\n\r", ch);
		return;
	}
	/* Search for an act_undertaker */
	if (!(mob = find_undertaker(ch))) {
		send_to_char("There's no undertaker here!\n\r", ch);
		return;
	}
	argument = one_argument(argument, arg);

	if (arg[0] == '\0') {
		act(AT_PLAIN, "$N says 'Ooo Yesss ... I can helpss you.'", ch, NULL, mob, TO_CHAR);
		send_to_char("  retrieve: Retrieves your corpse   100z / rank\n\r", ch);
		send_to_char(" Type corpse <type> for the service.\n\r", ch);
		return;
	}
	if (!str_cmp(arg, "retrieve"))
		cost = 100 * ch->level;
	else {
		act(AT_PLAIN, "$N says ' Type 'corpse' for help on what I do.'",
		    ch, NULL, mob, TO_CHAR);
		return;
	}

	if (cost > ch->gold) {
		act(AT_PLAIN, "$N says 'Pah! You do not have enough gold for my services!'", ch, NULL, mob, TO_CHAR);
		return;
	}
	strcpy(buf, "the corpse of ");
	strcat(buf, ch->name);		/* Bug fix here by Samson 12-21-00 See
					 * below */
	for (obj = first_object; obj; obj = obj->next) {
		if (!nifty_is_name(buf, obj->short_descr))	/* Fix here - Samson
								 * 1-26-01 */
			continue;

		/*
		 * This will prevent NPC corpses from being retreived if the
		 * person has a mob's name
		 */
		if (obj->item_type == ITEM_CORPSE_NPC)
			continue;

		found = true;

		/*
		 * Could be carried by act_scavengers, or other idiots so
		 * ...
		 */
		outer_obj = obj;
		while (outer_obj->in_obj)
			outer_obj = outer_obj->in_obj;

		separate_obj(outer_obj);
		obj_from_room(outer_obj);
		obj_to_room(outer_obj, ch->in_room);

		ch->gold -= cost;
		act(AT_PLAIN, "$N creepily carts in your corpse.", ch, NULL, mob, TO_CHAR);
		act(AT_PLAIN, "$n creepily carts in the $T.", mob, NULL, buf, TO_ROOM);
	}

	/* Could've been extracted, so do this */
	if (!found)
		act(AT_PLAIN, "$N says 'Sorry I can't find your corpse. There's nothing more I can do.'", ch, NULL, mob, TO_CHAR);

	return;
}

void 
do_sparcheck(CHAR_DATA * ch, char *argument)
{
	ch_printf(ch, "Spars done in the past 24 hours: %d.\n\r", ch->pcdata->sparcount);
	if (ch->pcdata->nextspartime > 0)
		ch_printf(ch, "Next reset: %24.24s.\n\r", ctime(&ch->pcdata->nextspartime));
}

bool 
is_saiyan(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "saiyan")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "saiyan-s")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "saiyan-n")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "saiyan-h")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "saiyan-hb")) {
		return true;
	}
	return false;
}
bool 
is_hb(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "halfbreed")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "halfbreed-hb")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "halfbreed-s")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "halfbreed-n")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "halfbreed-h")) {
		return true;
	}
	return false;
}

bool 
is_namek(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "namek")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "namek-n")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "namek-s")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "namek-hb")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "namek-h")) {
		return true;
	}
	return false;
}

bool 
is_genie(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "genie")) {
		return true;
	}
	return false;
}

bool 
is_wizard(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "wizard")) {
		return true;
	}
	return false;
}

bool 
is_human(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "human")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "human-h")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "human-s")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "human-n")) {
		return true;
	}
	if (!str_cmp(get_race(ch), "human-hb")) {
		return true;
	}
	return false;
}
bool 
is_icer(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "icer")) {
		return true;
	}
	return false;
}
bool 
is_android(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "android")) {
		return true;
	} else if (!str_cmp(get_race(ch), "super-android")) {
		return true;
	} else if (!str_cmp(get_race(ch), "android-h")) {
		return true;
	} else if (!str_cmp(get_race(ch), "android-e")) {
		return true;
	} else if (!str_cmp(get_race(ch), "android-fm")) {
		return true;
	}
	return false;
}
bool 
is_android_h(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "android-h")) {
		return true;
	} else if (!str_cmp(get_race(ch), "super-android")) {
		return true;
	}
	return false;
}
bool 
is_android_e(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "android-e")) {
		return true;
	} else if (!str_cmp(get_race(ch), "super-android")) {
		return true;
	}
	return false;
}
bool 
is_android_fm(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "android-fm")) {
		return true;
	} else if (!str_cmp(get_race(ch), "super-android")) {
		return true;
	}
	return false;
}
bool 
is_superandroid(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "super-android")) {
		return true;
	}
	return false;
}
bool 
is_bio(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "bio-android")) {
		return true;
	}
	return false;
}
bool 
is_kaio(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "kaio")) {
		return true;
	}
	return false;
}

bool 
is_demon(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "demon")) {
		return true;
	}
	return false;
}

bool 
is_transformed(CHAR_DATA * ch)
{
	if (xIS_SET((ch)->affected_by, AFF_KAIOKEN))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_SSJ))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_SSJ2))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_SSJ3))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_SSJ4))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_SGOD))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_USSJ))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_USSJ2))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_ICER2))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_ICER3))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_ICER4))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_ICER5))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_GOLDENFORM))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_SNAMEK))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_OOZARU))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_GOLDEN_OOZARU))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_HEART))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_HYPER))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_EXTREME))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_ELECTRICSHIELD))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_SEMIPERFECT))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_PERFECT))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_ULTRAPERFECT))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_GROWTH))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_GIANT))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_SPLIT_FORM))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_TRI_FORM))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_MULTI_FORM))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_MYSTIC))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_SUPERANDROID))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_MAKEOSTAR))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_EVILBOOST))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_EVILSURGE))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_EVILOVERLOAD))
		return true;
	if (xIS_SET((ch)->affected_by, AFF_BIOJR))
		return true;
	return false;
}

bool 
is_split(CHAR_DATA * ch)
{
	if (xIS_SET(ch->affected_by, AFF_SPLIT_FORM) && IS_NPC(ch)) {
		return true;
	}
	if (xIS_SET(ch->affected_by, AFF_TRI_FORM) && IS_NPC(ch)) {
		return true;
	}
	if (xIS_SET(ch->affected_by, AFF_MULTI_FORM) && IS_NPC(ch)) {
		return true;
	}
	if (xIS_SET(ch->affected_by, AFF_BIOJR) && IS_NPC(ch)) {
		return true;
	}
	return false;
}
bool 
is_saiyan_s(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "saiyan-s")) {
		return true;
	}
	return false;
}
bool 
is_saiyan_n(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "saiyan-n")) {
		return true;
	}
	return false;
}
bool 
is_saiyan_h(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "saiyan-h")) {
		return true;
	}
	return false;
}
bool 
is_saiyan_hb(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "saiyan-hb")) {
		return true;
	}
	return false;
}
bool 
is_human_h(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "human-h")) {
		return true;
	}
	return false;
}
bool 
is_human_n(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "human-n")) {
		return true;
	}
	return false;
}
bool 
is_human_hb(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "human-hb")) {
		return true;
	}
	return false;
}
bool 
is_human_s(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "human-s")) {
		return true;
	}
	return false;
}
bool 
is_namek_n(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "namek-n")) {
		return true;
	}
	return false;
}
bool 
is_namek_h(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "namek-h")) {
		return true;
	}
	return false;
}
bool 
is_namek_s(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "namek-s")) {
		return true;
	}
	return false;
}
bool 
is_namek_hb(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "namek-hb")) {
		return true;
	}
	return false;
}
bool 
is_hb_hb(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "halfbreed-hb")) {
		return true;
	}
	return false;
}
bool 
is_hb_h(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "halfbreed-h")) {
		return true;
	}
	return false;
}
bool 
is_hb_n(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "halfbreed-n")) {
		return true;
	}
	return false;
}
bool 
is_hb_s(CHAR_DATA * ch)
{
	if (!str_cmp(get_race(ch), "halfbreed-s")) {
		return true;
	}
	return false;
}
bool 
kairanked(CHAR_DATA * ch)
{
	if (is_kaio(ch) && ch->kairank > 0) {
		return true;
	}
	return false;
}
bool 
demonranked(CHAR_DATA * ch)
{
	if (is_demon(ch) && ch->demonrank > 0) {
		return true;
	}
	return false;
}
void 
wss_scimitar(CHAR_DATA * ch, CHAR_DATA * victim, char *msg, int dam)
{
	if (!str_cmp(msg, "normal")) {

		act(AT_RED, "You begin charging a large amount of energy down through your arms and into your scimitars. They start glowing bright red as they soak up a high degree of evil power. You draw your arms back, then snap them forward, crossing your arms as you let go; sending the scimitars spinning through the air like sawblades at $N.", ch, NULL, victim, TO_CHAR);
		act(AT_RED, "The glowing scimitars slam into $N....and shatter! As the broken halves of the two blades fly away from $N, the energy they left behind erupts, enveloping $N in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s scimitars. They start glowing bright red as they soak up a high degree of evil power. $n draws $s arms back, then snaps them forward, crossing $s arms as $e lets go; sending the scimitars spinning through the air like sawblades at you.", ch, NULL, victim, TO_VICT);
		act(AT_RED, "The glowing scimitars slam into you....and shatter! As the broken halves of the two blades fly away from you, the energy they left behind erupts, enveloping you in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s scimitars. They start glowing bright red as they soak up a high degree of evil power. $n draws $s arms back, then snaps them forward, crossing $s arms as $e lets go; sending the scimitars spinning through the air like sawblades at $N.", ch, NULL, victim, TO_NOTVICT);
		act(AT_RED, "The glowing scimitars slam into $N....and shatter! As the broken halves of the two blades fly away from $N, the energy they left behind erupts, enveloping $N in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_NOTVICT);
	}
	if (!str_cmp(msg, "ikwork")) {
		act(AT_RED, "You begin charging a large amount of energy down through your arms and into your scimitars. They start glowing bright red as they soak up a high degree of evil power. You draw your arms back, then snap them forward, crossing your arms as you let go; sending the scimitars spinning through the air like sawblades at $N.", ch, NULL, victim, TO_CHAR);
		act(AT_DGREY, "The glowing scimitars slice right through $N's body, instantly killing $M in a spray of blood, guts and dismembered limbs. &W[$t]", ch, num_punct(dam), victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s scimitars. They start glowing bright red as they soak up a high degree of evil power. $n draws $s arms back, then snaps them forward, crossing $s arms as $e lets go; sending the scimitars spinning through the air like sawblades at you.", ch, NULL, victim, TO_VICT);
		act(AT_DGREY, "The glowing scimitars slice right through your body, instantly killing you in a spray of blood, guts and dismembered limbs. &W[$t]", ch, num_punct(dam), victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s scimitars. They start glowing bright red as they soak up a high degree of evil power. $n draws $s arms back, then snaps them forward, crossing $s arms as $e lets go; sending the scimitars spinning through the air like sawblades at $N.", ch, NULL, victim, TO_NOTVICT);
		act(AT_DGREY, "The glowing scimitars slice right through $N's body, instantly killing $M in a spray of blood, guts and dismembered limbs. &W[$t]", ch, num_punct(dam), victim, TO_NOTVICT);
	}
	if (!str_cmp(msg, "ikfail")) {
		act(AT_RED, "You begin charging a large amount of energy down through your arms and into your scimitars. They start glowing bright red as they soak up a high degree of evil power. You draw your arms back, then snap them forward, crossing your arms as you let go; sending the scimitars spinning through the air like sawblades at $N.", ch, NULL, victim, TO_CHAR);
		act(AT_CYAN, "The glowing scimitars slice right through $N's body.....but it was just an after-image.", ch, NULL, victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s scimitars. They start glowing bright red as they soak up a high degree of evil power. $n draws $s arms back, then snaps them forward, crossing $s arms as $e lets go; sending the scimitars spinning through the air like sawblades at you.", ch, NULL, victim, TO_VICT);
		act(AT_CYAN, "At the last second you create an after-image and dodge far to the side, avoiding death.", ch, NULL, victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s scimitars. They start glowing bright red as they soak up a high degree of evil power. $n draws $s arms back, then snaps them forward, crossing $s arms as $e lets go; sending the scimitars spinning through the air like sawblades at $N.", ch, NULL, victim, TO_NOTVICT);
		act(AT_CYAN, "The glowing scimitars slice right through $N's body.....but it was just an after-image.", ch, NULL, victim, TO_NOTVICT);
	}
}
void 
wss_sword(CHAR_DATA * ch, CHAR_DATA * victim, char *msg, int dam)
{
	if (!str_cmp(msg, "normal")) {
		act(AT_RED, "You begin charging a large amount of energy down through your arm and into your sword. It starts glowing bright red as it soaks up a high degree of evil power. You draw your arm back, then snap it forward and let go; sending the sword shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_CHAR);
		act(AT_RED, "The glowing sword slams into $N....and shatters! As the broken halves of the blade fly away from $N, the energy they left behind erupts, enveloping $N in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s sword. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the sword shooting straight through the air like a bullet at you.", ch, NULL, victim, TO_VICT);
		act(AT_RED, "The glowing sword slams into you....and shatters! As the broken halves of the blade fly away from you, the energy they left behind erupts, enveloping you in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s sword. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the sword shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_NOTVICT);
		act(AT_RED, "The glowing sword slams into $N....and shatters! As the broken halves of the blade fly away from $N, the energy they left behind erupts, enveloping $N in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_NOTVICT);
	}
	if (!str_cmp(msg, "ikwork")) {
		act(AT_RED, "You begin charging a large amount of energy down through your arm and into your sword. It starts glowing bright red as it soaks up a high degree of evil power. You draw your arm back, then snap it forward and let go; sending the sword shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_CHAR);
		act(AT_DGREY, "The glowing sword impales $N right in the chest, killing $M instantly. &W[$t]", ch, num_punct(dam), victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s sword. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the sword shooting straight through the air like a bullet at you.", ch, NULL, victim, TO_VICT);
		act(AT_DGREY, "The glowing sword impales you right in the chest, killing you instantly. &W[$t]", ch, num_punct(dam), victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s sword. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the sword shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_NOTVICT);
		act(AT_DGREY, "The glowing sword impales $N right in the chest, killing $M instantly. &W[$t]", ch, num_punct(dam), victim, TO_NOTVICT);
	}
	if (!str_cmp(msg, "ikfail")) {
		act(AT_RED, "You begin charging a large amount of energy down through your arm and into your sword. It starts glowing bright red as it soaks up a high degree of evil power. You draw your arm back, then snap it forward and let go; sending the sword shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_CHAR);
		act(AT_CYAN, "$N dodges the glowing sword at the last second, the blade flying off into the distance before it explodes.", ch, NULL, victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s sword. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the sword shooting straight through the air like a bullet at you.", ch, NULL, victim, TO_VICT);
		act(AT_CYAN, "You dodge the glowing sword at the last second, the blade flying off into the distance before it explodes.", ch, NULL, victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s sword. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the sword shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_NOTVICT);
		act(AT_CYAN, "$N dodges the glowing sword at the last second, the blade flying off into the distance before it explodes.", ch, NULL, victim, TO_NOTVICT);
	}
}
void 
wss_lance(CHAR_DATA * ch, CHAR_DATA * victim, char *msg, int dam)
{
	if (!str_cmp(msg, "normal")) {
		act(AT_RED, "You begin charging a large amount of energy down through your arm and into your lance. It starts glowing bright red as it soaks up a high degree of evil power. You draw your arm back, then snap it forward and let go; sending the lance shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_CHAR);
		act(AT_RED, "The glowing lance slams into $N....and shatters! As the broken halves of the polearm fly away from $N, the energy they left behind erupts, enveloping $N in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s lance. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the lance shooting straight through the air like a bullet at you.", ch, NULL, victim, TO_VICT);
		act(AT_RED, "The glowing lance slams into you....and shatters! As the broken halves of the polearm fly away from you, the energy they left behind erupts, enveloping you in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s lance. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the lance shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_NOTVICT);
		act(AT_RED, "The glowing lance slams into $N....and shatters! As the broken halves of the polearm fly away from $N, the energy they left behind erupts, enveloping $N in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_NOTVICT);
	}
	if (!str_cmp(msg, "ikwork")) {
		act(AT_RED, "You begin charging a large amount of energy down through your arm and into your lance. It starts glowing bright red as it soaks up a high degree of evil power. You draw your arm back, then snap it forward and let go; sending the lance shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_CHAR);
		act(AT_DGREY, "The glowing lance impales $N right in the chest, killing $M instantly. &W[$t]", ch, num_punct(dam), victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s lance. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the lance shooting straight through the air like a bullet at you.", ch, NULL, victim, TO_VICT);
		act(AT_DGREY, "The glowing lance impales you right in the chest, killing you instantly. &W[$t]", ch, num_punct(dam), victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s lance. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the lance shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_NOTVICT);
		act(AT_DGREY, "The glowing lance impales $N right in the chest, killing $M instantly. &W[$t]", ch, num_punct(dam), victim, TO_NOTVICT);
	}
	if (!str_cmp(msg, "ikfail")) {
		act(AT_RED, "You begin charging a large amount of energy down through your arm and into your lance. It starts glowing bright red as it soaks up a high degree of evil power. You draw your arm back, then snap it forward and let go; sending the lance shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_CHAR);
		act(AT_CYAN, "$N dodges the glowing lance at the last second, the polearm flying off into the distance before it explodes.", ch, NULL, victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s lance. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the lance shooting straight through the air like a bullet at you.", ch, NULL, victim, TO_VICT);
		act(AT_CYAN, "You dodge the glowing lance at the last second, the polearm flying off into the distance before it explodes.", ch, NULL, victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arm and into $s lance. It starts glowing bright red as it soaks up a high degree of evil power. $n draws $s arm back, then snaps it forward and lets go; sending the lance shooting straight through the air like a bullet at $N.", ch, NULL, victim, TO_NOTVICT);
		act(AT_CYAN, "$N dodges the glowing lance at the last second, the polearm flying off into the distance before it explodes.", ch, NULL, victim, TO_NOTVICT);
	}
}
void 
wss_maul(CHAR_DATA * ch, CHAR_DATA * victim, char *msg, int dam)
{
	if (!str_cmp(msg, "normal")) {
		act(AT_RED, "You begin charging a large amount of energy down through your arms and into your maul. It starts glowing bright red as it soaks up a high degree of evil power. You grip the base of the maul in both hands and begin spinning around. Once you are spinning so fast that you become a blur, you let go of the maul; sending it shooting towards $N like a bullet.", ch, NULL, victim, TO_CHAR);
		act(AT_RED, "The glowing maul slams into $N....and shatters! As the broken halves of the maul fly away from $N, the energy they left behind erupts, enveloping $N in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s maul. It starts glowing bright red as it soaks up a high degree of evil power. $n grips the base of the maul in both hands and begins spinning around. Once $e is spinning so fast that $e becomes a blur, $e lets go of the maul; sending it shooting towards you like a bullet.", ch, NULL, victim, TO_VICT);
		act(AT_RED, "The glowing maul slams into you....and shatters! As the broken halves of the maul fly away from you, the energy they left behind erupts, enveloping you in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s maul. It starts glowing bright red as it soaks up a high degree of evil power. $n grips the base of the maul in both hands and begins spinning around. Once $e is spinning so fast that $e becomes a blur, $e lets go of the maul; sending it shooting towards $N like a bullet.", ch, NULL, victim, TO_NOTVICT);
		act(AT_RED, "The glowing maul slams into $N....and shatters! As the broken halves of the maul fly away from $N, the energy they left behind erupts, enveloping $N in a gigantic explosion. &W[$t]", ch, num_punct(dam), victim, TO_NOTVICT);
	}
	if (!str_cmp(msg, "ikwork")) {
		act(AT_RED, "You begin charging a large amount of energy down through your arms and into your maul. It starts glowing bright red as it soaks up a high degree of evil power. You grip the base of the maul in both hands and begin spinning around. Once you are spinning so fast that you become a blur, you let go of the maul; sending it shooting towards $N like a bullet.", ch, NULL, victim, TO_CHAR);
		act(AT_DGREY, "You vanish just as the maul comes within close range of $N, reappearing near it. You grab it right out of the air, and spinning with the momentum, in a single motion, you swing the maul around and slam its head right into the back of $N's head; causing $S head to explode in a spray of bone and flesh, killing $M instantly. &W[$t]", ch, num_punct(dam), victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s maul. It starts glowing bright red as it soaks up a high degree of evil power. $n grips the base of the maul in both hands and begins spinning around. Once $e is spinning so fast that $e becomes a blur, $e lets go of the maul; sending it shooting towards you like a bullet.", ch, NULL, victim, TO_VICT);
		act(AT_DGREY, "$n vanishes just as the maul comes within close range of you, reappearing near it. $*e grabs it right out of the air, and spinning with the momentum, in a single motion, $n swings the maul around and slam its head right into the back of your head; causing your head to explode in a spray of bone and flesh, killing you instantly. &W[$t]", ch, num_punct(dam), victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s maul. It starts glowing bright red as it soaks up a high degree of evil power. $n grips the base of the maul in both hands and begins spinning around. Once $e is spinning so fast that $e becomes a blur, $e lets go of the maul; sending it shooting towards $N like a bullet.", ch, NULL, victim, TO_NOTVICT);
		act(AT_DGREY, "$n vanishes just as the maul comes within close range of $N, reappearing near it. $*e grabs it right out of the air, and spinning with the momentum, in a single motion, $n swings the maul around and slam its head right into the back of $N's head; causing $S head to explode in a spray of bone and flesh, killing $N instantly. &W[$t]", ch, num_punct(dam), victim, TO_NOTVICT);
	}
	if (!str_cmp(msg, "ikfail")) {
		act(AT_RED, "You begin charging a large amount of energy down through your arms and into your maul. It starts glowing bright red as it soaks up a high degree of evil power. You grip the base of the maul in both hands and begin spinning around. Once you are spinning so fast that you become a blur, you let go of the maul; sending it shooting towards $N like a bullet.", ch, NULL, victim, TO_CHAR);
		act(AT_CYAN, "$N dodges the glowing maul at the last second, the maul flying off into the distance before it explodes.", ch, NULL, victim, TO_CHAR);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s maul. It starts glowing bright red as it soaks up a high degree of evil power. $n grips the base of the maul in both hands and begins spinning around. Once $e is spinning so fast that $e becomes a blur, $e lets go of the maul; sending it shooting towards you like a bullet.", ch, NULL, victim, TO_VICT);
		act(AT_CYAN, "You dodge the glowing maul at the last second, the maul flying off into the distance before it explodes.", ch, NULL, victim, TO_VICT);
		act(AT_RED, "$n begins charging a large amount of energy down through $s arms and into $s maul. It starts glowing bright red as it soaks up a high degree of evil power. $n grips the base of the maul in both hands and begins spinning around. Once $e is spinning so fast that $e becomes a blur, $e lets go of the maul; sending it shooting towards $N like a bullet.", ch, NULL, victim, TO_NOTVICT);
		act(AT_CYAN, "$N dodges the glowing maul at the last second, the maul flying off into the distance before it explodes.", ch, NULL, victim, TO_NOTVICT);
	}
}