38 lines
807 B
Plaintext
38 lines
807 B
Plaintext
//:://////////////////////////////////////////////
|
|
//::// Wyser LEWT
|
|
//:://///////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
|
|
ExecuteScript ("uberloot", OBJECT_SELF);
|
|
|
|
int nDiceRoll = d100(1);
|
|
if(nDiceRoll <= 10)
|
|
{
|
|
CreateItemOnObject("RWyser1", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 20)
|
|
{
|
|
CreateItemOnObject("RWyser2", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 30)
|
|
{
|
|
CreateItemOnObject("RWyser3", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 40)
|
|
{
|
|
CreateItemOnObject("Wyser4", OBJECT_SELF, 1);
|
|
|
|
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
|
ExecuteScript("prc_pwondeath", OBJECT_SELF);
|
|
}
|
|
|
|
|
|
|
|
int nBookRoll = d100(1);
|
|
if(nBookRoll <= 40)
|
|
{ CreateObject(OBJECT_TYPE_CREATURE, "possessedgrimoir", GetLocation(OBJECT_SELF), TRUE);}
|
|
}
|
|
|