PHP Classes

File: wellermud.changes.resets.php

Recommend this page to a friend!
  Classes of JImmy Bo   Weller MUD Area Loader   wellermud.changes.resets.php   Download  
File: wellermud.changes.resets.php
Role: Auxiliary script
Content type: text/plain
Description: Example .changes. file
Class: Weller MUD Area Loader
Parse and manipulate Weller MUD map area files
Author: By
Last change: cleaned up top comment
Date: 10 years ago
Size: 1,341 bytes
 

Contents

Class file image Download
<?php

/*
  0 =>
  array (
    'comment' => 'the priest',
    'command' => 'load mobile room',
    'vnum' =>
    array (
      'mob' => '3405',
      'room' => '3405',
    ),
    'data' => 'M 0 3405 1 3405 1',
  ),

*/

/*
    This is an example changes.php file.
    This one is made for chapel.are in the stock rom code. So you would drop this into the directory
        test_world\chapel.are
    .. of a stock Rom 2.4 code parse with PHP ROM MUD Area Loader.
    You add a changes file to the mud to store your non-destructive changes to your areas...
   
    The correct filename is wellermud.changes.[what you wish to change].php
    eg)
        wellermud.changes.resets.php
        wellermud.changes.rooms.php
        wellermud.changes.mobs.php
        wellermud.changes.objects.php
   
*/

$area["chapel.are"]["resets"][] =
  array (
   
'comment' => 'the priest',
   
'command' => 'load mobile room',
   
'vnum' =>
    array (
     
'mob' => '3405',
     
'room' => '3405',
    ),
   
'data' => 'M 0 3405 1 3405 1'
 
);
 

// CAN EVEN SCRIPT WITH PHP TO HELP KILL REDUNDANCY
for($i=0;$i<5;$i++)
   
$area["chapel.are"]["resets"][] =
      array (
       
'comment' => 'the priest',
       
'command' => 'load mobile room',
       
'vnum' =>
        array (
         
'mob' => '3405',
         
'room' => '3405',
        ),
       
'data' => 'M 0 3405 1 3405 1'
     
);