33 lines
834 B
Plaintext
33 lines
834 B
Plaintext
//:://////////////////////////////////////////////
|
|
//::// Salain LEWT
|
|
//:://////////////////////////////////////////////
|
|
void main()
|
|
{
|
|
|
|
|
|
ExecuteScript ("uberloot", OBJECT_SELF);
|
|
|
|
location llocation = GetLocation(OBJECT_SELF);
|
|
CreateObject(OBJECT_TYPE_CREATURE, "beshidal", llocation);
|
|
|
|
int nDiceRoll = d100(1);
|
|
if(nDiceRoll <= 10)
|
|
{
|
|
CreateItemOnObject("salain1", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 20)
|
|
{
|
|
CreateItemOnObject("salain2", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 30)
|
|
{
|
|
CreateItemOnObject("salain3", OBJECT_SELF, 1);
|
|
}
|
|
|
|
int nBookRoll = d100(1);
|
|
if(nBookRoll <= 40)
|
|
{CreateObject(OBJECT_TYPE_CREATURE, "possessedgrimoir", GetLocation(OBJECT_SELF), TRUE);}
|
|
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
|
ExecuteScript("prc_pwondeath", OBJECT_SELF);
|
|
}
|