Haha after long hours of searching of vending with item duration, i finally came to my last stand, give up. This what i came up with. BTW, the point of the vending system is to make market/vending more fun and make player occupied. My idea was 1day vending/ 7 days vending/ 30 days vending. Eventually I came out this.
Step one paste this. This is when you use @at the script will request an item from the player. Which the item will have duration to it which when it reaches its limit it will disconnect you from game.
Step two, this part is when you make that item wearable so you can adjust the properties. In my case i make my self disconnect from server. Which eventually disconnect the whole server. In your item_db2 put this. Do know this item if you wear it you will last 20 second in the game then you will be disconnected. This item is the one that you are gonna put 1day then another item 7 days another 30 days, etc.
So what now? Alright here the fun begins.
Make a merchant, vend something makesure you have jellopy in your inventory and "Vending(25000)" item also with you.
Then just @at. Wait for 20 sec your whole server get dced.
Now this is quite annoying because of many hours of searching i didnt get the result that i wanted. If any kind soul out there to help me with this please do tqvm.
Credits to Emitry and Annieruru