Added barred doors, set up more city denizen spawners, cleaned up Baleas Town Guards, Faerunized the "Holy Paladins". Added character deleter NPC in the OOC Starting Area.
59 lines
1.5 KiB
Plaintext
59 lines
1.5 KiB
Plaintext
//:: Copyright (c) Project RATDOG
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Randomize appearance & clothing for commoners
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Jason Collins
|
|
//:: Created On: Sept 01, 2021
|
|
//:://////////////////////////////////////////////
|
|
|
|
void rnd_skin(object oPC)
|
|
{
|
|
// Randomize skin color
|
|
int nSkinColor;
|
|
nSkinColor = Random(15);
|
|
SetColor(OBJECT_SELF, COLOR_CHANNEL_SKIN, nSkinColor);
|
|
}
|
|
|
|
void rnd_head(object oPC)
|
|
{
|
|
// Randomize head
|
|
int nKeephead = GetLocalInt(OBJECT_SELF,"RA_KEEPHEAD");
|
|
int nHeadNumber;
|
|
nHeadNumber = Random(12)+1;
|
|
if (nKeephead != 1)
|
|
{
|
|
SetCreatureBodyPart(CREATURE_PART_HEAD, nHeadNumber, OBJECT_SELF);
|
|
}
|
|
// Randomize hair color
|
|
int nHairColor;
|
|
nHairColor = Random(15);
|
|
SetColor(OBJECT_SELF, COLOR_CHANNEL_HAIR, nHairColor);
|
|
}
|
|
|
|
void rnd_tattoo(object oPC)
|
|
{
|
|
// Randomize Tattoos
|
|
int nTattoo1;
|
|
nTattoo1 = Random(15);
|
|
SetColor(OBJECT_SELF, COLOR_CHANNEL_TATTOO_1, nTattoo1);
|
|
|
|
int nTattoo2;
|
|
nTattoo2 = Random(15);
|
|
SetColor(OBJECT_SELF, COLOR_CHANNEL_TATTOO_2, nTattoo2);
|
|
}
|
|
|
|
void rnd_clothes(object oPC)
|
|
{
|
|
//Randomizes Commoner's Clothing
|
|
int nStackSize = 1; // Create 1 items
|
|
int nResult = d20(1);
|
|
string sItem;
|
|
sItem = "baleas_cloth0" + IntToString(nResult);
|
|
DelayCommand(1.0f, ActionEquipItem(CreateItemOnObject(sItem), INVENTORY_SLOT_CHEST));
|
|
}
|
|
|
|
// Test VOID
|
|
//void main(){}
|