Jump to content

SPAM MOUNT BUG (CTRL+F)


Go to solution Solved by Mr.Black,

Recommended Posts

  • Premium

Hello, I found a bug when you use this system:

Spoiler

 

 

You can spam ctrl f g and you create lag on the server like this:

 

Spoiler

int MountSpam = ch->GetQuestFlag("mount.spam");
if (MountSpam)
{
    /* code */
    if (get_global_time() < MountSpam + 5)
    {
        /* code */
        ch->ChatPacket(CHAT_TYPE_INFO, "WAIT 5 SECONDS");
        return;
    }
}
ch->SetQuestFlag("mount.spam", get_global_time());

 

 

Spoiler

Edited by Metin2 Dev
Core X - External 2 Internal

plague.png.1f5de75b42146262dcd655a5a8078

Link to comment
Share on other sites

  • Premium
13 minutes ago, Gurgarath said:

tell me more

I thought I solved it but it still an problem.

but I dont know how to make it when you go up to it 5 times after that it will block you 5 seconds.

 

Edit:

int MountSpam = ch->GetQuestFlag("mount.spam");
if (MountSpam)
{
	/* code */
	if (get_global_time() < MountSpam + 5)
	{
		/* code */
		ch->ChatPacket(CHAT_TYPE_INFO, "WAIT 5 SECONDS");
		return;
	}
}
ch->SetQuestFlag("mount.spam", get_global_time());

 

@Gurgarath

Edited by DemOnJR
  • Love 1

plague.png.1f5de75b42146262dcd655a5a8078

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.