2025-04-03 19:00:46 -04:00
|
|
|
//::///////////////////////////////////////////////
|
|
|
|
//:: Name
|
|
|
|
//:: FileName
|
|
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
/*
|
|
|
|
|
|
|
|
*/
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
//:: Created By:
|
|
|
|
//:: Created On:
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
|
2025-09-24 16:04:25 -04:00
|
|
|
ExecuteScript("uberloot", OBJECT_SELF);
|
|
|
|
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
|
|
|
ExecuteScript("prc_pwondeath", OBJECT_SELF);
|
2025-04-03 19:00:46 -04:00
|
|
|
|
|
|
|
int nDiceRoll = d100(1);
|
|
|
|
if(nDiceRoll <= 45)
|
|
|
|
{
|
|
|
|
CreateItemOnObject("findol", OBJECT_SELF, 1);
|
|
|
|
}
|
|
|
|
else if(nDiceRoll <= 60)
|
|
|
|
{
|
|
|
|
CreateItemOnObject("klindar", OBJECT_SELF, 1);
|
|
|
|
}
|
|
|
|
else if(nDiceRoll <= 80)
|
|
|
|
{
|
|
|
|
CreateItemOnObject("staffofalsephius", OBJECT_SELF, 1);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
CreateItemOnObject("gemmedbelt", OBJECT_SELF, 1);
|
|
|
|
}
|
|
|
|
int nBookRoll = d100(1);
|
|
|
|
if(nBookRoll <= 40)
|
|
|
|
{ CreateObject(OBJECT_TYPE_CREATURE, "possessedtome", GetLocation(OBJECT_SELF), TRUE);}
|
|
|
|
}
|
|
|
|
|