cormallenroad4.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. module.exports = class ZebedeeCormallenRoad4 {
  2. constructor() {
  3. this.id = this.constructor.name;
  4. this.name = "Cormallen Road East";
  5. this.description = "The wide cobbled road continues to the east and west. To your south a large wooden building has an almost endless stream of scruffy adventurer-types entering and exiting. There is a {hint}placard{/hint} above the entryway. A smaller shop to the north has some advertisements for the price of goods bought or sold, as well as a 'help wanted' {hint}sign{/hint}.";
  6. this.filename = "zebedee/cormallenroad4.js";
  7. this.type = "room";
  8. this.items = [];
  9. this.mobiles = [];
  10. this.roomExpires = 0;
  11. this.resetDelay = 6000000;
  12. this.roomExits = ["north", "south", "east", "west"];
  13. }
  14. mud_reset(time) {
  15. libs.Output.toRoom(this.id, "The street bustles with foot traffic.");
  16. this.roomExpires = time + this.resetDelay;
  17. }
  18. mud_tick(time) {
  19. if(time >= this.roomExpires) {
  20. this.mud_reset(time);
  21. }
  22. }
  23. mud_getName() {
  24. return this.name;
  25. }
  26. mud_getDescription() {
  27. return this.description;
  28. }
  29. look(room, mobile, input) {
  30. switch(input[0]) {
  31. case "sign":
  32. libs.Output.toMobile(mobile.id, "A small red-lettered sign is pressed against a dusty window corner. 'Help Wanted' implies that this shop might be {hint}hiring{/hint} for someone to help them.");
  33. return true;
  34. case "placard":
  35. libs.Output.toMobile(mobile.id, "\t\t+--------------------------------+\r\n\t\t| The Zebedee Adventurer's Guild |\r\n\t\t+--------------------------------+");
  36. return true;
  37. }
  38. }
  39. east(room, mobile, input) {
  40. world.mud_moveMobile(mobile.id, this.id, "ZebedeeCormallenRoad5", "leaves east");
  41. return true;
  42. }
  43. west(room, mobile, input) {
  44. world.mud_moveMobile(mobile.id, this.id, "ZebedeeCormallenRoad2", "leaves west");
  45. return true;
  46. }
  47. north(room, mobile, input) {
  48. world.mud_moveMobile(mobile.id, this.id, "ZebedeeShop", "enters the shop");
  49. return true;
  50. }
  51. south(room, mobile, input) {
  52. world.mud_moveMobile(mobile.id, this.id, "ZebedeeAdventurerGuild", "pushes past the crowds and into the guild");
  53. return true;
  54. }
  55. };