28 lines
620 B
Plaintext
28 lines
620 B
Plaintext
void main()
|
|
{
|
|
object oPC = GetLastKiller();
|
|
if (GetHitDice(oPC) <= 8)
|
|
{
|
|
ExecuteScript("lootgems", OBJECT_SELF);
|
|
ExecuteScript("lootgold", OBJECT_SELF);
|
|
ExecuteScript("lootrations", OBJECT_SELF);
|
|
ExecuteScript("lootpotions", OBJECT_SELF);
|
|
ExecuteScript("lootranged", OBJECT_SELF);
|
|
int nDiceRoll = d100(1);
|
|
if(nDiceRoll <= 10)
|
|
{
|
|
CreateItemOnObject("strongbox21", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 20)
|
|
{
|
|
CreateItemOnObject("strongbox22", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 30)
|
|
{
|
|
CreateItemOnObject("strongbox23", OBJECT_SELF, 1);
|
|
}
|
|
|
|
DestroyObject(OBJECT_SELF);
|
|
}
|
|
}
|