#Someone can help me!
1 messages · Page 1 of 1 (latest)
Per user
But its for day
Like today you can buy that 1 time and tomorrow you can buy one more time
it would be complicated, but possible
via combination of checking the date, and storing the information using user meta
You have an example or a gui?
here is a thread #1094935953937813565 message
I gotta head out soon so can't help much atm
this doesn't take date into consideration
general idea
you store the amount purchased to a meta value, let's say DAILY-PURCHASED
increase it each time they buy it, limiting to whatever you want
mmm
then, store the date information in another meta key
DAILY-DATE
and, when they open the menu, if the date has changed, reset their limit
obviously the date part is complicated, but this is the sketch
easiest way I think to do the date would be store the day in year
%servertime_D% will return 182 for today
183 for tomorrow
makes it easy
is this making sense
?dm-multireq
click_requirement:
requirements:
requirement1:
type: TYPE
requirement2:
type: TYPE
requirement3:
type: TYPE
requirement4:
type: TYPE
open_requirement:
minimum_requirements: 1
stop_at_success: true
requirements:
datechange:
type: '=='
input: '%deluxemenus_meta_DAILY-DATE_INTEGER_0%'
output: '%math_0:_{servertime_D}-1%'
success_commmands:
- '[meta] set DAILY-DATE INTEGER %servertime_D%'
- '[refresh]<delay=1>'
dateNOTchange: # needed to open the mmenu if the day doesn't change
type: '=='
input: '%deluxemenus_meta_DAILY-DATE_INTEGER_0%'
output: '%servertime_D%'
quick write up of PART of the open requirement
not tested but i gotta head to work
don't send images of text 🙂
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
Sorry, but i need for an item, not for open
ahh
I can look at this later
I got work my man
I would try attempting some of it if you can.
It’s a pretty complicated want/request
@sudden ravine you around?
I made up the menu, should be in it's entirety https://paste.helpch.at/afaririlav.yaml