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: 77

[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
Guest

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

Wooted by:

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

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

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: need to find a new home
Joined: 2015-02-15
Posts: 4,085

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: 77

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: BiH
Joined: 2015-02-18
Posts: 1,555

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:

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

John
Guest

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

Wooted by:

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

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

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

LukeM
Dev Team
From: England
Joined: 2016-06-03
Posts: 2,110
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.

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


- Luke Miles

Offline

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

Tomahawk
Member
From: BiH
Joined: 2015-02-18
Posts: 1,555

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:
Tomahawk1502623378672980

Board footer

Powered by FluxBB

[ Started around 1532118979.1017 - Generated in 0.025 seconds, 12 queries executed - Memory usage: 1.26 MiB (Peak: 1.41 MiB) ]