Class ShowCommand
Object
NormalCommand
ShowCommand
- All Implemented Interfaces:
Command, ItemCommand
Showing an item to a bot. Syntax : show <item> to <character>.
The one reason why this is useful is when you wish to know the value of a
certain item.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides the item to a shopkeeper for appraisal.Methods inherited from class NormalCommand
getAdminService, getChatService, getEventsService, getGuildService, getHelpService, getItemService, getLogService, getPersonService, getRegExpr, parseCommand, parseCommand, setCallback
-
Constructor Details
-
ShowCommand
-
-
Method Details
-
run
Provides the item to a shopkeeper for appraisal. There are a couple of requirements that need to be met, before a successful appraisal takes place.- command struct. should be "show <item> to <character>", for example: "show gold ring to Karcas".
- shopkeeper buying the item should
- exist,
- be in the same room and
- have a god==4 to indicate "shopkeeper"
- the customer should have the item
- the shopkeeper mentions how much he/she would give for the item.
- continue with next item
- Specified by:
runin interfaceCommand- Specified by:
runin classNormalCommand- Parameters:
command- the String containing the full command.aUser- the character doing the showing.- Returns:
- DisplayInterface to display to the user, if it returns null, it means the command was unsuccessfull.
- Throws:
ItemException- in case the appropriate items could not be properly processed.ParseException- if the item description or the number of items requested is illegal.MudException- if something goes wrong.
-