Topic: Increasing number of letters for chat but only for a certain account?
a
PvPGN Community Forums |
forums.pvpgn.pro → [EN] Tech Support → Increasing number of letters for chat but only for a certain account?
a
Flood protection is disabled for admins by default. Number of letters is limited in game clients, so it can not be increased.
You can ignore flood protection for specified user accounts in Lua event "handle_command_before".
For instance, it was implemented for ghost bots https://github.com/pvpgn/pvpgn-server/b … ua#L65-L83
To make it working you can just set in config.lua "ghost = true" and define nicknames in "ghost_bots".
I assume, you meant that "//bot message" translated into "/w nickname message", and consequently a nickname eats several symbols.
But why do you need an external bot, if you can do the same from only pvpgn?
BTW, this task fits the Lua script well
By a global chat you mean only that a player send "//bot message" and this text message translated into "/w nickname message" to all his friends?
Well, I realized what did you mean. You have to change the following options in bnetd.conf:
quota_wrapline = 255
quota_maxline = 255
What about the Lua script, I just wrote a simple command.
The attached file can be placed into lua/command/masswhisper.lua and then define this command in handle_command.lua for "1"st command group:
local lua_command_table = {
[1] = {
...
["/masswhisper"] = command_masswhisper, ["/mw"] = command_masswhisper,
...
After that users will be able to use it like:
/mw sometext
forums.pvpgn.pro → [EN] Tech Support → Increasing number of letters for chat but only for a certain account?