This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
amalafrozalam's profile picture

Mailbox System, but not email

Started by amalafrozalam, 22 June 2014 - 11:59 PM
amalafrozalam #1
Posted 23 June 2014 - 01:59 AM
So like the title says, I want to have a sort of mailbox system set up in my spawn area, where players can come in and say put an item in the chest. Then I was trying to figure out how to get a computer to recognize that something is now in that chest, and then alert the receiving player "You've got mail."

I'm relatively new to ComputerCraft so I have no idea where to start really. First off, some context, I'm using the CrackPack modpack, so I only have ComputerCraft and OpenCCPeripherals (in terms of dedicated ComputerCraft mods). So I was thinking, the chests could be set and labeled, and using Peripheral Proxies and wired modems, check to see if the chests' inventories have changed. Then the computer running the system would be able to figure out which mailbox it is, and therefore which user it is. This is where things get a little hairy. I have no idea how to get the computer to at this point message the user to tell them, hey come check out your mailbox. Is this even possible?

Any advice or ideas are more than appreciated! Thank you!
Writer #2
Posted 22 August 2014 - 04:53 PM
So, do you want a server thing or only a client thing? Because you said 'Then the computer running the system would be able to figure out which mailbox it is, and therefore which user it is', so, it's only one computer? Also, you have, with CC and OP, 3 options: the mensage apearing on the computer, the mensage apearing on a pocket computer or the mensage apearing in a terminal glasses. Which one do you want to use? Also, which version of the CC are you using? And yes, it makes a diference.
Dragon53535 #3
Posted 22 August 2014 - 10:18 PM
If you're wanting to have the message appear in chat to someone, i don't believe i know of any addons that add that in.
KingofGamesYami #4
Posted 22 August 2014 - 11:02 PM
If you're wanting to have the message appear in chat to someone, i don't believe i know of any addons that add that in.
MoarPeripherals chatbox?
Bomb Bloke #5
Posted 23 August 2014 - 01:22 AM
MoarPeripherals chatbox?

I was gonna say "good luck finding a modpack that uses the required version of ComputerCraft", but it looks like the CrackPack does, in fact, use the required version of ComputerCraft.
Dragon53535 #6
Posted 23 August 2014 - 01:28 AM
If you're wanting to have the message appear in chat to someone, i don't believe i know of any addons that add that in.
MoarPeripherals chatbox?

I stand corrected then, i looked at the syntax as i thought it had a max range, and apparently i guess it can be infinite, well then good to know :P/>