示例#1
0
        public override bool OnBeforeFarmLoad(Bot.GameSession session)
        {
            foreach (Script script in ScriptManager.Instance.Scripts)
                if (!script.OnBeforeFarmLoad(session))
                    return false;

            session.ServerSession.Sequence = 1;

            if (!session.LoadWorld())
                return false;

            foreach (Script script in ScriptManager.Instance.Scripts)
                if (!script.OnFarmLoad(session))
                    return false;

            return true;
        }