Difference between revisions of "Manual:DIL Manual/zoneptr"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
−
==zoneptr==
+
<span id="zptr"></span>
−
Type:  zoneptr
 
  
−
A pointer to a zone.
+
'''Type:  '''<i><!--CODE-->zoneptr</i><!--ENDCODE-->
 +
'''Zone Pointer Fields'''
  
−
===Zone Pointer Fields===
 
  
−
  '''next'''
+
<!--TERM--> '''next'''
−
    unitptr - pointer to next zoneptr
+
<!--DEFINITION-->        unitptr - pointer to next zoneptr
−
  '''previous'''
+
<!--TERM--> '''previous'''
−
    unitptr - pointer to previous zone
+
<!--DEFINITION-->        unitptr - pointer to previous zone
−
  '''creators'''
+
<!--TERM--> '''creators'''
−
    stringlist - list of creators
+
<!--DEFINITION-->        stringlist - list of creators
−
  '''name'''
+
<!--TERM--> '''name'''
−
    string - zone name (%zone)
+
<!--DEFINITION-->        string - zone name (%zone)
−
  '''title'''
+
<!--TERM--> '''title'''
−
    string - zone title (title "")
+
<!--DEFINITION-->        string - zone title (title "")
−
  '''rooms'''
+
<!--TERM--> '''rooms'''
−
    unitptr - pointer to the base room
+
<!--DEFINITION-->        unitptr - pointer to the base room
−
  '''objs'''
+
<!--TERM--> '''objs'''
−
    unitptr - pointer to the base objects of the zone
+
<!--DEFINITION-->        unitptr - pointer to the base objects of the zone
−
  '''npcs'''
+
<!--TERM--> '''npcs'''
−
    unitptr - pointer to base NPCs of the zone
+
<!--DEFINITION-->        unitptr - pointer to base NPCs of the zone
−
  '''resetmode'''
+
<!--TERM--> '''resetmode'''
−
    integer- reset mode of zone in 'values.h'
+
<!--DEFINITION-->        integer- reset mode of zone in 'values.h'
−
  '''resettime'''
+
<!--TERM--> '''resettime'''
−
    integer - the reset time of the zone
+
<!--DEFINITION-->        integer - the reset time of the zone
−
  '''access'''
+
<!--TERM--> '''access'''
−
    integer - the access level of the zone
+
<!--DEFINITION-->        integer - the access level of the zone
−
  '''loadlevel'''
+
<!--TERM-->  '''loadlevel'''
−
    integer - the loadlevel of the zone
+
<!--DEFINITION-->        integer - the loadlevel of the zone
−
  '''payonly'''
+
<!--TERM-->  '''payonly'''
−
    integer - the paystatus of the zone
+
<!--DEFINITION-->        integer - the paystatus of the zone
−
  '''roomcount'''
+
<!--TERM-->  '''roomcount'''
−
    integer - the number of rooms in a zone
+
<!--DEFINITION-->        integer - the number of rooms in a zone
−
  '''objcount'''
+
<!--TERM-->  '''objcount'''
−
    integer - the numbner of objects in a zone
+
<!--DEFINITION-->        integer - the numbner of objects in a zone
−
  '''npccount'''
+
<!--TERM-->  '''npccount'''
−
    integer - the number of npcs/mobiles in a zone
+
<!--DEFINITION-->        integer - the number of npcs/mobiles in a zone
−
  '''fname'''
+
<!--TERM-->  '''fname'''
−
    string - the filename of a zone
+
<!--DEFINITION-->        string - the filename of a zone
−
  '''notes'''
+
<!--TERM-->  '''notes'''
−
    string - the Zone Notes
+
<!--DEFINITION-->        string - the Zone Notes
−
  '''help'''
+
<!--TERM-->  '''help'''
−
    string - the Zone Help
+
<!--DEFINITION-->        string - the Zone Help
  
  
−
The 'zoneptr' works like a unitptr. To get the first zoneptr in the global list of zones you use 'zhead'.
+
  The 'zoneptr' works like a unitptr. To get the first zoneptr in the global
 +
list of zones you use 'zhead'.
 +
'''Example: '''<i><!--CODE-->zoneptr := zhead();</i><!--ENDCODE-->
 +
'''Zone list command'''
 +
<i><!--CODE-->
 +
---~---~---~---~---~---~---~---~---
  
−
=== example ===
+
dilbegin zonelist (arg:string);
−
  dilbegin zonelist (arg:string);
+
var
−
  var
+
  z:zoneptr;
−
    z:zoneptr;
+
  buf:string;
−
    buf:string;
+
code
−
  code
+
dilend
−
  {
+
 
−
    z:=zhead();
+
 
−
    while (z)
+
 
−
    {
+
---~---~---~---~---~---~---~---~---
−
      buf:="Name:  "+z.name+"&amp;n";
+
 
−
      buf:=buf+"Filename: "+z.fname+"&amp;n";
+
</i><!--ENDCODE-->
−
      buf:=buf+"Creator: "+z.creators.[0]+"&amp;n";
+
<span id="zptr"></span>
−
      buf:=buf+"Notes:  &amp;n"+z.notes+"&amp;n&amp;n";
+
 
−
      z:=z.next;
+
'''Type:  '''<i><!--CODE-->zoneptr</i><!--ENDCODE-->
−
    }
+
'''Zone Pointer Fields'''
−
    pagestring (buf,self);
+
 
−
    quit;
+
 
−
  }
+
<!--TERM-->  '''next'''
−
  dilend
+
<!--DEFINITION-->        unitptr - pointer to next zoneptr
 +
