tfe-1.0/area/
tfe-1.0/files/
tfe-1.0/logs/
tfe-1.0/logs/immortal/
tfe-1.0/logs/mob/
tfe-1.0/logs/object/
tfe-1.0/logs/player/
tfe-1.0/logs/room/
tfe-1.0/notes/clans/
tfe-1.0/player/
tfe-1.0/prev/
tfe-1.0/prev/area/
tfe-1.0/prev/player/
tfe-1.0/prev/rooms/
tfe-1.0/rooms/
tfe-1.0/src-gc/
tfe-1.0/src-msvc/
tfe-1.0/src-unix/
tfe-1.0/www/
tfe-1.0/www/html/
#include "define.h"
#include "struct.h"


void* code_oload( void** argument )
{
  int       vnum  = (int) argument[0];
  obj_data*  obj;

  if( ( obj = create( get_obj_index( vnum ) ) ) != NULL ) 
    set_alloy( obj, 10 );

  return obj;
}


void* code_obj_value( void** argument )
{
  obj_data*  obj  = (obj_data*) argument[0];
  int          i  = (int)       argument[1];  

  if( obj == NULL ) {
    code_bug( "Obj_Value: Null object." );
    return NULL;
    }

  if( i < 0 || i > 3 ) {
    code_bug( "Obj_Value: Value out of range." );
    return NULL;
    }

  return (void*) obj->value[i];
}


void* code_junk_obj( void** argument )
{
  obj_data*     obj  = (obj_data*) argument[0];
  int             i  = (int)       argument[1];  

  if( obj == NULL ) {
    code_bug( "Junk_Obj: Null object." );
    return NULL;
    }

  if( i == NULL ) 
    obj->Extract( );
  else 
    obj->Extract( i );

  return NULL;
}