463 lines
9.4 KiB
Plaintext
463 lines
9.4 KiB
Plaintext
//Created by Scarface,
|
|
//Revised & Updated by Genisys (galefer003@hotmail.com)
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oPlayer = oPC;
|
|
|
|
int nAppearanceType;
|
|
|
|
//DMs Can selecting ANY appearance..
|
|
if(!GetIsPC(oPC))
|
|
{
|
|
SendMessageToPC(oPC, "The previous Index Number = " + IntToString(GetAppearanceType(oPC)));
|
|
nAppearanceType = GetAppearanceType(oPC) - 1;
|
|
SendMessageToPC(oPC, "The current Index Number = " + IntToString(nAppearanceType));
|
|
SetCreatureAppearanceType(oPC, nAppearanceType);
|
|
}
|
|
|
|
else
|
|
{
|
|
nAppearanceType = GetAppearanceType(oPC) - 1;
|
|
|
|
if (nAppearanceType == 0)
|
|
{
|
|
nAppearanceType = 3129;
|
|
}
|
|
else if (nAppearanceType == 3124)
|
|
{
|
|
nAppearanceType = 3116;
|
|
}
|
|
else if (nAppearanceType == 3099)
|
|
{
|
|
nAppearanceType = 3052;
|
|
}
|
|
else if (nAppearanceType == 3042)
|
|
{
|
|
nAppearanceType = 3033;
|
|
}
|
|
else if (nAppearanceType == 3028)
|
|
{
|
|
nAppearanceType = 3025;
|
|
}
|
|
else if (nAppearanceType == 2999)
|
|
{
|
|
nAppearanceType = 2509;
|
|
}
|
|
else if (nAppearanceType == 2504)
|
|
{
|
|
nAppearanceType = 1998;
|
|
}
|
|
else if (nAppearanceType == 1946)
|
|
{
|
|
nAppearanceType = 1941;
|
|
}
|
|
else if (nAppearanceType == 1935)
|
|
{
|
|
nAppearanceType = 1934;
|
|
}
|
|
else if (nAppearanceType == 1932)
|
|
{
|
|
nAppearanceType = 1927;
|
|
}
|
|
else if (nAppearanceType == 1922)
|
|
{
|
|
nAppearanceType = 1920;
|
|
}
|
|
else if (nAppearanceType == 1916)
|
|
{
|
|
nAppearanceType = 1914;
|
|
}
|
|
else if (nAppearanceType == 1910)
|
|
{
|
|
nAppearanceType = 1909;
|
|
}
|
|
else if (nAppearanceType == 1904)
|
|
{
|
|
nAppearanceType = 1903;
|
|
}
|
|
else if (nAppearanceType == 1899)
|
|
{
|
|
nAppearanceType = 1884;
|
|
}
|
|
else if (nAppearanceType == 1880)
|
|
{
|
|
nAppearanceType = 1878;
|
|
}
|
|
else if (nAppearanceType == 1870)
|
|
{
|
|
nAppearanceType = 1852;
|
|
}
|
|
else if (nAppearanceType == 1849)
|
|
{
|
|
nAppearanceType = 1832;
|
|
}
|
|
else if (nAppearanceType == 1829)
|
|
{
|
|
nAppearanceType = 1826;
|
|
}
|
|
else if (nAppearanceType == 1823)
|
|
{
|
|
nAppearanceType = 1819;
|
|
}
|
|
else if (nAppearanceType == 1806)
|
|
{
|
|
nAppearanceType = 1805;
|
|
}
|
|
|
|
else if (nAppearanceType == 1801)
|
|
{
|
|
nAppearanceType = 1777;
|
|
}
|
|
else if (nAppearanceType == 1759)
|
|
{
|
|
nAppearanceType = 1751;
|
|
}
|
|
else if (nAppearanceType == 1748)
|
|
{
|
|
nAppearanceType = 1718;
|
|
}
|
|
else if (nAppearanceType == 1713)
|
|
{
|
|
nAppearanceType = 1707;
|
|
}
|
|
else if (nAppearanceType == 1703)
|
|
{
|
|
nAppearanceType = 1695;
|
|
}
|
|
|
|
else if (nAppearanceType == 1692)
|
|
{
|
|
nAppearanceType = 1682;
|
|
}
|
|
else if (nAppearanceType == 1681)
|
|
{
|
|
nAppearanceType = 1669;
|
|
}
|
|
else if (nAppearanceType == 1667)
|
|
{
|
|
nAppearanceType = 1659;
|
|
}
|
|
else if (nAppearanceType == 1655)
|
|
{
|
|
nAppearanceType = 1645;
|
|
}
|
|
else if (nAppearanceType == 1643)
|
|
{
|
|
nAppearanceType = 1634;
|
|
}
|
|
else if (nAppearanceType == 1631)
|
|
{
|
|
nAppearanceType = 1622;
|
|
}
|
|
else if (nAppearanceType == 1619)
|
|
{
|
|
nAppearanceType = 1611;
|
|
}
|
|
else if (nAppearanceType == 1606)
|
|
{
|
|
nAppearanceType = 1598;
|
|
}
|
|
|
|
else if (nAppearanceType == 1595)
|
|
{
|
|
nAppearanceType = 1584;
|
|
}
|
|
else if (nAppearanceType == 1570)
|
|
{
|
|
nAppearanceType = 1555;
|
|
}
|
|
else if (nAppearanceType == 1543)
|
|
{
|
|
nAppearanceType = 1531;
|
|
}
|
|
else if (nAppearanceType == 1526)
|
|
{
|
|
nAppearanceType = 1524;
|
|
}
|
|
else if (nAppearanceType == 1514)
|
|
{
|
|
nAppearanceType = 1508;
|
|
}
|
|
else if (nAppearanceType == 1503)
|
|
{
|
|
nAppearanceType = 1499;
|
|
}
|
|
|
|
else if (nAppearanceType == 1497)
|
|
{
|
|
nAppearanceType = 1495;
|
|
}
|
|
else if (nAppearanceType == 1492)
|
|
{
|
|
nAppearanceType = 1449;
|
|
}
|
|
else if (nAppearanceType == 1434)
|
|
{
|
|
nAppearanceType = 1433;
|
|
}
|
|
else if (nAppearanceType == 1429)
|
|
{
|
|
nAppearanceType = 1426;
|
|
}
|
|
else if (nAppearanceType == 1422)
|
|
{
|
|
nAppearanceType = 1421;
|
|
}
|
|
else if (nAppearanceType == 1418)
|
|
{
|
|
nAppearanceType = 1411;
|
|
}
|
|
|
|
else if (nAppearanceType == 1389)
|
|
{
|
|
nAppearanceType = 1380;
|
|
}
|
|
else if (nAppearanceType == 1376)
|
|
{
|
|
nAppearanceType = 1365;
|
|
}
|
|
else if (nAppearanceType == 1363)
|
|
{
|
|
nAppearanceType = 1362;
|
|
}
|
|
else if (nAppearanceType == 1359)
|
|
{
|
|
nAppearanceType = 1356;
|
|
}
|
|
else if (nAppearanceType == 1354)
|
|
{
|
|
nAppearanceType = 1350;
|
|
}
|
|
else if (nAppearanceType == 1348)
|
|
{
|
|
nAppearanceType = 1341;
|
|
}
|
|
else if (nAppearanceType == 1323)
|
|
{
|
|
nAppearanceType = 1317;
|
|
}
|
|
else if (nAppearanceType == 1310)
|
|
{
|
|
nAppearanceType = 1308;
|
|
}
|
|
else if (nAppearanceType == 1301)
|
|
{
|
|
nAppearanceType = 1299;
|
|
}
|
|
else if (nAppearanceType == 1291)
|
|
{
|
|
nAppearanceType = 1290;
|
|
}
|
|
else if (nAppearanceType == 1276)
|
|
{
|
|
nAppearanceType = 1274;
|
|
}
|
|
else if (nAppearanceType == 1260)
|
|
{
|
|
nAppearanceType = 1259;
|
|
}
|
|
else if (nAppearanceType == 1254)
|
|
{
|
|
nAppearanceType = 1252;
|
|
}
|
|
else if (nAppearanceType == 1247)
|
|
{
|
|
nAppearanceType = 1244;
|
|
}
|
|
else if (nAppearanceType == 1234)
|
|
{
|
|
nAppearanceType = 1224;
|
|
}
|
|
else if (nAppearanceType == 1216)
|
|
{
|
|
nAppearanceType = 1210;
|
|
}
|
|
|
|
|
|
else if (nAppearanceType == 1196)
|
|
{
|
|
nAppearanceType = 1186;
|
|
}
|
|
else if (nAppearanceType == 1180)
|
|
{
|
|
nAppearanceType = 1170;
|
|
}
|
|
else if (nAppearanceType == 1167)
|
|
{
|
|
nAppearanceType = 1166;
|
|
}
|
|
else if (nAppearanceType == 1153)
|
|
{
|
|
nAppearanceType = 1152;
|
|
}
|
|
else if (nAppearanceType == 1147)
|
|
{
|
|
nAppearanceType = 1144;
|
|
}
|
|
else if (nAppearanceType == 1120)
|
|
{
|
|
nAppearanceType = 1119;
|
|
}
|
|
else if (nAppearanceType == 1116)
|
|
{
|
|
nAppearanceType = 1115;
|
|
}
|
|
else if (nAppearanceType == 1104)
|
|
{
|
|
nAppearanceType = 1100;
|
|
}
|
|
|
|
else if (nAppearanceType == 1097)
|
|
{
|
|
nAppearanceType = 1096;
|
|
}
|
|
else if (nAppearanceType == 1089)
|
|
{
|
|
nAppearanceType = 1086;
|
|
}
|
|
else if (nAppearanceType == 1075)
|
|
{
|
|
nAppearanceType = 1073;
|
|
}
|
|
else if (nAppearanceType == 1058)
|
|
{
|
|
nAppearanceType = 1052;
|
|
}
|
|
else if (nAppearanceType == 1031)
|
|
{
|
|
nAppearanceType = 1029;
|
|
}
|
|
else if (nAppearanceType == 1023)
|
|
{
|
|
nAppearanceType = 1022;
|
|
}
|
|
else if (nAppearanceType == 1016)
|
|
{
|
|
nAppearanceType = 1015;
|
|
}
|
|
|
|
else if (nAppearanceType == 999) //End CEP2.2
|
|
{
|
|
nAppearanceType = 480;
|
|
}
|
|
|
|
else if (nAppearanceType == 473)
|
|
{
|
|
nAppearanceType = 467;
|
|
}
|
|
else if (nAppearanceType == 463)
|
|
{
|
|
nAppearanceType = 460;
|
|
}
|
|
else if (nAppearanceType == 446)
|
|
{
|
|
nAppearanceType = 445;
|
|
}
|
|
else if (nAppearanceType == 458)
|
|
{
|
|
nAppearanceType = 454;
|
|
}
|
|
else if (nAppearanceType == 425)
|
|
{
|
|
nAppearanceType = 417;
|
|
}
|
|
else if (nAppearanceType == 405)
|
|
{
|
|
nAppearanceType = 403;
|
|
}
|
|
else if (nAppearanceType == 395)
|
|
{
|
|
nAppearanceType = 391;
|
|
}
|
|
else if (nAppearanceType == 373)
|
|
{
|
|
nAppearanceType = 370;
|
|
}
|
|
else if (nAppearanceType == 366)
|
|
{
|
|
nAppearanceType = 363;
|
|
}
|
|
else if (nAppearanceType == 351)
|
|
{
|
|
nAppearanceType = 306;
|
|
}
|
|
else if (nAppearanceType == 298)
|
|
{
|
|
nAppearanceType = 297;
|
|
}
|
|
|
|
else if (nAppearanceType == 205)
|
|
{
|
|
nAppearanceType = 204;
|
|
}
|
|
else if (nAppearanceType == 168)
|
|
{
|
|
nAppearanceType = 167;
|
|
}
|
|
else if (nAppearanceType == 118)
|
|
{
|
|
nAppearanceType = 117;
|
|
}
|
|
|
|
|
|
else if (nAppearanceType == 82)
|
|
{
|
|
nAppearanceType = 77;
|
|
}
|
|
else if (nAppearanceType == 72)
|
|
{
|
|
nAppearanceType = 71;
|
|
}
|
|
else if (nAppearanceType == 64)
|
|
{
|
|
nAppearanceType = 63;
|
|
}
|
|
else if (nAppearanceType == 52)
|
|
{
|
|
nAppearanceType = 40;
|
|
}
|
|
else if (nAppearanceType == 24)
|
|
{
|
|
nAppearanceType = 23;
|
|
}
|
|
|
|
else if (nAppearanceType == 38)
|
|
{
|
|
nAppearanceType = 37;
|
|
}
|
|
|
|
//Start Over
|
|
else if (nAppearanceType == 0)
|
|
{
|
|
nAppearanceType = 3999;//Start Over...
|
|
}
|
|
|
|
//Set their appearance based upon which #s are valid..
|
|
SetCreatureAppearanceType(oPC, nAppearanceType);
|
|
}
|
|
|
|
if(GetIsPC(oPlayer))
|
|
{
|
|
|
|
AssignCommand(oPlayer, ClearAllActions());
|
|
|
|
//Clear Reputation of PC
|
|
if (GetStandardFactionReputation(STANDARD_FACTION_COMMONER, oPlayer) <= 10)
|
|
{ SetLocalInt(oPlayer, "NW_G_Playerhasbeenbad", 10); // * Player bad
|
|
SetStandardFactionReputation(STANDARD_FACTION_COMMONER, 80, oPlayer);
|
|
}
|
|
if (GetStandardFactionReputation(STANDARD_FACTION_MERCHANT, oPlayer) <= 10)
|
|
{ SetLocalInt(oPlayer, "NW_G_Playerhasbeenbad", 10); // * Player bad
|
|
SetStandardFactionReputation(STANDARD_FACTION_MERCHANT, 80, oPlayer);
|
|
}
|
|
if (GetStandardFactionReputation(STANDARD_FACTION_DEFENDER, oPlayer) <= 10)
|
|
{ SetLocalInt(oPlayer, "NW_G_Playerhasbeenbad", 10); // * Player bad
|
|
SetStandardFactionReputation(STANDARD_FACTION_DEFENDER, 80, oPlayer);
|
|
}
|
|
|
|
}
|
|
|
|
}
|