30 lines
734 B
Plaintext
30 lines
734 B
Plaintext
|
//:://////////////////////////////////////////////
|
||
|
//::// Necromancer LEWT
|
||
|
//:://///////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
ExecuteScript ("uberloot", OBJECT_SELF);
|
||
|
|
||
|
int nDiceRoll = d100(1);
|
||
|
if(nDiceRoll <= 10)
|
||
|
{
|
||
|
CreateItemOnObject("lesserspellfocus", OBJECT_SELF, 1);
|
||
|
}
|
||
|
else if(nDiceRoll <= 20)
|
||
|
{
|
||
|
CreateItemOnObject("spikedclub", OBJECT_SELF, 1);
|
||
|
}
|
||
|
else if(nDiceRoll <= 30)
|
||
|
{
|
||
|
CreateItemOnObject("threehookedbelt", OBJECT_SELF, 1);
|
||
|
}
|
||
|
int nBookRoll = d100(1);
|
||
|
if(nBookRoll <= 40)
|
||
|
{ CreateObject(OBJECT_TYPE_CREATURE, "possessedtome", GetLocation(OBJECT_SELF), TRUE);}
|
||
|
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
||
|
ExecuteScript("prc_pwondeath", OBJECT_SELF);
|
||
|
}
|
||
|
|