Manual:DIL Manual/payonly

From DikuMUD Wiki
Jump to navigation Jump to search

payonly

Field (integer, read-only; on a zoneptr).

z.payonly : integer

Whether the zone is only for paying players: the sixth column of vme/etc/zonelist (0 when missing). With accounting on in the server, a mortal player who doesn't connect from the local network is kept out of the zone's rooms by these values:

Value Kept out
0 Nobody
1 Players without credit
2 Players without a running flat rate
3 Players who have credit or a running flat rate

Notes

  • With accounting off nobody is kept out, whatever the value.
  • The help area command (helpzon.zon) tells whether the current zone is restricted.
  • It can't be assigned (vmc: "Illegal lvalue").
  • On a null zoneptr it fails.

Example

dilbegin string pay_text(z : zoneptr);
code
{
   if (z == null)
      return ("");
   if (z.payonly)
      return ("This area is restricted to people with donation status.");
   return ("This area is not restricted.");
}
dilend

Tells whether a zone is restricted, as help area does in helpzon.zon.

See also