always daytime

Posted by Flashattakjak on Fri 26 Jul 2002 02:50 AM — 2 posts, 11,531 views.

#0
New to hosting
just had a couple questions

How can I set it so it's always daytime?
How can I set it so players are never hungry/thirsty

How can I set it so players start with a certain ammount of gold/weps/ and so forth
Australia Forum Administrator #1
Quote:

How can I set it so players start with a certain ammount of gold/weps/ and so forth



In comm.c, around the line:

ch->level = 1;


I would add things like:

ch->gold = 100;

(or whatever)

As for adding weapons, do something similar to the code for the Adventurer's guide ...


 OBJ_INDEX_DATA *obj_ind = get_obj_index( 10333 );
 if ( obj_ind != NULL )
    {
    obj = create_object( obj_ind, 0 );
    obj_to_char( obj, ch );
    equip_char( ch, obj, WEAR_HOLD );
    }


This example equips the character with object 10333, just change that number (and copy the code) for other objects.

There are other examples in act_wiz.c, function newbieset:


obj = create_object( get_obj_index(OBJ_VNUM_SCHOOL_VEST), 1 );
obj_to_char(obj, victim);

obj = create_object( get_obj_index(OBJ_VNUM_SCHOOL_SHIELD), 1 );
obj_to_char(obj, victim);

obj = create_object( get_obj_index(OBJ_VNUM_SCHOOL_BANNER), 1 );
obj_to_char(obj, victim);





Quote:

How can I set it so it's always daytime?


In update.c you might change time_update to not add 1 to the hour (or do something similar).




Quote:

How can I set it so players are never hungry/thirsty


In update.c I would try omitting this line:


gain_condition( ch, COND_FULL, -1 + race_table[ch->race]->hunger_mod );


Do something similar for COND_THIRST.