Amon_PRC8/_module/nss/ls_bookcase5.nss

27 lines
969 B
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
void main()
{
location lLocation = GetLocation(OBJECT_SELF);
ExecuteScript("uberloot", OBJECT_SELF);
CreateItemOnObject("towerkey5", OBJECT_SELF);
int nDiceRoll = d100(1);
if(nDiceRoll <= 30)
{
CreateObject(OBJECT_TYPE_CREATURE, "possessedgrimoir", lLocation, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "possessedgrimoir", lLocation, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "possessedgrimoir", lLocation, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "possessedtome", lLocation, FALSE);
}
else if(nDiceRoll <= 60)
{
CreateObject(OBJECT_TYPE_CREATURE, "possessedgrimoir", lLocation, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "possessedtome", lLocation, FALSE);
}
else
{
CreateObject(OBJECT_TYPE_CREATURE, "possessedgrimoir", lLocation, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "possessedgrimoir", lLocation, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "dv_at_book_4", lLocation, FALSE);
}
}