Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Running the server
➜ always daytime
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Flashattakjak
(20 posts) Bio
|
| Date
| Fri 26 Jul 2002 02:50 AM (UTC) |
| Message
| 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 | | Top |
|
| Posted by
| Nick Gammon
Australia (23,166 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Thu 01 Aug 2002 02:14 AM (UTC) |
| Message
|
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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,663 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top