//
// C Implementation: craftsman
//
// Description:
//
//
// Author: robert <robert@localhost>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "mud.h"
void do_select_tree( CHAR_DATA * ch, char *argument )
{
return;
}
void do_chop_tree( CHAR_DATA * ch, char *argument )
{
return;
}
void do_mill_lumber( CHAR_DATA * ch, char *argument )
{
return;
}
void do_craft_object( CHAR_DATA * ch, char *argument )
{
return;
}
#define OBJ_VNUM_SUITABLE_TREE 100
#define OBJ_VNUM_CHOPPED_TREE 101
/* coded aug 2005 tommi teaching losan *//*
void do_lumberjack( CHAR_DATA *ch, char *argument )
{
if ( IS_NPC (ch) )
{
send_to_char ( "Mobiles cannot use this command.\n\r", ch );
return;
}
if ( ch->in_room->sector_type != SECT_FOREST)
{
send_to_char ( "You aren't in a forest.\n\r", ch);
return;
}
if ( argument[0] == '\0')
{
send_to_char ( "Syntax: Lumberjack search/chop/process.\n\r", ch);
WAIT_STATE ( ch , 3 );
return;
}
if ( !str_cmp (argument , "search" ) )
{
send_to_char ( "You begin your search of the forest...\n\r", ch);
WAIT_STATE ( ch , 15 );
int searchresult = number_range ( 0 , 10 );
searchresult;
if ( searchresult == 10 )
{
send_to_char ( "You find a suitable tree!\n\r", ch);
create_object ( get_obj_index ( OBJ_VNUM_SUITABLE_TREE ) , 1 );
return;
}
else
{
send_to_char ( "Your search was in vain as you did not find a suitable tree.\n\r", ch);
return;
}
}
if ( !str_cmp (argument , "chop" ) )
{
if (ch->in_room->obj_vnum ( OBJ_VNUM_SUITABLE_TREE ) )
{
send_to_char ( "You begin to chop down the tree.\n\r", ch);
WAIT_STATE ( ch , 10 );
create_object ( get_object_index ( OBJ_VNUM_CHOPPED_TREE ) , 1 );
send_to_char ( "You successfully chop down the tree.\n\r", ch);
return;
}
else
{
send_to_char ( "There isn't a suitable tree here.\n\r", ch);
return;
}
}
if ( !str_cmp (argument , "process" ) )
{
if (ch->in_room->obj_vnum ( OBJ_VNUM_CHOPPED_TREE ) )
{
send_to_char ( "You begin processing the chopped tree.\n\r", ch);
WAIT_STATE ( ch , 10 );
int logs = number_range ( 1 , 5 )
create_object ( get_object_index ( OBJ_VNUM_LOGS ) , logs );
send_to_char ( "You have processed " logs " logs. They await on the ground.\n\r", ch);
return;
}
else
{
send_to_char ( "There isn't a chopped tree here.\n\r", ch);
return;
}
}
}
*/