Spawner & Overhaul pass.
Added: Reforged, Undead Redux 2, Goblin, Ogre & Orc override content. Updated appearance & placeables 2DA files to EE. Added NPC spawners for Goldeyes, Paladins, Town Guards. Added functionality to the mob randomizer.
This commit is contained in:
@@ -33,19 +33,22 @@ object oNPC = OBJECT_SELF;
|
||||
// Chance of guard type creatures dropping gear onDeath.
|
||||
if ((GetResRef(oNPC) == "npc_baleasgrd001") ||
|
||||
(GetResRef(oNPC) == "npc_goldeye001") ||
|
||||
(GetResRef(oNPC) == "npc_baleasgrd003") ||
|
||||
(GetResRef(oNPC) == "npc_wau_pal001") ||
|
||||
(GetResRef(oNPC) == "npc_baleasgrd004") ||
|
||||
(GetResRef(oNPC) == "npc_baleasgrd005"))
|
||||
{
|
||||
object oArmor = GetItemInSlot(INVENTORY_SLOT_CHEST, oNPC);
|
||||
object oWeapon = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oNPC);
|
||||
object oShield = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oNPC);
|
||||
|
||||
// Give a 3% chance to drop armor &/or equipped weapon
|
||||
int bDroppableA = d100() > 97;
|
||||
int bDroppableW = d100() > 97;
|
||||
// Give a 1% chance to drop armor &/or equipped weapon
|
||||
int bDroppableA = d100() > 99;
|
||||
int bDroppableW = d100() > 99;
|
||||
int bDroppableS = d100() > 99;
|
||||
|
||||
SetDroppableFlag(oArmor, bDroppableA);
|
||||
SetDroppableFlag(oWeapon, bDroppableW);
|
||||
SetDroppableFlag(oShield, bDroppableS);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user