Skip to content

Timed item / item duration

Featured Replies

Hello MC friends,

I have created 2 items, to whom I'd like to add limited duration time. Like a donator type where the item, being in players inventory, gives a slight rate boost. One is for voters reward that would have 12 hours limit period and secondis for donators with 14 or 30 days (adjustable in Config file). Items are 2 coins, voters coin and supporters coin.

I have already created a script to give rates boost and Configs for it to easly edit it on servers side. Only timer/duration function needs to be added.

pack: Interlude/L2jfrozen 1132. Unlike Shadow methods, I'd like it to take effect as soon as the item is in players inventory without need of consumption click, and regardless whether player is online or not I'd like the time to run, duration countdown/ diffTme left recorded in db.

Edited by MonkZe

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.