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.

#26 Before February 2015

Ang3L
Member
Joined: 2015-06-13
Posts: 121

Re: Help in bot pls!

Is there any way you could share the base code for the bot?
I've been trying stuff and nothing worked out with other base codes...
Thank you, and if you can't do it I understand //forums.everybodyedits.com/img/smilies/smile

Offline

#27 Before February 2015

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

Re: Help in bot pls!

He should must share the code to those who want. If not he have really moral issues.

Last edited by The Doctor (Dec 8 2014 6:31:20 am)


Everybody edits, but some edit more than others

Offline

#28 Before February 2015

912468
Member
Joined: 2015-02-21
Posts: 212
Website

Re: Help in bot pls!

lrussell wrote:
912468 wrote:

... For the blue coins, look here ...

That isn't needed anymore, since adding blue coin doors they send a message like orange coins do.

Oh ok, I didn't know that, it's probably much easier like that //forums.everybodyedits.com/img/smilies/smile


vF0MA5o.png

Offline

#29 Before February 2015

benedanika
Guest

Re: Help in bot pls!

912468 wrote:

Hi Benedanika

I saw that there were a few things not solved, so here's the code for things I know:

Look wich level a player has:

if (m.Type == "add") {     player.level=m.GetInt(12); }

Potions:

if (m.Type == "p") {     userID = m.GetInt(0);     potionID = m.GetInt(1);     active = m.GetBoolean(2); }

giving godmode is actually in chat:

connection.Send("say", "/giveedit " + playername);

Other things that aren't in chat:
*Change Smiley:

connection.Send(worldkey + "f", smileyID);

*Quickchat:

connection.Send("autosay", textID);

*Get edit:

connection.Send("access", code);

*Enable / Disable god mode:

connection.Send("god", true or false);

*Get the trophy:

connection.Send("levelcomplete");

*Open / Close world:
     to open:
             

connection.Send("say", "/visible true");

     to close:
             

connection.Send("say", "/visible false");

For the coins you just count one up to the player.
For the blue coins, look here

I hope this information helped. //forums.everybodyedits.com/img/smilies/wink

912468

To the others: My code would be a TON of code, because I already have stuff like godmode, etc...

912468 wrote:

if (m.Type == "add")
{
     player.level=m.GetInt(12);
}

Thanks! But what's the code for getting a level in the game too? It could count how much levels/magic coins are gathered on the level with the bot online. Otherwise, almost 100% solved.

912468 wrote:

Potions:

if (m.Type == "p") {     userID = m.GetInt(0);     potionID = m.GetInt(1);     active = m.GetBoolean(2); }

Ok, I'll use that later. I'll mark that as not tested.

912468 wrote:

giving godmode is actually in chat:

connection.Send("say", "/giveedit " + playername);

It gives the person edit, not godmode. I want godmode without edit. With cheat engine it is possible, but I don't want to tell them to download a program and use it just so they could have non-edit godmode.

912468 wrote:

Change Smiley:

connection.Send(worldkey + "f", smileyID);

Found that already with source.

912468 wrote:

Quickchat:

connection.Send("autosay", textID);

Same here.

912468 wrote:

Get edit:

connection.Send("access", code);

And here.

912468 wrote:

Enable / Disable god mode:

connection.Send("god", true or false);

This too. Infact, this one is ALREADY in my bot.

912468 wrote:

Get the trophy:

connection.Send("levelcomplete");

This one is in source too...

912468 wrote:

Open / Close world:
     to open:
             

connection.Send("say", "/visible true");

     to close:
             

connection.Send("say", "/visible false");

Finally one that wasn't in the source. Well, thanks for that one. (btw that's in chat?)

912468 wrote:

For the coins you just count one up to the player.
For the blue coins, look here

...

I know you've been helping me lately, but sometimes you can also look in the source if they are in. Fine, it's here:
Source

#30 Before February 2015

912468
Member
Joined: 2015-02-21
Posts: 212
Website

Re: Help in bot pls!

benedanika wrote:

Finally one that wasn't in the source. Well, thanks for that one. (btw that's in chat?)

Yes, that one was originally, before they added the button, in chat.

benedanika wrote:

I know you've been helping me lately, but sometimes you can also look in the source if they are in. Fine, it's here:
Source

Yes, but since I didn't know if you knew this site, I just putted it inbetween...

Well, I hope you'll finish your bot soon //forums.everybodyedits.com/img/smilies/wink
912468


vF0MA5o.png

Offline

#31 Before February 2015

Ang3L
Member
Joined: 2015-06-13
Posts: 121

Re: Help in bot pls!

benedanika wrote:

To the others: My code would be a TON of code, because I already have stuff like godmode, etc...

Doesnt really matter... only if you dont want to give it out.

Offline

#32 Before February 2015

benedanika
Guest

Re: Help in bot pls!

so what i need now, is word by word chat checking...

#33 Before February 2015

912468
Member
Joined: 2015-02-21
Posts: 212
Website

Re: Help in bot pls!

benedanika wrote:

so what i need now, is word by word chat checking...

To check every word that is said in chat, you have to use this code:

private void onMessage(object sender, PlayerIOClient.Message m) {     if (m.Type == "say")     {         string chat = m.GetString(1);         string[] wordbywordchat = chat.Split(new char[] { ' ' });          foreach (string word in wordbywordchat) //loops for every word in the array         {             if (word == "hi") //or any word you like             {                 con.Send("say", "Hello");                 break; //You don't have to place this, but it makes it faster, as it doesn't search any further once it has found the word             }         }     } }

I hope this helped. //forums.everybodyedits.com/img/smilies/big_smile
912468


vF0MA5o.png

Offline

#34 Before February 2015

ewoke
Member
Joined: 2015-02-20
Posts: 412

Re: Help in bot pls!

912468 wrote:
benedanika wrote:

so what i need now, is word by word chat checking...

To check every word that is said in chat, you have to use this code:

private void onMessage(object sender, PlayerIOClient.Message m) {     if (m.Type == "say")     {         string chat = m.GetString(1);         string[] wordbywordchat = chat.Split(new char[] { ' ' });          foreach (string word in wordbywordchat) //loops for every word in the array         {             if (word == "hi") //or any word you like             {                 con.Send("say", "Hello");                 break; //You don't have to place this, but it makes it faster, as it doesn't search any further once it has found the word             }         }     } }

I hope this helped. //forums.everybodyedits.com/img/smilies/big_smile
912468

that checks every word in a sentence, fe if i say: bla bla hi it still would say hello
i thnik you want the first word wich can be:

if(m.GetString(1).StartsWith("Hi ")){dostuff}

Last edited by ewoke (Dec 15 2014 7:21:09 am)


if you can read this....good for you

Offline

#35 Before February 2015

benedanika
Guest

Re: Help in bot pls!

Thank you both, now I can do it!
Working on it, I'll say a new post if it worked in a !bgcolor command

#36 Before February 2015

benedanika
Guest

Re: Help in bot pls!

Oh wait, I found it. Also the !bgcolor works. Thank you all!

#37 Before February 2015

benedanika
Guest

Re: Help in bot pls!

Now something more loyal to the C# program itself, how to say a string with a character in it replaced/removed?

benedanika 1423758916202516

Board footer

Powered by FluxBB

[ Started around 1714053118.6823 - Generated in 0.058 seconds, 10 queries executed - Memory usage: 1.55 MiB (Peak: 1.72 MiB) ]