documentation.js 1.2 KB

123456789101112131415161718192021222324252627282930
  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, "save, chpass, hint, quit");
  7. libs.Output.toMobile(mobile.id, "If you want more detailed information on any command, type help [topic]");
  8. return true;
  9. }
  10. var topic = input.join(" ").trim();
  11. switch(topic) {
  12. case "help":
  13. libs.Output.toMobile(mobile.id, "If you want more detailed information on any command, type help [topic]");
  14. libs.Output.toMobile(mobile.id, "Not seeing what you're looking for? Try sending a message to the server admin.");
  15. return true;
  16. }
  17. }
  18. hello(room, mobile, input) {
  19. libs.Output.toMobile(mobile.id, "If you would like to communicate to someone, try typing");
  20. libs.Output.toMobile(mobile.id, "\t{green}say hello{/green}");
  21. libs.Output.toMobile(mobile.id, "If you are having difficulty in playing, please read the help files");
  22. libs.Output.toMobile(mobile.id, "\t{green}help{/green}");
  23. return true;
  24. }
  25. mud_getErrorMessage() {
  26. return "The knowledge of the universe {error}eludes{/error} you.";
  27. }
  28. };