Amon_PRC8/_module/nss/ls_bcbox.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

25 lines
628 B
Plaintext

void main()
{
location lLocation = GetLocation(OBJECT_SELF);
SetLocalInt(OBJECT_SELF, "boxlock", 1);
DestroyObject(OBJECT_SELF);
int nDiceRoll = d100( 1 );
int nDiceRoll3 = d3( 1 );
if( nDiceRoll <=45 ){
switch ( nDiceRoll3 ){
case 1:
CreateItemOnObject("MaggotyBread", OBJECT_SELF, 1);
break;
case 2:
CreateItemOnObject("it_mring032", OBJECT_SELF, 1);
break;
case 3:
CreateItemOnObject("it_mneck002", OBJECT_SELF, 1);
break;
}
}
else{}
}