Updated Giant Wasp Hive
Updated Giant Wasp Hive. Got the Outcasts spawning with clothes on. Full compile.
This commit is contained in:
@@ -8,6 +8,63 @@
|
||||
// Test VOID
|
||||
//void main(){}
|
||||
|
||||
void RndOutcast(object oNPC)
|
||||
{
|
||||
//:: Randomizes Clothing
|
||||
|
||||
int nResult = d6(1);
|
||||
int nStackSize = 1; // Create 1 items;
|
||||
|
||||
object oArmor;
|
||||
|
||||
string sItem;
|
||||
|
||||
if (nResult == 1)
|
||||
{
|
||||
sItem = "ra_altpd_outcst1";
|
||||
}
|
||||
else if(nResult == 2)
|
||||
{
|
||||
sItem = "ra_altpd_outcst2";
|
||||
}
|
||||
else if(nResult == 3)
|
||||
{
|
||||
sItem = "ra_altpd_outcst3";
|
||||
}
|
||||
else if(nResult == 4)
|
||||
{
|
||||
sItem = "ra_altpd_outcst4";
|
||||
}
|
||||
else if(nResult == 5)
|
||||
{
|
||||
sItem = "ra_altpd_outcst5";
|
||||
}
|
||||
else if(nResult == 6)
|
||||
{
|
||||
sItem = "ra_altpd_outcst6";
|
||||
}
|
||||
else
|
||||
sItem = "NW_AARCL009";
|
||||
|
||||
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(2.0f, ActionEquipItem(oItem, INVENTORY_SLOT_CHEST));
|
||||
return;
|
||||
}
|
||||
|
||||
oItem = GetNextItemInInventory(OBJECT_SELF);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void RndBanditArmor(object oNPC)
|
||||
{
|
||||
// Makes sure any original armor isn't dropped as loot.
|
||||
|
Reference in New Issue
Block a user