#daily shop

1 messages · Page 1 of 1 (latest)

weak patrol
#

code

  add dirt to {shoplist::*}
  add coarse dirt to {shoplist::*}
  add rooted dirt to {shoplist::*}

command /shop:reset:
  permission: op
  trigger:
    set {shop.item1} to a random element out of {shoplist::*}
    set {shop.item2} to a random element out of {shoplist::*}
    set {shop.item3} to a random element out of {shoplist::*}
    send "&fDaily Shop Items Reset"

command /shop:
  trigger:
    set {_gui} to a new chest inventory with 3 rows named "&8Daily Shop"
    set slot 11 of {_gui} to {shop.item1}
    set slot 13 of {_gui} to {shop.item2}
    set slot 15 of {_gui} to {shop.item3}
    open {_gui} to player

on inventory click:
  if name of event-inventory is "&8Daily Shop":
    if event-slot is dirt:
      send "&fTest1"
    if event-slot is coarse dirt:
      send "&fTest2"
    if event-slot is rooted dirt:
      send "&fTest3"```
#

i want the shop to reset daily with new items from the list and have different prices and so if you own an item it says owned in the lore and you cant buy it again

#

also items will be all trims and ores for tims and name tages(paper)

sharp thistle
#

now whats the problem

#

the buying part?

weak patrol
#

yea

#

well i can just take money from player and add the price to the lore

sharp thistle
#

exactly

weak patrol
#

do you know how i do the daily rotation thing

covert lion