The Daily Click ::. Forums ::. Klik Coding Help ::. How to make an online PM system using Lacewing?
 

Post Reply  Post Oekaki 
 

Posted By Message

The MPP



Registered
  06/11/2017 15:06:39
Points
  1286
15th December, 2017 at 15/12/2017 22:17:48 -

I've been experimenting with online games for a while now and I would like to know how to make it so that you can send mail to other players and that they then can receive it. If it's possible I would also like to know how to make so that you can send mail to players that arn't even online. If you know how to do this, please post it in the comments.

 
Hello. Have a good day.

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
19th December, 2017 at 19/12/2017 18:52:06 -

There are a couple of ways to pull this off, and most of them require having a dedicated server.

To do this with Lacewing you'll need to create a protocol for communicating this to your server.

If you're not worried about security then you can just have the server accept all messages on a particular channel and then attach the username it's being sent to as part of the message.

Something like:

*from*|*to*|*subject*|*message*

Then parse it out and save it to a database or flat file, or just keep it in memory if you want.

Next when the user it's intended for connects they can send a message requesting all of their messages and your server can relay the messages back to them.


There is another way to do this however. It might be better not to use lacewing if you don't have to. You could setup a php script on a webhost and then have fusion make get requests to transmit and retrieve the messages. That's a little out of the scope of your question though.

Good Luck.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click