570 lines
11 KiB
Plaintext
570 lines
11 KiB
Plaintext
//Note The if statements are to ensure they don't pick
|
|
//an invisible appearance.
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oPlayer = oPC;
|
|
int nAppearanceType = GetAppearanceType(oPC) + 1;
|
|
|
|
//DMs can choose any appearance!
|
|
if(GetIsDM(oPC) && !GetIsPC(oPC))
|
|
{
|
|
SetCreatureAppearanceType(oPC, nAppearanceType);
|
|
}
|
|
|
|
SendMessageToPC(oPC, "The previous Index Number = " + IntToString(GetAppearanceType(oPC)));
|
|
SendMessageToPC(oPC, "The current Index Number = " + IntToString(nAppearanceType));
|
|
|
|
|
|
if (nAppearanceType == 24)
|
|
{
|
|
nAppearanceType = 25;
|
|
}
|
|
|
|
else if (nAppearanceType == 38)
|
|
{
|
|
nAppearanceType = 39;
|
|
}
|
|
|
|
else if (nAppearanceType == 41)
|
|
{
|
|
nAppearanceType = 51;
|
|
}
|
|
else if (nAppearanceType == 64)
|
|
{
|
|
nAppearanceType = 65;
|
|
}
|
|
|
|
else if (nAppearanceType == 72)
|
|
{
|
|
nAppearanceType = 73;
|
|
}
|
|
|
|
else if (nAppearanceType == 78)
|
|
{
|
|
nAppearanceType = 83;
|
|
}
|
|
else if (nAppearanceType == 118)
|
|
{
|
|
nAppearanceType = 119;
|
|
}
|
|
else if (nAppearanceType == 168)
|
|
{
|
|
nAppearanceType = 169;
|
|
}
|
|
else if (nAppearanceType == 205)
|
|
{
|
|
nAppearanceType = 206;
|
|
}
|
|
else if (nAppearanceType == 298)
|
|
{
|
|
nAppearanceType = 300;
|
|
}
|
|
else if (nAppearanceType == 307)
|
|
{
|
|
nAppearanceType = 352;
|
|
}
|
|
else if (nAppearanceType == 364)
|
|
{
|
|
nAppearanceType = 365;
|
|
}
|
|
else if (nAppearanceType == 366)
|
|
{
|
|
nAppearanceType = 367;
|
|
}
|
|
else if (nAppearanceType == 371)
|
|
{
|
|
nAppearanceType = 374;
|
|
}
|
|
else if (nAppearanceType == 392)
|
|
{
|
|
nAppearanceType = 396;
|
|
}
|
|
else if (nAppearanceType == 404)
|
|
{
|
|
nAppearanceType = 406;
|
|
}
|
|
else if (nAppearanceType == 418)
|
|
{
|
|
nAppearanceType = 423;
|
|
}
|
|
else if (nAppearanceType == 425)
|
|
{
|
|
nAppearanceType = 426;
|
|
}
|
|
else if (nAppearanceType == 455)
|
|
{
|
|
nAppearanceType = 459;
|
|
}
|
|
else if (nAppearanceType == 446)
|
|
{
|
|
nAppearanceType = 447;
|
|
}
|
|
else if (nAppearanceType == 461)
|
|
{
|
|
nAppearanceType = 462;
|
|
}
|
|
else if (nAppearanceType == 463)
|
|
{
|
|
nAppearanceType = 464;
|
|
}
|
|
else if (nAppearanceType == 468)
|
|
{
|
|
nAppearanceType = 474;
|
|
}
|
|
else if (nAppearanceType == 481)
|
|
{
|
|
nAppearanceType = 1000; //CEP2.2
|
|
}
|
|
|
|
//Bad Appearances...
|
|
else if (nAppearanceType == 1016)
|
|
{
|
|
nAppearanceType = 1017;
|
|
}
|
|
else if (nAppearanceType == 1023)
|
|
{
|
|
nAppearanceType = 1024;
|
|
}
|
|
else if (nAppearanceType == 1030)
|
|
{
|
|
nAppearanceType = 1032;
|
|
}
|
|
else if (nAppearanceType == 1031)
|
|
{
|
|
nAppearanceType = 1032;
|
|
}
|
|
|
|
else if (nAppearanceType == 1053)
|
|
{
|
|
nAppearanceType = 1055;
|
|
}
|
|
else if (nAppearanceType == 1057)
|
|
{
|
|
nAppearanceType = 1059;
|
|
}
|
|
else if (nAppearanceType == 1074)
|
|
{
|
|
nAppearanceType = 1077;
|
|
}
|
|
else if (nAppearanceType == 1087)
|
|
{
|
|
nAppearanceType = 1090;
|
|
}
|
|
else if (nAppearanceType == 1097)
|
|
{
|
|
nAppearanceType = 1098;
|
|
}
|
|
else if (nAppearanceType == 1101)
|
|
{
|
|
nAppearanceType = 1105;
|
|
}
|
|
|
|
else if (nAppearanceType == 1116)
|
|
{
|
|
nAppearanceType = 1117;
|
|
}
|
|
else if (nAppearanceType == 1121)
|
|
{
|
|
nAppearanceType = 1122;
|
|
}
|
|
else if (nAppearanceType == 1145)
|
|
{
|
|
nAppearanceType = 1146;
|
|
}
|
|
else if (nAppearanceType == 1147)
|
|
{
|
|
nAppearanceType = 1148;
|
|
}
|
|
else if (nAppearanceType == 1153)
|
|
{
|
|
nAppearanceType = 1154;
|
|
}
|
|
else if (nAppearanceType == 1167)
|
|
{
|
|
nAppearanceType = 1168;
|
|
}
|
|
else if (nAppearanceType == 1171)
|
|
{
|
|
nAppearanceType = 1181;
|
|
}
|
|
else if (nAppearanceType == 1187)
|
|
{
|
|
nAppearanceType = 1188;
|
|
}
|
|
else if (nAppearanceType == 1190)
|
|
{
|
|
nAppearanceType = 1191;
|
|
}
|
|
else if (nAppearanceType == 1193)
|
|
{
|
|
nAppearanceType = 1194;
|
|
}
|
|
else if (nAppearanceType == 1196)
|
|
{
|
|
nAppearanceType = 1197;
|
|
}
|
|
else if (nAppearanceType == 1211)
|
|
{
|
|
nAppearanceType = 1212;
|
|
}
|
|
else if (nAppearanceType == 1214)
|
|
{
|
|
nAppearanceType = 1217;
|
|
}
|
|
else if (nAppearanceType == 1225)
|
|
{
|
|
nAppearanceType = 1226;
|
|
}
|
|
else if (nAppearanceType == 1228)
|
|
{
|
|
nAppearanceType = 1229;
|
|
}
|
|
else if (nAppearanceType == 1231)
|
|
{
|
|
nAppearanceType = 1232;
|
|
}
|
|
else if (nAppearanceType == 1234)
|
|
{
|
|
nAppearanceType = 1235;
|
|
}
|
|
else if (nAppearanceType == 1245)
|
|
{
|
|
nAppearanceType = 1246;
|
|
}
|
|
else if (nAppearanceType == 1247)
|
|
{
|
|
nAppearanceType = 1248;
|
|
}
|
|
else if (nAppearanceType == 1253)
|
|
{
|
|
nAppearanceType = 1255;
|
|
}
|
|
else if (nAppearanceType == 1260)
|
|
{
|
|
nAppearanceType = 1261;
|
|
}
|
|
else if (nAppearanceType == 1275)
|
|
{
|
|
nAppearanceType = 1278;
|
|
}
|
|
else if (nAppearanceType == 1291)
|
|
{
|
|
nAppearanceType = 1292;
|
|
}
|
|
|
|
else if (nAppearanceType == 1301)
|
|
{
|
|
nAppearanceType = 1302;
|
|
}
|
|
else if (nAppearanceType == 1309)
|
|
{
|
|
nAppearanceType = 1311;
|
|
}
|
|
else if (nAppearanceType == 1318)
|
|
{
|
|
nAppearanceType = 1324;
|
|
}
|
|
else if (nAppearanceType == 1342)
|
|
{
|
|
nAppearanceType = 1346;
|
|
}
|
|
else if (nAppearanceType == 1348)
|
|
{
|
|
nAppearanceType = 1349;
|
|
}
|
|
else if (nAppearanceType == 1351)
|
|
{
|
|
nAppearanceType = 1352;
|
|
}
|
|
else if (nAppearanceType == 1354)
|
|
{
|
|
nAppearanceType = 1355;
|
|
}
|
|
else if (nAppearanceType == 1357)
|
|
{
|
|
nAppearanceType = 1360;
|
|
}
|
|
else if (nAppearanceType == 1363)
|
|
{
|
|
nAppearanceType = 1364;
|
|
}
|
|
else if (nAppearanceType == 1366)
|
|
{
|
|
nAppearanceType = 1369;
|
|
}
|
|
else if (nAppearanceType == 1370)
|
|
{
|
|
nAppearanceType = 1378;
|
|
}
|
|
else if (nAppearanceType == 1381)
|
|
{
|
|
nAppearanceType = 1382;
|
|
}
|
|
else if (nAppearanceType == 1384)
|
|
{
|
|
nAppearanceType = 1390;
|
|
}
|
|
|
|
|
|
else if (nAppearanceType == 1412)
|
|
{
|
|
nAppearanceType = 1414;
|
|
}
|
|
else if (nAppearanceType == 1416)
|
|
{
|
|
nAppearanceType = 1417;
|
|
}
|
|
else if (nAppearanceType == 1418)
|
|
{
|
|
nAppearanceType = 1419;
|
|
}
|
|
else if (nAppearanceType == 1422)
|
|
{
|
|
nAppearanceType = 1423;
|
|
}
|
|
else if (nAppearanceType == 1427)
|
|
{
|
|
nAppearanceType = 1428;
|
|
}
|
|
else if (nAppearanceType == 1429)
|
|
{
|
|
nAppearanceType = 1430;
|
|
}
|
|
else if (nAppearanceType == 1434)
|
|
{
|
|
nAppearanceType = 1435;
|
|
}
|
|
else if (nAppearanceType == 1450)
|
|
{
|
|
nAppearanceType = 1493;
|
|
}
|
|
else if (nAppearanceType == 1496)
|
|
{
|
|
nAppearanceType = 1498;
|
|
}
|
|
|
|
else if (nAppearanceType == 1501)
|
|
{
|
|
nAppearanceType = 1504;
|
|
}
|
|
else if (nAppearanceType == 1509)
|
|
{
|
|
nAppearanceType = 1515;
|
|
}
|
|
else if (nAppearanceType == 1525)
|
|
{
|
|
nAppearanceType = 1527;
|
|
}
|
|
else if (nAppearanceType == 1532)
|
|
{
|
|
nAppearanceType = 1535;
|
|
}
|
|
|
|
else if (nAppearanceType == 1536)
|
|
{
|
|
nAppearanceType = 1544;
|
|
}
|
|
else if (nAppearanceType == 1556)
|
|
{
|
|
nAppearanceType = 1566;
|
|
}
|
|
else if (nAppearanceType == 1567)
|
|
{
|
|
nAppearanceType = 1571;
|
|
}
|
|
else if (nAppearanceType == 1585)
|
|
{
|
|
nAppearanceType = 1596;
|
|
}
|
|
else if (nAppearanceType == 1599)
|
|
{
|
|
nAppearanceType = 1607;
|
|
}
|
|
else if (nAppearanceType == 1612)
|
|
{
|
|
nAppearanceType = 1620;
|
|
}
|
|
else if (nAppearanceType == 1623)
|
|
{
|
|
nAppearanceType = 1632;
|
|
}
|
|
else if (nAppearanceType == 1635)
|
|
{
|
|
nAppearanceType = 1644;
|
|
}
|
|
else if (nAppearanceType == 1646)
|
|
{
|
|
nAppearanceType = 1656;
|
|
}
|
|
else if (nAppearanceType == 1660)
|
|
{
|
|
nAppearanceType = 1668;
|
|
}
|
|
else if (nAppearanceType == 1670)
|
|
{
|
|
nAppearanceType = 1680;
|
|
}
|
|
else if (nAppearanceType == 1683)
|
|
{
|
|
nAppearanceType = 1693;
|
|
}
|
|
else if (nAppearanceType == 1696)
|
|
{
|
|
nAppearanceType = 1704;
|
|
}
|
|
|
|
else if (nAppearanceType == 1708)
|
|
{
|
|
nAppearanceType = 1714;
|
|
}
|
|
else if (nAppearanceType == 1719)
|
|
{
|
|
nAppearanceType = 1731;
|
|
}
|
|
else if (nAppearanceType == 1733)
|
|
{
|
|
nAppearanceType = 1749;
|
|
}
|
|
else if (nAppearanceType == 1752)
|
|
{
|
|
nAppearanceType = 1760;
|
|
}
|
|
else if (nAppearanceType == 1778)
|
|
{
|
|
nAppearanceType = 1779;
|
|
}
|
|
else if (nAppearanceType == 1781)
|
|
{
|
|
nAppearanceType = 1789;
|
|
}
|
|
else if (nAppearanceType == 1790)
|
|
{
|
|
nAppearanceType = 1792;
|
|
}
|
|
else if (nAppearanceType == 1794)
|
|
{
|
|
nAppearanceType = 1799;
|
|
}
|
|
|
|
else if (nAppearanceType == 1800)
|
|
{
|
|
nAppearanceType = 1802;
|
|
}
|
|
else if (nAppearanceType == 1806)
|
|
{
|
|
nAppearanceType = 1807;
|
|
}
|
|
else if (nAppearanceType == 1820)
|
|
{
|
|
nAppearanceType = 1824;
|
|
}
|
|
else if (nAppearanceType == 1827)
|
|
{
|
|
nAppearanceType = 1830;
|
|
}
|
|
else if (nAppearanceType == 1833)
|
|
{
|
|
nAppearanceType = 1850;
|
|
}
|
|
else if (nAppearanceType == 1853)
|
|
{
|
|
nAppearanceType = 1871;
|
|
}
|
|
else if (nAppearanceType == 1879)
|
|
{
|
|
nAppearanceType = 1881;
|
|
}
|
|
else if (nAppearanceType == 1885)
|
|
{
|
|
nAppearanceType = 1886;
|
|
}
|
|
else if (nAppearanceType == 1898)
|
|
{
|
|
nAppearanceType = 1900;
|
|
}
|
|
|
|
else if (nAppearanceType == 1904)
|
|
{
|
|
nAppearanceType = 1905;
|
|
}
|
|
else if (nAppearanceType == 1910)
|
|
{
|
|
nAppearanceType = 1911;
|
|
}
|
|
else if (nAppearanceType == 1915)
|
|
{
|
|
nAppearanceType = 1917;
|
|
}
|
|
else if (nAppearanceType == 1921)
|
|
{
|
|
nAppearanceType = 1923;
|
|
}
|
|
else if (nAppearanceType == 1928)
|
|
{
|
|
nAppearanceType = 1932;
|
|
}
|
|
else if (nAppearanceType == 1935)
|
|
{
|
|
nAppearanceType = 1936;
|
|
}
|
|
else if (nAppearanceType == 1942)
|
|
{
|
|
nAppearanceType = 1944;
|
|
}
|
|
else if (nAppearanceType == 1946)
|
|
{
|
|
nAppearanceType = 1947;
|
|
}
|
|
|
|
else if (nAppearanceType == 1999)
|
|
{
|
|
nAppearanceType = 2505;
|
|
}
|
|
else if (nAppearanceType == 2510)
|
|
{
|
|
nAppearanceType = 2515;
|
|
}
|
|
else if (nAppearanceType ==2517)
|
|
{
|
|
nAppearanceType = 3001;
|
|
}
|
|
else if (nAppearanceType == 3026)
|
|
{
|
|
nAppearanceType = 3027;
|
|
}
|
|
else if (nAppearanceType == 3028)
|
|
{
|
|
nAppearanceType = 3029;
|
|
}
|
|
else if (nAppearanceType == 3034)
|
|
{
|
|
nAppearanceType = 3035;
|
|
}
|
|
else if (nAppearanceType == 3038)
|
|
{
|
|
nAppearanceType = 3039;
|
|
}
|
|
else if (nAppearanceType == 3040)
|
|
{
|
|
nAppearanceType = 3043;
|
|
}
|
|
else if (nAppearanceType == 3053)
|
|
{
|
|
nAppearanceType = 3100;
|
|
}
|
|
else if (nAppearanceType == 3117)
|
|
{
|
|
nAppearanceType = 3125;
|
|
}
|
|
else if (nAppearanceType == 3130)
|
|
{
|
|
nAppearanceType = 1; //End CEP2.1 & Start over
|
|
}
|
|
//Start Over At The Beginning..
|
|
|
|
|
|
SetCreatureAppearanceType(oPC, nAppearanceType);
|
|
|
|
}
|