21 lines
516 B
Plaintext
21 lines
516 B
Plaintext
|
//:://////////////////////////////////////////////
|
||
|
//::// Ran_Boss_1 LEWT
|
||
|
//:://///////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
ExecuteScript("uberloot", OBJECT_SELF);
|
||
|
int nItemNum = d20(1);
|
||
|
string sItem = ("RanBoss01" + IntToString(nItemNum));
|
||
|
|
||
|
int nDiceRoll = d100(1);
|
||
|
if(nDiceRoll <= 30)
|
||
|
{
|
||
|
CreateItemOnObject(sItem, OBJECT_SELF, 1);
|
||
|
}
|
||
|
SetLocalInt(GetModule(),"Ran_Boss_1",0);
|
||
|
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
||
|
ExecuteScript("prc_pwondeath", OBJECT_SELF);
|
||
|
}
|
||
|
|