View Full Version : [SOLVED] Disconnect player

07-07-2014, 01:16 AM
Hi , i have any problem in my core... I git cloned eluna today and compiled normal code with crossfaction script ( littlecarl )

Now i have one bug when player use arena petition a lot of times crash the player requested.

Ex :

Create arena team ( get the petition )
Spamm request player signature
Player requested get disconnect.

07-07-2014, 02:16 AM
Are you sure it is just a coincidence? Did you test it thoroughly to see if it was that, that was causing the client to be disconnected? You could create a certain time system and make it so players can't show the petition to the same player more than once in so many minutes.

HandleOfferPetitionOpcode (https://github.com/TrinityCore/TrinityCore/blob/e26a8efb4b90d949695196d1186b5d32e074d225/src/server/game/Handlers/PetitionsHandler.cpp#L623) is where it is located (the showing request for X to join X's team.)

Example of the timer can be found in this post I made awhile back (ignore the sql queries as it doesn't pertain to what I'm referring to:) http://emudevs.com/showthread.php/2529-timer-issues?p=17505&viewfull=1#post17505 - The paste link in that post (http://paste.emudevs.com/?paste=96) shows a map "AbuseList" that handles time between players using THAT specific item. NOW, you can use the same setup, but make it so you can send the petition signing to the same player after doing it once for another few minutes to avoid this disconnection problem.

07-07-2014, 03:02 AM
I checked with many different people , all time worked . Player get dc when requested a lot of times

07-07-2014, 06:12 AM
This should be reported to TC.
If you enable the packet logging (debug level?)
You should see that ppl are kicked by the antidos.

The packets that the user sends when inviting are not limited (100 packets can be sent)
But all the other packets seem to be limited to 10 and 3.


07-07-2014, 06:27 AM
rochet , have any "hacked" method to use to fix temporaly ?

I want to try tommy method's but idk how to use GetMSTimeDiffToNow function ; /

07-07-2014, 06:58 AM
find out which opcode it is, with loggers for example etc or just guess.
Then add the opcode to the list if it doesnt exist or edit the position it currently is in:


The function just returns a number for each opcode. the number is the number of packets one can send.

07-07-2014, 07:00 AM
This should be reported to TC.

I tell people to do that all the time, but they still come here to report issues that need to be brought to TC's attention. :/

(http://emudevs.com/faq.php?faq=trinitycorefaq#faq_gomakeanissueontcfa q)