44 lines
756 B
Plaintext
44 lines
756 B
Plaintext
|
//
|
||
|
// Bandit Random Armor Include
|
||
|
// RA_RND_ARMOR_INC
|
||
|
//
|
||
|
// By: Jaysyn
|
||
|
//
|
||
|
|
||
|
// Test VOID
|
||
|
//void main(){}
|
||
|
|
||
|
void RndBanditArmor(object oNPC)
|
||
|
{
|
||
|
|
||
|
//Randomizes Armor
|
||
|
int nResult = d6(1);
|
||
|
object oArmor;
|
||
|
string sItem;
|
||
|
if (nResult == 1)
|
||
|
{
|
||
|
sItem = "NW_AARCL001";
|
||
|
}
|
||
|
else if(nResult == 2)
|
||
|
{
|
||
|
sItem = "NW_AARCL009";
|
||
|
}
|
||
|
else if(nResult == 3)
|
||
|
{
|
||
|
sItem = "NW_AARCL002";
|
||
|
}
|
||
|
else if(nResult ==4)
|
||
|
{
|
||
|
sItem = "NW_AARCL010";
|
||
|
}
|
||
|
else if(nResult == 5)
|
||
|
{
|
||
|
sItem = "NW_AARCL004";
|
||
|
}
|
||
|
else
|
||
|
sItem = "NW_AARCL008";
|
||
|
|
||
|
DelayCommand(1.0f, ActionEquipItem(CreateItemOnObject(sItem), INVENTORY_SLOT_CHEST));
|
||
|
}
|
||
|
|