#Someone can help me!

1 messages · Page 1 of 1 (latest)

sudden ravine
#

Hi, in deluxemenus
I can put a maxium of bought an item?
Like thath you can only bought thath item 2 times (For example)
or a limit click command?

empty kayak
#

per user?

#

or for the whole server?

sudden ravine
#

Per user

#

But its for day

#

Like today you can buy that 1 time and tomorrow you can buy one more time

empty kayak
#

it would be complicated, but possible

#

via combination of checking the date, and storing the information using user meta

sudden ravine
#

You have an example or a gui?

empty kayak
#

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

sudden ravine
#

mmm

empty kayak
#

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

sudden ravine
#

i can put view_requeriments_2?

#

or how i can put

empty kayak
#

?dm-multireq

pale krakenBOT
#
FAQ Answer:
click_requirement:
  requirements:
    requirement1:
      type: TYPE
    requirement2:
      type: TYPE
    requirement3:
      type: TYPE
    requirement4:
      type: TYPE

More info on the Wiki

sudden ravine
empty kayak
#
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

empty kayak
pale krakenBOT
#
FAQ Answer:

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

sudden ravine
empty kayak
#

you will need

#

this is for the date changing

sudden ravine
#

ahh

empty kayak
#

I can look at this later

sudden ravine
#

ok

#

I wait for you!

sudden ravine
#

@empty kayak

#

...

empty kayak
#

I got work my man

#

I would try attempting some of it if you can.

It’s a pretty complicated want/request

empty kayak
#

@sudden ravine you around?