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.
Pages: 1
How do I check the players that are already in the world? I want to add them to a list too.
Offline
if(m.Type == "add")
{
list.Add(m.getString(1));
}
make sure you sent init2 in init;
if you can read this....good for you
Offline
Send init2 when your message init executes. Then look for the add message.
Offline
I mean the players that ALREADY are in the level when the bot joins.
Offline
If you wish to know if they joined before you, check see if their User ID is less than yours, if it's more then they joined after.
Lame!
Offline
If you wish to know if they joined before you, check see if their User ID is less than yours, if it's more then they joined after.
I cannot get their ID in an "add" message then... it's in the worlddata, but I can't seem to be able to decompile it
Offline
Their ID should be m.GetInt(0) in "add"
Lame!
Offline
In "add" it gets the people who join when the bot IS in the level. I want to get players that the bot doesn't add because they joined before the bot. e.g. Somebody joins the world, I connect the bot
Offline
Send init2 when your message init executes. Then look for the add message.
did you read this?
Lame!
Offline
When you join with the bot and send the "init2" message Everybody Edits responds to you with "init" message and then "add" message for each player that is already in the world. This means that "add" is used for players that are already in the world and for these who join later.
As cjmaeder said if you check their id, then these players that have lower ID than yours (received from "init") joined before you and these with higher came later.
Offline
When the "init" event is send to your bot, sent "init2" to the server.
Once you have send "init2", you will receive all events to keep you upto date with the server, under which all "add" events from all the players that have joined before you.
Edit:
Seems like Thanel beat me here...
Offline
i sent init 2... I HAVE IT... now what?!
Offline
oh wait i think i found it out
When the "init" event is send to your bot, sent "init2" to the server.
Once you have send "init2", you will receive all events to keep you upto date with the server, under which all "add" events from all the players that have joined before you.Edit:
Seems like Thanel beat me here...
Offline
YES IT WROKED*!!! OMG THX!!!!!!!!!!
*worked
Offline
YES IT WROKED*!!! OMG THX!!!!!!!!!!
*worked
You can also get things like old messages, the status of all switches for all players and some other stuff I don't know out of my head.
Offline
Pages: 1
[ Started around 1732484106.0634 - Generated in 0.068 seconds, 12 queries executed - Memory usage: 1.48 MiB (Peak: 1.63 MiB) ]