26 lines
564 B
Plaintext
26 lines
564 B
Plaintext
void main()
|
|
{
|
|
|
|
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("RottedChest1", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 20)
|
|
{
|
|
CreateItemOnObject("RottedChest2", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 30)
|
|
{
|
|
CreateItemOnObject("RottedChest3", OBJECT_SELF, 1);
|
|
}
|
|
|
|
DestroyObject(OBJECT_SELF);
|
|
}
|
|
|