44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
//:://////////////////////////////////////////////
|
|
//::// Keltria LEWT
|
|
//:://///////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
ExecuteScript("uberloot", OBJECT_SELF);
|
|
int nDiceRoll = d100(1);
|
|
if(nDiceRoll <= 10)
|
|
{
|
|
int nItemNum = d100(1);
|
|
if (nItemNum <= 9)
|
|
{
|
|
string sItem = "KelObjectHigh00" + IntToString(nItemNum);
|
|
CreateItemOnObject(sItem, OBJECT_SELF, 1);
|
|
}
|
|
else if (nItemNum <= 99)
|
|
{
|
|
string sItem = "KelObjectHigh0" + IntToString(nItemNum);
|
|
CreateItemOnObject(sItem, OBJECT_SELF, 1);
|
|
}
|
|
else
|
|
{
|
|
string sItem = ("KelObjectHigh" + IntToString(nItemNum));
|
|
CreateItemOnObject(sItem, OBJECT_SELF, 1);
|
|
}
|
|
}
|
|
else if(nDiceRoll <= 20)
|
|
{
|
|
int nItemNum = d100(1)+100;
|
|
string sItem = ("KelObjectHigh" + IntToString(nItemNum));
|
|
CreateItemOnObject(sItem, OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 30)
|
|
{
|
|
int nItemNum = d100(1)+200;
|
|
string sItem = ("KelObjectHigh" + IntToString(nItemNum));
|
|
CreateItemOnObject(sItem, OBJECT_SELF, 1);
|
|
}
|
|
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
|
ExecuteScript("prc_pwondeath", OBJECT_SELF);
|
|
}
|
|
|