<!--TERM-->  '''previous'''
 +
<!--DEFINITION-->        unitptr - pointer to previous zone
 +
<!--TERM-->  '''creators'''
 +
<!--DEFINITION-->        stringlist - list of creators
 +
<!--TERM-->  '''name'''
 +
<!--DEFINITION-->        string - zone name (%zone)
 +
<!--TERM-->  '''title'''
 +
<!--DEFINITION-->        string - zone title (title "")
 +
<!--TERM-->  '''rooms'''
 +
<!--DEFINITION-->        unitptr - pointer to the base room
 +
<!--TERM-->  '''objs'''
 +
<!--DEFINITION-->        unitptr - pointer to the base objects of the zone
 +
<!--TERM-->  '''npcs'''
 +
<!--DEFINITION-->        unitptr - pointer to base NPCs of the zone
 +
<!--TERM-->  '''resetmode'''
 +
  <!--DEFINITION-->        integer- reset mode of zone in 'values.h'
 +
<!--TERM-->  '''resettime'''
 +
<!--DEFINITION-->        integer - the reset time of the zone
 +
<!--TERM-->  '''access'''
 +
<!--DEFINITION-->        integer - the access level of the zone
 +
<!--TERM-->  '''loadlevel'''
 +
<!--DEFINITION-->        integer - the loadlevel of the zone
 +
<!--TERM-->  '''payonly'''
 +
<!--DEFINITION-->        integer - the paystatus of the zone
 +
<!--TERM-->  '''roomcount'''
 +
<!--DEFINITION-->        integer - the number of rooms in a zone
 +
<!--TERM-->  '''objcount'''
 +
<!--DEFINITION-->        integer - the numbner of objects in a zone
 +
<!--TERM-->  '''npccount'''
 +
<!--DEFINITION-->        integer - the number of npcs/mobiles in a zone
 +
<!--TERM-->  '''fname'''
 +
<!--DEFINITION-->        string - the filename of a zone
 +
<!--TERM-->  '''notes'''
 +
<!--DEFINITION-->        string - the Zone Notes
 +
<!--TERM-->  '''help'''
 +
  <!--DEFINITION-->        string - the Zone Help
 +
 
 +
 
 +
  The 'zoneptr' works like a unitptr. To get the first zoneptr in the global
 +
list of zones you use 'zhead'.
 +
'''Example: '''<i><!--CODE-->zoneptr := zhead();</i><!--ENDCODE-->
 +
'''Zone list command'''
 +
<i><!--CODE-->
 +
---~---~---~---~---~---~---~---~---
 +
 
 +
dilbegin zonelist (arg:string);
 +
  var
 +
  z:zoneptr;
 +
  buf:string;
 +
code
 +
dilend
 +
 
 +
 
 +
 
 +
  ---~---~---~---~---~---~---~---~---
 +
 
 +
  </i><!--ENDCODE-->

Latest revision as of 22:38, 4 December 2025

Type:  zoneptr
Zone Pointer Fields


  next
         unitptr - pointer to next zoneptr
  previous
         unitptr - pointer to previous zone
  creators
         stringlist - list of creators
  name
         string - zone name (%zone)
  title
         string - zone title (title "")
  rooms
         unitptr - pointer to the base room
  objs
         unitptr - pointer to the base objects of the zone
  npcs
         unitptr - pointer to base NPCs of the zone
  resetmode
         integer- reset mode of zone in 'values.h'
  resettime
         integer - the reset time of the zone
  access
         integer - the access level of the zone
  loadlevel
         integer - the loadlevel of the zone
  payonly
         integer - the paystatus of the zone
  roomcount
         integer - the number of rooms in a zone
  objcount
         integer - the numbner of objects in a zone
  npccount
         integer - the number of npcs/mobiles in a zone
  fname
         string - the filename of a zone
  notes
         string - the Zone Notes
  help
         string - the Zone Help


  The 'zoneptr' works like a unitptr.  To get the first zoneptr in the global
list of zones you use 'zhead'.
Example: zoneptr := zhead();
Zone list command

---~---~---~---~---~---~---~---~---
dilbegin zonelist (arg:string);
var
 z:zoneptr;
 buf:string;
code

dilend


---~---~---~---~---~---~---~---~---

Type:  zoneptr
Zone Pointer Fields


  next
         unitptr - pointer to next zoneptr
  previous
         unitptr - pointer to previous zone
  creators
         stringlist - list of creators
  name
         string - zone name (%zone)
  title
         string - zone title (title "")
  rooms
         unitptr - pointer to the base room
  objs
         unitptr - pointer to the base objects of the zone
  npcs
         unitptr - pointer to base NPCs of the zone
  resetmode
         integer- reset mode of zone in 'values.h'
  resettime
         integer - the reset time of the zone
  access
         integer - the access level of the zone
  loadlevel
         integer - the loadlevel of the zone
  payonly
         integer - the paystatus of the zone
  roomcount
         integer - the number of rooms in a zone
  objcount
         integer - the numbner of objects in a zone
  npccount
         integer - the number of npcs/mobiles in a zone
  fname
         string - the filename of a zone
  notes
         string - the Zone Notes
  help
         string - the Zone Help


  The 'zoneptr' works like a unitptr.  To get the first zoneptr in the global
list of zones you use 'zhead'.
Example: zoneptr := zhead();
Zone list command

---~---~---~---~---~---~---~---~---
dilbegin zonelist (arg:string);
var
 z:zoneptr;
 buf:string;
code

dilend


---~---~---~---~---~---~---~---~---