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.

Advertisement

Hello, visitor! These forums are run off of the revenue generated from these ads. If you'd like to support us, please whitelist us or consider donating:

#1 2017-08-12 22:32:41

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

[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

Emalton
Member
From: USA ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-06-16
Posts: 745

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. sad


LA1wvOC.png
?type=location&name=Emalton

Thanks Latif for the avatar and Amds for the signature!

Online

Wooted by:

#3 2017-08-12 23:12:47

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

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

Last edited by cercul1 (2017-08-12 23:12:59)


Om_1869ea_249353.jpg

Offline

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

Xfrogman43
Member
From: My mom's insides
Joined: 2015-02-15
Posts: 3,241

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)


YaoTT4C.pngDarkcomet=best doge
image4.png?uid=4673131&m=0
Hit <10K on 1/21/17

Offline

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

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

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
Member
From: England
Joined: 2015-02-18
Posts: 1,066

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.

Online

Wooted by:

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

Emalton
Member
From: USA ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-06-16
Posts: 745

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!)


LA1wvOC.png
?type=location&name=Emalton

Thanks Latif for the avatar and Amds for the signature!

Online

Wooted by:

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

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

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

destroyer123
Member
From: England
Joined: 2016-06-03
Posts: 920

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.

Last edited by destroyer123 (2017-08-13 10:33:25)

Offline

Wooted by:

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

Tomahawk
Member
From: England
Joined: 2015-02-18
Posts: 1,066

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.

Online

Wooted by:
Tomahawk1502623378672980

Board footer

Powered by FluxBB

[ Started around 1503440618.6788 - Generated in 0.049 seconds, 12 queries executed - Memory usage: 1.18 MiB (Peak: 1.32 MiB) ]