|
There's a thing called idle logout packet.
Fuck me. I don't understand you people at all.
Why do you all keep going through the trouble to cheapfix content that wouldn't need to be cheapfixed if only it was written correctly?
There is an AFK packet for starters - After a certain time of inactivity, the client will send the given packet and the server SHOULD disconnect the person upon receiving it.
Moving on from that though, the problem here seems to be (in this specific case) evil trees - that's what I read from the OP. Why don't you instead of writing broken content actually write something functional and enjoyable for the players? Evil trees already do stop the players from AFKing - the roots spawn every minute or so and stun the player, stopping the action. How about writing the content properly once and for all? I haven't really seen a single piece of content in this RS2 section that's been written properly with the exception of a few show-off threads, but of course that code is not going to be released.
What, there's literally a packet for being idle?
leaving rune-server - admins can't even mind their own business and insist on ham-fisting their own practices onto their users as-if anyone asked their irrelevant, presumptuous opinions
then they mute when their repeated spamming of irrelevant responses, that are specifically not wanted, is called stupid
Last edited by Arbalist; 02-12-2021 at 11:37 PM.
There is no such as thing called AFK/idle packet, that would be a stupid thing to do. There is loads of good code has been released, but people don't look at 'em, they want everything ready and easy for 'em to maintain;
OT: Quite better solution to prevent AFKers
store a transient int in your player class called afkTicks, increase that variable on each logic tick the player has processed,
on certain packets like mouse_move, key_typed, camera_moved reset the variable, check after each tick if the player has more than the allowed amount of afk ticks, if so, kick.
It may not be the best, but that is what would I personally do.
Oh geez..
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |