object oTarget; #include "prc_inc_racial" //Put this on action taken in the conversation editor void main() { object oPC = GetPCSpeaker(); object oPlayer = oPC; //First let's make them a pixie, so hopefully their //movement rate will be normal! SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_DWARF); if ((MyPRCGetRacialType(oPC)==RACIAL_TYPE_DWARF)) { oTarget = oPC; DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_FAIRY)); } else if ((MyPRCGetRacialType(oPC)==RACIAL_TYPE_ELF)) { oTarget = oPC; DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_ELF)); } else if ((MyPRCGetRacialType(oPC)==RACIAL_TYPE_GNOME)) { oTarget = oPC; DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_GNOME)); } else if ((MyPRCGetRacialType(oPC)==RACIAL_TYPE_HALFLING)) { oTarget = oPC; DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_HALFLING)); } else if ((MyPRCGetRacialType(oPC)==RACIAL_TYPE_HALFELF)) { oTarget = oPC; DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_HALF_ELF)); } else if ((MyPRCGetRacialType(oPC)==RACIAL_TYPE_HALFORC)) { oTarget = oPC; DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_HALF_ORC)); } else if ((MyPRCGetRacialType(oPC)==RACIAL_TYPE_HUMAN)) { oTarget = oPC; DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_HUMAN)); } //Clear the PC's Reputation just in case something bad has happened. 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); } } }