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-08-12 22:32:41

cercul1
Member
From: USA
Joined: 2015-02-18
Posts: 91

[Question] Differentiating between my bot and me

How would I differentiate between the two so that I can teleport that one I need to.


Om_1869ea_249353.jpg

Offline

Wooted by:

#2 2017-08-12 23:11:39

John
Member
Joined: 2019-01-11
Posts: 2,011

Re: [Question] Differentiating between my bot and me

cercul1 wrote:

How would I differentiate between the two so that I can teleport that one I need to.

You can't unfortunately. //forums.everybodyedits.com/img/smilies/sad


Miss Everybody Edits? Check out PixelWalker.net!
9b5xehU.png
[imghttps://mm.sirjosh3917.com/PW?scale=1img]

Offline

Wooted by:

#3 2017-08-12 23:12:47, last edited by cercul1 (2017-08-12 23:12:59)

cercul1
Member
From: USA
Joined: 2015-02-18
Posts: 91

Re: [Question] Differentiating between my bot and me

I wasn't sure, that's alright.  I guess storing the position of the bot will work. Thank you


Om_1869ea_249353.jpg

Offline

#4 2017-08-12 23:15:09

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Question] Differentiating between my bot and me

cercul1 wrote:

I wasn't sure, that's alright.  I guess storing the position of the bot will work. Thank you

Or just get ID when you move, as long as the bot isn't moving (put bot in god mode)


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#5 2017-08-12 23:43:36

cercul1
Member
From: USA
Joined: 2015-02-18
Posts: 91

Re: [Question] Differentiating between my bot and me

Xfrogman43 wrote:
cercul1 wrote:

I wasn't sure, that's alright.  I guess storing the position of the bot will work. Thank you

Or just get ID when you move, as long as the bot isn't moving (put bot in god mode)

I need to teleport the bot though...


Om_1869ea_249353.jpg

Offline

#6 2017-08-13 01:33:36

Tomahawk
Forum Mod
From: UK
Joined: 2015-02-18
Posts: 2,847

Re: [Question] Differentiating between my bot and me

cercul1 wrote:

I need to teleport the bot though...

Just send an "m" packet with the coordinates you want it to "teleport" to.


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

Wooted by: (2)

#7 2017-08-13 02:07:25

John
Member
Joined: 2019-01-11
Posts: 2,011

Re: [Question] Differentiating between my bot and me

Oh I misunderstood. I thought he was having issues with the /teleport command. (Teleporting bot instead of himself.)

As others have mentioned above send the "m" packet, with the X and Y position. (Be sure to multiply your coordinates by 16!)


Miss Everybody Edits? Check out PixelWalker.net!
9b5xehU.png
[imghttps://mm.sirjosh3917.com/PW?scale=1img]

Offline

Wooted by:

#8 2017-08-13 06:24:41

cercul1
Member
From: USA
Joined: 2015-02-18
Posts: 91

Re: [Question] Differentiating between my bot and me

Well I need to do more than teleport, that was one example


Om_1869ea_249353.jpg

Offline

#9 2017-08-13 10:33:08, last edited by LukeM (2017-08-13 10:33:25)

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

Re: [Question] Differentiating between my bot and me

cercul1 wrote:

Well I need to do more than teleport, that was one example

You can get the bots ID in the init message if you need to distinguish between the bot and player's messages, but there is no way to make a command specify one of the two. IIRC it targets the player thats been in the world the longest, so you can only target one of the two. If you really need to target both seperately with commands, the only way would be to use two different accounts, then you dont have the problem of two players having the same name.

Offline

#10 2017-08-13 12:22:58

Tomahawk
Forum Mod
From: UK
Joined: 2015-02-18
Posts: 2,847

Re: [Question] Differentiating between my bot and me

^ Yeah I think it always chooses the player with the lower ID, because they're stored in whatever collection in the order that they joined the world.


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

Wooted by: (2)
Tomahawk1502623378672980

Board footer

Powered by FluxBB

[ Started around 1732964892.2007 - Generated in 0.045 seconds, 10 queries executed - Memory usage: 1.52 MiB (Peak: 1.69 MiB) ]