Znote / POTCP

(P)HP (O)pen (T)ibia (C)lient (P)rotocol
MIT License
9 stars 6 forks source link

Send and retrieve private messages #1

Open Znote opened 5 years ago

Znote commented 5 years ago

The ability to send private messages to in-game users. The ability to read incoming messages from in-game users.

divinity76 commented 5 years ago

what should the function name for sending a PM to someone be tho?

say_to() ? PM() ? private_message() ? something else?

Znote commented 5 years ago

Could it be a third parameter in the normal say function? (if it is false which is default, its a regular say message, if it contains channelid/player name/whatever it sends to the appropriate channel)?

There are probably exceptions to catch, if your muted, if reciever is offline etc.

Or just make say_channel, say_private functions, whatever floats your boat. 👍