Dupe file removal.
Removed weapon models duped in the CEP 3 facelift haks. More henchman & packages work.
This commit is contained in:
@@ -125,5 +125,75 @@ void RndLightArmor(object oNPC)
|
||||
|
||||
oItem = GetNextItemInInventory(OBJECT_SELF);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void RndFighterArmor(object oNPC)
|
||||
{
|
||||
// Makes sure any original armor isn't dropped as loot.
|
||||
SetDroppableFlag(GetItemInSlot(INVENTORY_SLOT_CHEST, OBJECT_SELF), 0);
|
||||
|
||||
//Randomizes Armor
|
||||
|
||||
int nResult = d10(1);
|
||||
int nStackSize = 1; // Create 1 items;
|
||||
|
||||
object oArmor;
|
||||
|
||||
string sItem;
|
||||
|
||||
if (nResult == 1)
|
||||
{
|
||||
sItem = "nw_aarcl011";
|
||||
}
|
||||
else if(nResult == 2)
|
||||
{
|
||||
sItem = "nw_aarcl006";
|
||||
}
|
||||
else if(nResult == 3)
|
||||
{
|
||||
sItem = "nw_aarcl005";
|
||||
}
|
||||
else if(nResult ==4)
|
||||
{
|
||||
sItem = "nw_aarcl010";
|
||||
}
|
||||
else if(nResult == 5)
|
||||
{
|
||||
sItem = "nw_aarcl004";
|
||||
}
|
||||
else if(nResult == 6)
|
||||
{
|
||||
sItem = "nw_aarcl003";
|
||||
}
|
||||
else if(nResult == 7)
|
||||
{
|
||||
sItem = "nw_aarcl012";
|
||||
}
|
||||
else if(nResult == 8)
|
||||
{
|
||||
sItem = "chainmail_st";
|
||||
}
|
||||
else if(nResult == 9)
|
||||
{
|
||||
sItem = "scale_st";
|
||||
}
|
||||
else
|
||||
sItem = "aarcl007";
|
||||
|
||||
CreateItemOnObject(sItem, OBJECT_SELF, nStackSize);
|
||||
|
||||
// Loop the object's inventory and equip the first
|
||||
object oItem = GetFirstItemInInventory(OBJECT_SELF);
|
||||
while(GetIsObjectValid(oItem))
|
||||
{
|
||||
// Check if armor, of course
|
||||
if(GetBaseItemType(oItem) == BASE_ITEM_ARMOR)
|
||||
{
|
||||
// Equip it and stop the script
|
||||
DelayCommand(1.0f, ActionEquipItem(oItem, INVENTORY_SLOT_CHEST));
|
||||
return;
|
||||
}
|
||||
|
||||
oItem = GetNextItemInInventory(OBJECT_SELF);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user