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-12-30 21:05:19

Real_Naa2001
Member
Joined: 2015-10-24
Posts: 16

How to make your bot know if someone died

I just want to know because my way is not working out.
This is what I'm doing:

  #region killed
            if (m.Type == "kill")
            {
                int userid = m.GetInt(0);//Use userid to see if they died
                say("You died!");
            }
            #endregion 

I'm not really trying here, but I still need help because this is my only way to do it for me.


SHUT AND LISTEN!!!

giphy.gif

Offline

#2 2015-12-30 21:20:53

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: How to make your bot know if someone died

not sure if that's used any longer. did some research (wow m8) and only got tele messages.
You should do your own research. It's faster. Easier than writing a forum post.

also, beware the regions. just saying.

even if you're "not really trying here" you can always try... //forums.everybodyedits.com/img/smilies/big_smile

Offline

#3 2015-12-30 21:51:09, last edited by Tomahawk (2015-12-30 21:51:33)

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

Re: How to make your bot know if someone died

You can write a little test code activated by a checkbox or whatever which writes the names of every message it receives in a list. If you set it to ignore the common spammy ones like "m", "show" and "hide", you can see which EE actions cause which messages.


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:

#4 2015-12-30 22:08:51

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: How to make your bot know if someone died

that, or just use a console. 200% threadsafe
then it's just pattern recognition. "Gee, every time I move, this weird "m" packet shows up. Then... these "show/hide" messages keep going by. I wonder why they happen every 5 seconds. Oh, and then there's that weird "updatemeta" message. What on earth could that possibly be telling me, what with weird information like "Untitled World" and "1" showing up?"

Offline

Wooted by:
hummerz51451509731571753

Board footer

Powered by FluxBB

[ Started around 1732453351.4967 - Generated in 0.043 seconds, 12 queries executed - Memory usage: 1.39 MiB (Peak: 1.5 MiB) ]