18 lines
369 B
Plaintext
18 lines
369 B
Plaintext
int FLAT_TIME = 300;
|
|
int MAXIMUMRANDOM_TIME = 1200;
|
|
|
|
void CreateCrystal()
|
|
{
|
|
if (GetIsObjectValid(GetFirstItemInInventory()))
|
|
CreateItemOnObject("nw_it_msmlmisc11");
|
|
}
|
|
|
|
|
|
void main()
|
|
{
|
|
if (GetInventoryDisturbType() == INVENTORY_DISTURB_TYPE_REMOVED)
|
|
{
|
|
DelayCommand(IntToFloat(FLAT_TIME + Random(MAXIMUMRANDOM_TIME)), CreateCrystal());
|
|
}
|
|
}
|