Difference between revisions of "Wizhelp/Wstat"

From DikuMUD Wiki
Jump to navigation Jump to search
(Wstat: added the forms the code has (world dil, memory, account, creators, count; zone path/dil; groups ability, account, bank, ip), level 200, from act_wstat.cpp do_wstat)
(checked against the code)
 
Line 3: Line 3:
 
Usage:
 
Usage:
 
   wstat <unit> [group]
 
   wstat <unit> [group]
 +
  wstat <unit@zone> [group]
 
   wstat room [group]
 
   wstat room [group]
 
   wstat zone [zone name] [mobiles|objects|rooms|reset|errors|info|path|dil]
 
   wstat zone [zone name] [mobiles|objects|rooms|reset|errors|info|path|dil]
Line 19: Line 20:
 
   contents    : what the unit contains
 
   contents    : what the unit contains
 
   affects    : its affect structures
 
   affects    : its affect structures
−
   descriptor  : a player's connection data
+
   descriptor  : (not written yet)
 
   functions  : its special functions and DIL programs
 
   functions  : its special functions and DIL programs
 
   spells      : spells learned
 
   spells      : spells learned
Line 27: Line 28:
 
   extras      : extra descriptions
 
   extras      : extra descriptions
 
   quests      : quest information (players only)
 
   quests      : quest information (players only)
−
   info        : other extras: e-mail, maiden name, guilds, profession, ignore list
+
   info        : other extras: e-mail, maiden name, guilds, profession, ignore list (level 254 and up)
−
   account    : a player's account
+
   account    : a player's account (only when the game charges for playing)
 
   bank        : a player's bank
 
   bank        : a player's bank
−
   ip          : a player's addresses
+
   ip          : a player's last addresses (level 254 and up)
 
A group can be shortened: wstat fido dat.
 
A group can be shortened: wstat fido dat.
  
Line 36: Line 37:
 
   world            : the game as a whole; world zones lists all zones
 
   world            : the game as a whole; world zones lists all zones
 
   world dil [ms]    : the DIL programs of all zones that have run longer than ms milliseconds (the place to start with a slow game)
 
   world dil [ms]    : the DIL programs of all zones that have run longer than ms milliseconds (the place to start with a slow game)
−
   memory            : the server's memory use
+
   memory            : the event queue's statistics, and any unit that isn't inside anything
−
   account          : account totals
+
   account          : the accounting settings (only when the game charges for playing; else nothing)
 
   creators <name>  : the zones a builder made; creators all lists every zone and its creators
 
   creators <name>  : the zones a builder made; creators all lists every zone and its creators
 
   count <number>    : the first 40 units that hold at least that many units
 
   count <number>    : the first 40 units that hold at least that many units
−
   combat, splcombat : how a fight (or a spell) between two units would go
+
   combat, splcombat : how a fight (or a spell, acid breath if none is named) between two units
 +
                      would go; unit2 must be here (you, if left out), and if unit1 is
 +
                      fighting, its opponent is used
 +
  zone ... path    : not written yet
  
 
Examples:
 
Examples:
Line 57: Line 61:
 
Wstat displays everything about a unit. All of it at once would be several  
 
Wstat displays everything about a unit. All of it at once would be several  
 
screens per unit, so it is split into groups: the optional [group] chooses  
 
screens per unit, so it is split into groups: the optional [group] chooses  
−
what you see. It is logged.
+
what you see. A unit is found by name anywhere in the game, or by its
 +
symbolic name (janitor2@udgaard); if none is in the game, level 254 and up
 +
loads one, as {Wizhelp Load} does. It is logged.
  
  

Latest revision as of 21:41, 14 November 2026

Wstat (200)

Usage:

 wstat <unit> [group]
 wstat <unit@zone> [group]
 wstat room [group]
 wstat zone [zone name] [mobiles|objects|rooms|reset|errors|info|path|dil]
 wstat world [zones]
 wstat world dil [ms]
 wstat memory
 wstat account
 wstat creators <name>|all
 wstat count <number>
 wstat <unit1> combat <unit2>
 wstat <unit1> splcombat <unit2> [<spell name>]

Where [group] is:

 (nothing)   : the basic unit data
 data        : the data for the type of unit
 contents    : what the unit contains
 affects     : its affect structures
 descriptor  : (not written yet)
 functions   : its special functions and DIL programs
 spells      : spells learned
 skills      : skills learned
 weapons     : weapons mastered
 ability     : abilities
 extras      : extra descriptions
 quests      : quest information (players only)
 info        : other extras: e-mail, maiden name, guilds, profession, ignore list (level 254 and up)
 account     : a player's account (only when the game charges for playing)
 bank        : a player's bank
 ip          : a player's last addresses (level 254 and up)

A group can be shortened: wstat fido dat.

The others:

 world             : the game as a whole; world zones lists all zones
 world dil [ms]    : the DIL programs of all zones that have run longer than ms milliseconds (the place to start with a slow game)
 memory            : the event queue's statistics, and any unit that isn't inside anything
 account           : the accounting settings (only when the game charges for playing; else nothing)
 creators <name>   : the zones a builder made; creators all lists every zone and its creators
 count <number>    : the first 40 units that hold at least that many units
 combat, splcombat : how a fight (or a spell, acid breath if none is named) between two units
                     would go; unit2 must be here (you, if left out), and if unit1 is
                     fighting, its opponent is used
 zone ... path     : not written yet

Examples:

 wstat world
 wstat world zones
 wstat world dil 50
 wstat zone
 wstat zone rooms
 wstat fido
 wstat fido dat
 wstat fido func
 wstat room aff
 wstat fido combat janitor
 wstat fido splcombat janitor fireball

Wstat displays everything about a unit. All of it at once would be several screens per unit, so it is split into groups: the optional [group] chooses what you see. A unit is found by name anywhere in the game, or by its symbolic name (janitor2@udgaard); if none is in the game, level 254 and up loads one, as {Wizhelp Load} does. It is logged.


See Also:

> {Wizhelp Set}
> {Wizhelp Setskill}