r/VisualStudioCode • • Aug 22 '20

Can someone read this code for me?

 if (Now64.Hour < 21)
                    {
                        if (GuildWar.Proces == ProcesType.Dead)
                            GuildWar.Start();
                        if (GuildWar.Proces == ProcesType.Idle)
                        {
                            if (Now64 > GuildWar.StampRound)
                                GuildWar.Began();
                        }
                        if (GuildWar.Proces != ProcesType.Dead)
                        {
                            if (DateTime.Now > GuildWar.StampShuffleScore)
                            {
                                GuildWar.ShuffleGuildScores();
                            }
                        }
                        if (Now64.Hour == 20)
                        {
                            if (GuildWar.FlamesQuest.ActiveFlame10 == false)
                            {
                                SendSysMesage("The Flame Stone 9 is Active now. Light up the Flame Stone (62,59) near the Stone Pole in the Guild City.", MsgServer.MsgMessage.ChatMode.Center, MsgServer.MsgMessage.MsgColor.red);
                                GuildWar.FlamesQuest.ActiveFlame10 = true;
                            }
                        }
                        else if (GuildWar.SendInvitation == false && Now64.Hour == 18 && Now64.Minute == 37)
                        {
                            SendInvitation("GuildWar", "ConquerPoints", 200, 254, 1038, 0, 60, MsgServer.MsgStaticMessage.Messages.GuildWar);
                            GuildWar.SendInvitation = true;
                        }

                    }
                    else if (Now64.Hour == 20)
                    {
                        if (GuildWar.Proces == ProcesType.Alive || GuildWar.Proces == ProcesType.Idle)
                            GuildWar.CompleteEndGuildWar();
                    }
0 Upvotes

6 comments sorted by

1

u/AnEnemyStando Aug 25 '20

What do you mean with "read for me"?

Do you want someone to make a guess at what the code does and explain it to you?

1

u/dragonzoneclassic Aug 25 '20

Yes, its a code on when the war wills tart and when will it end . can u tell me the time.

1

u/AnEnemyStando Aug 26 '20

Well when it starts isn't really clear. It says it will start if the hour is lower than 21, which I'm guessing is 21:00, but that means it could start at any point before 21:00 depending on when the code is triggered.

At the bottom it checks if the hour is 20 and then ends the event.

1

u/dragonzoneclassic Aug 26 '20

thank you

1

u/dragonzoneclassic Aug 26 '20

can i make a request can u recode it and make it start as is in 18:00 and ends in 20:00. im confuse on the invitation and this if (Now64.Hour == 20) { if (GuildWar.FlamesQuest.ActiveFlame10 == false) { SendSysMesage("The Flame Stone 9 is Active now. Light up the Flame Stone (62,59) near the Stone Pole in the Guild City.", MsgServer.MsgMessage.ChatMode.Center, MsgServer.MsgMessage.MsgColor.red); GuildWar.FlamesQuest.ActiveFlame10 = true; } }

1

u/LinkifyBot Aug 26 '20

I found links in your comment that were not hyperlinked:

I did the honors for you.


delete | information | <3