ArchaicQuest / ArchaicQuest-II

ArchaicQuest II :dragon: is a multiplayer text based RPG known as a Multi User Dungeon (MUD) that is playable from your browser.
https://www.archaicquest.com
MIT License
132 stars 22 forks source link

Add Where Command #24

Closed LiamKenneth closed 3 years ago

LiamKenneth commented 4 years ago

The where command shows the player other players in the area and the room they're in. This is to help collaboration and RP but also used to find PK targets

if there are players:

where
<area name>
Players near you:
<Player name>  <Room Name>
<Player name>  <Room Name>

if no players:

Where
<area name>
Players near you:
None

The player can only see visible players, if someone is invisible they are only seen in 'where' if the player has detect invis on. (detect invis should be an affect flag that already exists)

Syntax: where

'where' will list details about the current area and the locations of all visible players within it.

Add 'where', 'whe' to the switch case in commands.cs to call the class that deals with the 'where' command