Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.find("modem")
- modem.open(47603)
- local placeholderData = {
- cheetos = {
- price = 1,
- amount = 64,
- inStock = 135
- },
- funyuns = {
- price = 10,
- amount = 1,
- inStock = 475
- },
- doritos = {
- price = 1,
- amount = 128,
- inStock = 1963
- },
- netherite = {
- price = 32,
- amount = 1,
- inStock = 23
- },
- sand = {
- price = 1,
- amount = 128,
- inStock = 3719
- },
- dirt = {
- price = 0,
- amount = 64,
- inStock = 4829
- }
- }
- while true do
- local event, side, channel, replyChannel, message = os.pullEvent("modem_message")
- if(message == "getShop") then
- modem.transmit(replyChannel, 47601, placeholderData)
- end
- os.sleep(0.05)
- end
Advertisement
Add Comment
Please, Sign In to add comment