#include "define.h" #include "struct.h" #define EXTRACT_BLOOD 0 #define MAX_EXTRACTION 1 const char* extract_name [] = { "blood" }; void do_dig( char_data* ch, char* ) { send( "-- Command under construction. --\r\n", ch ); return; } void do_bury( char_data* ch, char* argument ) { obj_data* obj; if( *argument == '\0' ) { send( ch, "What do you wish to bury?\r\n" ); return; } if( ( obj = one_object( ch, argument, "bury", &ch->contents ) ) == NULL ) return; send( ch, "Command under construction.\r\n" ); return; } void do_extract( char_data* ch, char* argument ) { char arg [ MAX_INPUT_LENGTH ]; int i; // obj_data* obj; // obj_data* container; argument = one_argument( argument, arg ); for( i = 0; i < MAX_EXTRACTION; i++ ) if( !strcasecmp( arg, extract_name[i] ) ) break; if( i == MAX_EXTRACTION ) { send( "That isn't something you can extract from anything.\r\n", ch ); return; } if( *argument == '\0' ) { send( ch, "From what do you wish to extract %s from?\r\n", extract_name[i] ); return; } /* if( ( obj = one_thing( ch, argument, ch ) ) == NULL ) { send( ch, "The object you wish to extract %s from is not here.\r\n", extract_name[i] ); return; } if( i == EXTRACT_BLOOD ) { if( obj->pIndexData->item_type != ITEM_CORPSE_NPC ) { send( "You can only extract blood from corpses.\r\n", ch ); return; } if( ( container = get_eq_char( ch, WEAR_HOLD ) ) == NULL || container->pIndexData->item_type != ITEM_DRINK_CON ) { send( "You need to be holding a liquid container to extract\ blood.\r\n", ch ); return; } fsend( ch, "You extract into %s as much blood as possible from %s.\r\n", container, obj ); } */ return; }