Example #1
0
        // AdviceBossPosition is called every n seconds, and updates all played on the current
        // location of the Boss.This is intended to be a negative aspect of being the Boss.
        // If there is no Boss, players are reminded how to become the Boss.
        // TODO: If there is no Boss, after x minutes, just promote someone.
        void AdviseBossPosition()
        {
            if (State.BossExists())
            {
                bool   moved;
                string bossCoords = locator.GridReference(State.Boss, out moved);

                if (moved)
                {
                    PrintToChat(Text.Broadcast_BossLocation_Moved, State.BossName, bossCoords);
                }
                else
                {
                    PrintToChat(Text.Broadcast_BossLocation_Static, State.BossName, bossCoords);
                }
            }
            else
            {
                PrintToChat(Text.Broadcast_ClaimAvailable);
            }
        }
Example #2
0
        void WhereCommand(BasePlayer player, string command, string[] args)
        {
            bool moved;

            PrintToChat(player, Text.YourLocation, liveLocator.GridReference(player, out moved));
        }