Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2017-03-21 16:04:17

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

[Question] How can I detect when a player sends "init2"?

If a bot sends a greeting, they usually send it right as they hear "add".
However, this will filter the message to the very top of the player's chat.

Is there a proper way to detect when the player has sent "init2" besides doing something funky/weird/non-api-correct e.g. listening for "m" put a teamblock and wait for that to be recieved wait 2 seconds after you hear "add" e.t.c?

Offline

#2 2017-03-21 18:46:26, last edited by LukeM (2017-03-21 18:47:10)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: [Question] How can I detect when a player sends "init2"?

Not that I know of... Although this would be really useful //forums.everybodyedits.com/img/smilies/big_smile

Your best option is probably to just check for the first 'm' message, but as you say, this isnt a very neat way of doing it

Usually when you see someone connect, they fall to the ground, then suddenly teleport to where they originally started (theyve sent their first m message), which would show that they've connected, I cant think of any other way that doesnt require timing or anything actually inside the world //forums.everybodyedits.com/img/smilies/sad

Offline

#3 2017-03-21 20:41:14

drunkbnu
Formerly HG
Joined: 2017-08-16
Posts: 2,306

Re: [Question] How can I detect when a player sends "init2"?

Isn't 'add' sent to the other players after you send 'init2'?

Offline

#4 2017-03-21 20:57:07

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: [Question] How can I detect when a player sends "init2"?

HG wrote:

Isn't 'add' sent to the other players after you send 'init2'?

I think its after you send init 1, because even if you have a bot that never sends init2, then the bot still appears for other players

Offline

Wooted by: (2)
LukeM1490126227651846

Board footer

Powered by FluxBB

[ Started around 1711714662.165 - Generated in 0.037 seconds, 12 queries executed - Memory usage: 1.38 MiB (Peak: 1.48 MiB) ]