Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] Tech Support → Increasing number of letters for chat but only for a certain account?

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 5

1 (edited by Topaz 09.08.2017 03:54)

Topic: Increasing number of letters for chat but only for a certain account?

a

2

Re: Increasing number of letters for chat but only for a certain account?

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".

Do not ask for support in PM.

3

Re: Increasing number of letters for chat but only for a certain account?

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

Do not ask for support in PM.

4

Re: Increasing number of letters for chat but only for a certain account?

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?

Do not ask for support in PM.

5

Re: Increasing number of letters for chat but only for a certain account?

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

Post's attachments

Attachment icon masswhisper.lua 855 b, 3 downloads since 2017-07-19 

Do not ask for support in PM.

Posts: 5

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 1 guest, 0 registered users

forums.pvpgn.pro → [EN] Tech Support → Increasing number of letters for chat but only for a certain account?



Generated in 0.075 seconds (85% PHP - 15% DB) with 20 queries