| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 28 online users. » 0 Member(s) | 27 Guest(s) Bing
|
| Latest Threads |
Last Chaos Server Sale
Forum: The Black Market (Buy, Sell, Trade)
Last Post: XWrongX2
01-26-2026, 11:07 PM
» Replies: 3
» Views: 608
|
All in One Exporter
Forum: Tools
Last Post: Kain88
01-25-2026, 07:04 AM
» Replies: 4
» Views: 425
|
HELP! ReZasCashServer It ...
Forum: Ep4 Support
Last Post: Kain88
01-24-2026, 03:24 PM
» Replies: 2
» Views: 160
|
Hi, does anyone know the ...
Forum: Help
Last Post: Desarija
01-21-2026, 11:29 AM
» Replies: 1
» Views: 112
|
LastChaos Nemesis
Forum: Server Advertising
Last Post: Desarija
01-20-2026, 04:06 PM
» Replies: 3
» Views: 234
|
Looking for EP4 Guidance
Forum: General Discussion
Last Post: xHypnosiaa
01-19-2026, 08:33 AM
» Replies: 1
» Views: 169
|
We're in need of creative...
Forum: Project Recruitment
Last Post: RGT
01-16-2026, 12:48 AM
» Replies: 0
» Views: 116
|
Last Chaos build deployme...
Forum: Ep4 Guides
Last Post: xHypnosiaa
01-08-2026, 11:14 AM
» Replies: 0
» Views: 73
|
Last Chaos global server ...
Forum: Ep4 Guides
Last Post: xHypnosiaa
01-07-2026, 07:01 PM
» Replies: 0
» Views: 31
|
EP-2/EP-3 Mixed files
Forum: Archived General Server Releases
Last Post: TeKnodE
01-06-2026, 09:53 PM
» Replies: 1
» Views: 295
|
|
|
| Chat Spam Prevention |
|
Posted by: dethunter12 - 11-20-2021, 08:36 PM - Forum: Ep4 Guides
- No Replies
|
 |
This code is to prevent the user from spamming the chat every x seconds flooding the chat window.
Each chat has a different interval:
You'll need to edit the following files:
Character.h
DoFuncChat.cpp
PC.cpp
1. Character.h
Add these varaibles after
m_shoutPulse;
add this:
int m_sayPulse;
int m_guildPulse;
int m_partyPulse;
int m_lordPulse;
int m_expiditionPulse;
2.DoFuncChat.cpp
after this:
CDratanCastle * pCastle = CDratanCastle::CreateInstance();
switch (chatType)
{
case MSG_CHAT_SAY: // �Ϲ�
write this:
//user can only chat every 2 seconds in this window
if (gserver->m_pulse - ch->m_sayPulse <= 0)
return;
ch->m_sayPulse = gserver->m_pulse + (2 * PULSE_REAL_SEC);
Next case
MSG_CHAT_PARTY
//after this
{
if (ch->IsParty())
{
//Add this
if (gserver->m_pulse - ch->m_partyPulse <= 0)
return;
ch->m_partyPulse = gserver->m_pulse + (3 * PULSE_REAL_SEC);
Next case
MSG_CHAT_EXPEDITION
//after this
if (ch->IsExped())
{
//Add this
if (gserver->m_pulse - ch->m_expiditionPulse <= 0)
return;
ch->m_expiditionPulse = gserver->m_pulse + (3 * PULSE_REAL_SEC);
Next case
case MSG_CHAT_GUILD: // ���
//After this
{
if (ch->m_guildInfo)
{
//Add this
if (gserver->m_pulse - ch->m_guildPulse <= 0)
return;
ch->m_guildPulse = gserver->m_pulse + (3 * PULSE_REAL_SEC);
Next case
case MSG_CHAT_LORD: // ���� ����
//After this
if ( !IS_PC(ch) ) return; //dethunter12
if (CWarCastle::CanLordChat(ch))
{
//Add this
if (gserver->m_pulse - ch->m_lordPulse <= 0)
return;
ch->m_lordPulse = gserver->m_pulse + (2 * PULSE_REAL_SEC);
3.PC.cpp
//After this
m_shoutPulse = gserver->m_pulse;
//Add this
m_sayPulse = gserver->m_pulse;
m_guildPulse = gserver->m_pulse;
m_partyPulse = gserver->m_pulse;
m_lordPulse = gserver->m_pulse;
m_expiditionPulse = gserver->m_pulse;
Again this code is only intended to prevent the user from sending to many messages in 1 chat window per second . If you think this code is useful give it a like.
|
|
|
| Pet Bug (June Files) |
|
Posted by: PTR321 - 11-08-2021, 12:38 PM - Forum: Ep4 Support
- Replies (9)
|
 |
Hi,
i have a bug with the P2 Pets in the June Files so if i have equipped a P1 pet sometimes it also equips or shows me that i have equipped 2 Pets P1 and P2 Pet but just if i have another Pet in my Inventory. it looks like this
does anyone know the fix for this bug?
/monthly_2021_11/Screenshot_244.png.ed8c140029b605dde1663432e41afda4.png" />
|
|
|
| Artifact event with GM orders ? |
|
Posted by: Matt Hias - 11-07-2021, 01:27 PM - Forum: General Discussion
- Replies (1)
|
 |
Hello. one question can you start and stop the artifact event with a GM command? or can something be built and how?
I always think it's stupid to restart the server because of this event.
this contribution has no priority.
Thanks very much
|
|
|
|