Starting / Dying and Initial Equiping

Posted by Nick Gammon on Thu 24 May 2001 10:12 PM — 1 posts, 6,215 views.

Australia Forum Administrator #0
The short answer is, you can't do most of that without coding. For instance, the initial equipment is hard-coded. You want something like "newbieset" which re-equips a newbie. The C code for that has lines like this in it:


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);


This is hard-coded into the server. You would do something similar on a new character.

To change the starting room, or what happens when they die is also hard-coded.

You are either going to have to work within the existing server framework (including hard-coded words like "Thoric gives you one gold coin for your sacrifice") or make some changes to the code.