36 lines
983 B
Plaintext
36 lines
983 B
Plaintext
//:://////////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
|
|
ExecuteScript ("uberloot", OBJECT_SELF);
|
|
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
|
ExecuteScript("prc_pwondeath", OBJECT_SELF);
|
|
|
|
int nDiceRoll = d100(1);
|
|
if(nDiceRoll <= 8)
|
|
{
|
|
CreateItemOnObject("GlareRobes", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 16)
|
|
{
|
|
CreateItemOnObject("Marajim", OBJECT_SELF, 1);
|
|
CreateItemOnObject("DarkStone", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 24)
|
|
{
|
|
CreateItemOnObject("OpineGas", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 30)
|
|
{
|
|
CreateItemOnObject("Ellowen", OBJECT_SELF, 1);
|
|
CreateItemOnObject("DarkStone", OBJECT_SELF, 1);
|
|
}
|
|
else{CreateItemOnObject("DragonsBlood", OBJECT_SELF, 1);}
|
|
|
|
int nBookRoll = d100(1);
|
|
if(nBookRoll <= 40)
|
|
{ CreateObject(OBJECT_TYPE_CREATURE, "possessedspellbo", GetLocation(OBJECT_SELF), TRUE);}
|
|
}
|
|
|