Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to open the conquest, is not over #262

Closed
mowrnQQ opened this issue Nov 28, 2017 · 2 comments
Closed

Command to open the conquest, is not over #262

mowrnQQ opened this issue Nov 28, 2017 · 2 comments

Comments

@mowrnQQ
Copy link

mowrnQQ commented Nov 28, 2017

                case "攻城":
                    //更改了  自己对比下
                    if ((!IsGM && !Settings.TestServer) || parts.Length < 2) return;
                    int ConquestID;

                    if (parts.Length < 1)
                    {
                        ReceiveChat(string.Format("命令是 /攻城 [攻城ID]"), ChatType.System);
                        return;
                    }

                    if (MyGuild == null)
                    {
                        ReceiveChat(string.Format("你需要在一个公会开始一场战争"), ChatType.System);
                        return;
                    }
            
                    else if (!int.TryParse(parts[1], out ConquestID)) return;

                    ConquestObject tempConq = Envir.Conquests.FirstOrDefault(t => t.Info.Index == ConquestID);

                    if (tempConq != null)
                    {
                        tempConq.StartType = ConquestType.Forced;
                        tempConq.WarIsOn = !tempConq.WarIsOn;
                        tempConq.AttackerID = MyGuild.Guildindex;
                    }
                    hintstring = tempConq.WarIsOn ? "{0}攻城开始了." : "{0}攻城结束了.";
                    ReceiveChat(string.Format(hintstring, tempConq.Info.Name), ChatType.System);
                    SMain.Enqueue(string.Format(hintstring, tempConq.Info.Name));
                    break;

This modified command to open conquer the second input will be prompted to conquer the end

@mowrnQQ
Copy link
Author

mowrnQQ commented Nov 28, 2017

How to prompt for all

@mowrnQQ
Copy link
Author

mowrnQQ commented Nov 28, 2017

Conquer did not prompt the beginning and the end, only prompted by the administrator, why not let all players have tips

@mowrnQQ mowrnQQ closed this as completed Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant