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-09-05 20:21:46, last edited by ParadoxInTheVoid (2015-09-05 21:15:58)

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

[Fixed?] Crown

My bot detects if a player gets a crown, remove it, then kills all the player so it can build the next level. But it just constantly kills all the players.

Here is the code.

if (m.Type == "k")
            {
                con.Send("say", "/removecrown");
                Thread.Sleep(27);
                con.Send("say", "/killemall");
            }

signature.png

Offline

#2 2015-09-05 20:41:55

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [Fixed?] Crown

What's the level you're using?

Offline

#3 2015-09-05 20:42:43

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

Re: [Fixed?] Crown

ninjasupeatsninja wrote:

What's the level you're using?

PW_n6sqv8SbkI?


signature.png

Offline

#4 2015-09-05 20:57:13

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Fixed?] Crown

Lol, con.Send("say", "/killemall"); "killemall" "kill em all" "kill them all"
Could do /help /killemall

It... kills them all...

/kill + players[m.GetInt(0)]


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#5 2015-09-05 21:15:31

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

Re: [Fixed?] Crown

Xfrogman43 wrote:

Lol, con.Send("say", "/killemall"); "killemall" "kill em all" "kill them all"
Could do /help /killemall

It... kills them all...

/kill + players[m.GetInt(0)]

no, no. I mean that even though a player doesn't get the crown everyone dies. I want everyone to die when a player gets the crown. But I know what the problem is, /removecrown makes the "k" message go off and keeps killing the players.


signature.png

Offline

#6 2015-09-05 21:17:23, last edited by hummerz5 (2015-09-05 21:18:25)

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

Re: [Fixed?] Crown

Good catch, but that's actually the intent of the developer. Odd wording, but delving deeper provides a different solution.

Paradox, the detail you're missing is the effect of /removecrown. How does EE tell the users that no one has the crown?

wow, the first time I ever legitimately need to not spoil something!

Edit: Well, you figured out half of it. You could've saved me some writing by actually giving a complete description in the OP. (Seems no one does that these days)

At any rate, if anyone scoffs at my response with "duh we knew that" just go.

Offline

#7 2015-09-05 22:17:53

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Fixed?] Crown

@humz duh we knew that

Like humz said, /removecrown makes the id -1 so you have to do something about that :q


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

Xfrogman431441487873538771

Board footer

Powered by FluxBB

[ Started around 1732459905.1788 - Generated in 0.049 seconds, 13 queries executed - Memory usage: 1.48 MiB (Peak: 1.61 MiB) ]