void main() { object oZombie = OBJECT_SELF; string sName = GetName(oZombie); // Bioware Default //ExecuteScript("nw_c2_default9", OBJECT_SELF); // SiliconScout's Loot System ExecuteScript("ss_treasure_spwn", OBJECT_SELF); // Randomly damage zombies on spawn in // This can be bypassed if the variable named "BYPASS_SPAWN_DAMAGE" is set to 1 // This is useful for unique zombies which are used in quests or for other reasons. if(GetLocalInt(oZombie, "BYPASS_SPAWN_DAMAGE") == 0) { int iMaxHitPoints = GetMaxHitPoints(oZombie); ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(Random(FloatToInt(iMaxHitPoints * 0.33))), oZombie); } // Remove the (Tier #) from the zombie's name. // The Tier number is simply a reference for DMs to use as a guide when spawning // creatures for events. if(GetStringLeft(sName, 5) == "(Tier") { string sNewName = GetSubString(sName, 10, GetStringLength(sName) - 10); SetName(oZombie, sNewName); } // Spawn and equip random clothes if the boolean "SPAWN_RANDOM_CLOTHES" is set to 1 (TRUE) if(GetLocalInt(oZombie, "SPAWN_RANDOM_CLOTHES")) { ExecuteScript("random_clothing", OBJECT_SELF); } }