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 2015-04-07 17:41:27

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

[Question] "touch" message

Processor posted here:
http://forums.everybodyedits.com/viewtopic.php?id=27166
this:

Processor wrote:
Message.Create("touch", UserId, PotionId);

But i can't seem to make it work.
Any help?

if (m.GetInt(7) == 1 && m.GetInt(8) == 0) // right
                        {
                            if (blockEffectsLBOX.Items.Contains(blockIDs[0, X + 1, Y]))
                            {
                                con.Send("touch", player[m.GetInt(0)].userid, blockEffectsLBOX.Items[blockEffectsLBOX.Items.IndexOf(blockIDs[0, X + 1, Y]) + 1]);
                            }
                        }
                        else if (m.GetInt(7) == -1 && m.GetInt(8) == 0) // left
                        {
                            if (blockEffectsLBOX.Items.Contains(blockIDs[0, X - 1, Y]))
                            {
                                con.Send("touch", player[m.GetInt(0)].userid, blockEffectsLBOX.Items[blockEffectsLBOX.Items.IndexOf(blockIDs[0, X - 1, Y]) + 1]);
                            }
                        }
                        else if (m.GetInt(7) == 0 && m.GetInt(8) == 1) // down
                        {
                            if (blockEffectsLBOX.Items.Contains(blockIDs[0, X, Y + 1]))
                            {
                                con.Send("touch", player[m.GetInt(0)].userid, blockEffectsLBOX.Items[blockEffectsLBOX.Items.IndexOf(blockIDs[0, X, Y + 1]) + 1]);
                            }
                        }
                        else if (m.GetInt(7) == 0 && m.GetInt(8) == -1) // up
                        {
                            if (blockEffectsLBOX.Items.Contains(blockIDs[0, X, Y - 1]))
                            {
                                con.Send("touch", player[m.GetInt(0)].userid, blockEffectsLBOX.Items[blockEffectsLBOX.Items.IndexOf(blockIDs[0, X, Y - 1]) + 1]);
                            }
                        }

http://i.imgur.com/bjvgH5L.png?1

Offline

#2 2015-04-07 18:46:46, last edited by Zumza (2015-04-07 18:46:59)

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,645

Re: [Question] "touch" message

Huh?

blockEffectsLBOX.Items[blockEffectsLBOX.Items.IndexOf(blockIDs[0, X + 1, Y]) + 1]

what is this?


Everybody edits, but some edit more than others

Offline

#3 2015-04-07 19:26:49

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: [Question] "touch" message

Zumza wrote:

Huh?

blockEffectsLBOX.Items[blockEffectsLBOX.Items.IndexOf(blockIDs[0, X + 1, Y]) + 1]

what is this?

blockEffectsLBOX is a list box wich contains user input textboxes:
'Block ID' , 'Potion ID' in this order:

"
id
potionid
"

http://i.imgur.com/bjvgH5L.png?1

Offline

#4 2015-04-07 19:57:04

Thanel
Member
Joined: 2015-02-18
Posts: 713

Re: [Question] "touch" message

You need to have zombie potion active to make the touch message work.

Offline

#5 2015-04-07 20:21:41

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,645

Re: [Question] "touch" message

If you are not zombie / cursed this will not work.
First buy the portion and drink it.

Host.Send(Host.WorldMap.Key + "p", Potion);

And then:

Host.Send("touch", Player.ID, Potion);

Everybody edits, but some edit more than others

Offline

Wooted by:

#6 2015-04-07 21:40:39

Anch
Member
Joined: 2015-02-16
Posts: 5,447

Re: [Question] "touch" message

Thanel wrote:

You need to have zombie potion active to make the touch message work.

What about the curse potion?

Offline

#7 2015-04-07 22:09:52, last edited by DarkDragon4900 (2015-04-07 22:11:22)

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: [Question] "touch" message

I'm not really sure but you're using "con.Send" and it seems processor's instructions clearly showed that it's "Message.Create".

[Edit]

anch159 wrote:
Thanel wrote:

You need to have zombie potion active to make the touch message work.

What about the curse potion?

The same goes with the curse potion.

Offline

#8 2015-04-07 22:37:16

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: [Question] "touch" message

DarkDragon4900 wrote:

I'm not really sure but you're using "con.Send" and it seems processor's instructions clearly showed that it's "Message.Create".

[Edit]

anch159 wrote:
Thanel wrote:

You need to have zombie potion active to make the touch message work.

What about the curse potion?

The same goes with the curse potion.

the thing is
con = Connection

con.Send creates a message

Message.Create is invalid


http://i.imgur.com/bjvgH5L.png?1

Offline

#9 2015-04-07 22:42:20

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: [Question] "touch" message

marcoantonimsantos wrote:

the thing is
con = Connection
con.Send creates a message
Message.Create is invalid

I'm unsure about whether they're the same or not but,
it isn't invalid.
PlayerIOClient does contain a Create void.
Besides, trying doesn't hurt.

Offline

#10 2015-04-07 22:46:14

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: [Question] "touch" message

DarkDragon4900 wrote:
marcoantonimsantos wrote:

the thing is
con = Connection
con.Send creates a message
Message.Create is invalid

I'm unsure about whether they're the same or not but,
it isn't invalid.
PlayerIOClient does contain a Create void.
Besides, trying doesn't hurt.

omg u rlli no listenomgomg

k srs,
i'm telling it's invalid cause i tried and we can't access that method.
Try urself.


http://i.imgur.com/bjvgH5L.png?1

Offline

#11 2015-04-07 23:16:22

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: [Question] "touch" message

I see.
And I might try it once i've got my things done.

Offline

#12 2015-04-08 09:36:22

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,645

Re: [Question] "touch" message

Message.Create - BotBits
Connection.Send - PlayerIO Client
Host.Send - BlackSea API


Everybody edits, but some edit more than others

Offline

#13 2015-04-08 10:27:48

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: [Question] "touch" message

Zumza wrote:

Message.Create - BotBits
Connection.Send - PlayerIO Client
Host.Send - BlackSea API

Not really, the PlayerIOClient.Message (@PlayerIOClient.dll) does have a "Create" void.

Offline

#14 2015-04-08 11:21:28

goeyfun
Member
From: Mighty Japan
Joined: 2015-02-18
Posts: 667

Re: [Question] "touch" message

con.Send("touch", XXX, XXX); works


Ug3JzgO.png

Offline

#15 2015-04-08 16:33:35

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: [Question] "touch" message

Lock.

Edited by Zoey2600 or something at ???, tommorow:

Zoey2600 wrote:

Locked by user request.
If you feel to unlock this thread be free to PM me.


http://i.imgur.com/bjvgH5L.png?1

Offline

realmaster421428507215492327

Board footer

Powered by FluxBB

[ Started around 1714717181.3513 - Generated in 0.107 seconds, 12 queries executed - Memory usage: 1.63 MiB (Peak: 1.83 MiB) ]