Take a look at:
Code:
if (LootDropBoost && lootDropBoostFreeTimer)
{
if (LootDropBoostTimeLeft > 0)
{
lootDropBoostFreeTimer = false;
Owner.Timers.Add(new WorldTimer(1000, (w, t) =>
{
LootDropBoostTimeLeft -= 1;
lootDropBoostFreeTimer = true;
UpdateCount++;
}));
}
}
if (LootTierBoost && lootTierBoostFreeTimer)
{
if (LootTierBoostTimeLeft > 0)
{
lootTierBoostFreeTimer = false;
Owner.Timers.Add(new WorldTimer(1000, (w, t) =>
{
LootTierBoostTimeLeft -= 1;
lootTierBoostFreeTimer = true;
UpdateCount++;
}));
}
}
and
Code:
if (item.LootDropBooster)
{
if (!LootDropBoost)
{
LootDropBoostTimeLeft = (float)item.Timer;
lootDropBoostFreeTimer = (float)item.Timer == -1.0 ? false : true;
return false;
}
else
{
SendInfo("You have already an active Loot Drop Booster.");
return true;
}
}
if (item.LootTierBooster)
{
if (!LootTierBoost)
{
LootTierBoostTimeLeft = (float)item.Timer;
lootTierBoostFreeTimer = (float)item.Timer == -1.0 ? false : true;
return false;
}
else
{
SendInfo("You have already an active Loot Tier Booster.");
return true;
}
}
Although, I doubt you will be able to do it. My best advice would be to read what @Orbit said, and maybe learn some C# as well. Then only will you be able to create such basic events like this.