Amon_PRC8/_module/nss/ls_pandina.nss

33 lines
838 B
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
//:://////////////////////////////////////////////
//::// pandina LEWT
//:://///////////////////////////////////////////
void main()
{
ExecuteScript ("uberloot", OBJECT_SELF);
int nDiceRoll = d100(1);
if(nDiceRoll <= 8)
{
CreateItemOnObject("DarkGnomeArmour", OBJECT_SELF, 1);
}
else if(nDiceRoll <= 16)
{
CreateItemOnObject("DarkGnomeMageRobes", OBJECT_SELF, 1);
}
else if(nDiceRoll <= 24)
{
CreateItemOnObject("DarkGnomeShortSword", OBJECT_SELF, 1);
}
else if(nDiceRoll <= 30)
{
CreateItemOnObject("NW_ASHTO001", OBJECT_SELF, 1);
}
int nBookRoll = d100(1);
if(nBookRoll <= 40)
{ CreateObject(OBJECT_TYPE_CREATURE, "possessedspellbo", GetLocation(OBJECT_SELF), TRUE);}
ExecuteScript("prc_npc_death", OBJECT_SELF);
ExecuteScript("prc_pwondeath", OBJECT_SELF);
}