documentation.js 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. module.exports = class Documentation {
  2. help(room, mobile, input) {
  3. if(input.join(" ").trim().length == 0) {
  4. libs.Output.toMobile(mobile.id, "The basic commands are:");
  5. libs.Output.toMobile(mobile.id, "look, say, get, drop, give, help, inventory, who");
  6. libs.Output.toMobile(mobile.id, "bug, feature, buglist, wishlist");
  7. libs.Output.toMobile(mobile.id, "save, chpass, hint, quit");
  8. libs.Output.toMobile(mobile.id, "If you want more detailed information on any command, type help [topic]");
  9. return true;
  10. }
  11. var topic = input.join(" ").trim();
  12. switch(topic) {
  13. case "help":
  14. libs.Output.toMobile(mobile.id, "If you want more detailed information on any command, type help [topic]");
  15. libs.Output.toMobile(mobile.id, "Not seeing what you're looking for? Try sending a message to the server admin.");
  16. return true;
  17. }
  18. }
  19. hello(room, mobile, input) {
  20. libs.Output.toMobile(mobile.id, "If you would like to communicate to someone, try typing");
  21. libs.Output.toMobile(mobile.id, "\t{green}say hello{/green}");
  22. libs.Output.toMobile(mobile.id, "If you are having difficulty in playing, please read the help files");
  23. libs.Output.toMobile(mobile.id, "\t{green}help{/green}");
  24. return true;
  25. }
  26. mud_getErrorMessage() {
  27. return "The knowledge of the universe {error}eludes{/error} you.";
  28. }
  29. };