• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Private message system.

I got another idea. Load messages from specified player:
PHP:
/read Test
and limit number of messages from one player or make time limit between messages (like 10 seconds, who really need to send spam?), and add level limit, because 'new chars' can spam informations about their 'new extra cool servers online' :thumbup:

EDIT:
@darkhaos

PHP:
local message = string.gsub(string.gsub(param[1], messageSenderSep, 'HAXOR'), messageSep, 'HAXOR')
Is it not needed?
PHP:
			if getPlayerByNameWildcard(param[2]) then
				doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received a new private message.")
As someone reported. It send both messages to cid.
PHP:
if doPlayerAddMessage(param[2], param[1], cid) and playerExists(param[2]) then
Why do you check if player exist when function doPlayerAddMessage check it?
 
Last edited:
I got another idea. Load messages from specified player:
PHP:
/read Test
and limit number of messages from one player or make time limit between messages (like 10 seconds, who really need to send spam?), and add level limit, because 'new chars' can spam informations about their 'new extra cool servers online' :thumbup:

EDIT:
@darkhaos

PHP:
local message = string.gsub(string.gsub(param[1], messageSenderSep, 'HAXOR'), messageSep, 'HAXOR')
Is it not needed?
PHP:
			if getPlayerByNameWildcard(param[2]) then
				doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received a new private message.")
As someone reported. It send both messages to cid.
PHP:
if doPlayerAddMessage(param[2], param[1], cid) and playerExists(param[2]) then
Why do you check if player exist when function doPlayerAddMessage check it?

1. Good idea, i'll work on that.
2. I think you can add level limit or exhaust by yourself, is not too hard.
3. What is that of HAXOR?, didn't understand
4. Fixed, my bad (:
5. You are right, double checking removed.
 
Why not just add a new table for messages would be much better in size, modifications, sorting, etc..
 
Back
Top