Register forum user name Search FAQ

Gammon Forum

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 ➜ Compiling the server ➜ hard coded vnums

hard coded vnums

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by GenmaC   (22 posts)  Bio
Date Sun 10 Feb 2002 11:41 PM (UTC)
Message
I know there was a list somewhere, but have misplaced it...I just need a pointer to it, thanks.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 11 Feb 2002 01:15 AM (UTC)

Amended on Mon 11 Feb 2002 01:16 AM (UTC) by Nick Gammon

Message
It is in the FAQ - The server won't start up

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Viruz   (19 posts)  Bio
Date Reply #2 on Mon 11 Feb 2002 03:11 AM (UTC)
Message
There are also a couple of vnum hard coded in a .c file ...

took me a while to get that cleared up
(bad coding on the smaug coders part)
Top

Posted by GenmaC   (22 posts)  Bio
Date Reply #3 on Mon 11 Feb 2002 07:19 AM (UTC)
Message
If you could give me a list of those (and maybe what you did to fix them), I'd be happy indeed.
Top

Posted by Viruz   (19 posts)  Bio
Date Reply #4 on Mon 11 Feb 2002 06:11 PM (UTC)

Amended on Mon 11 Feb 2002 06:40 PM (UTC) by Viruz

Message
act_wiz.c around line 5071

     /* Added by Brittany, on Nov. 24, 1996. The object is the adventurer's
          guide to the realms of despair, part of academy.are. */
     {
       OBJ_INDEX_DATA *obj_ind = get_obj_index( 10333 );
       if ( obj_ind != NULL )
       {
         obj = create_object( obj_ind, 1 );
         obj_to_char( obj, victim );
       }
     }


and Near line 5084


/* Added the burlap sack to the newbieset.  The sack is part of sgate.are
   called Spectral Gate.  Brittany */

     {

       OBJ_INDEX_DATA *obj_ind = get_obj_index( 123 );
       if ( obj_ind != NULL )
       {
         obj = create_object( obj_ind, 1 );
         obj_to_char( obj, victim );
       }
     }


those are the only 2 that I remember of right now just define those items in mud.h and fix the code, all should be good then.

EDIT
Also check comm.c near line 2110 for a reference to 10333
Top

Posted by Viruz   (19 posts)  Bio
Date Reply #5 on Mon 11 Feb 2002 06:18 PM (UTC)
Message
oh and what i did to fix them in mud.h near all the other well known vnums

#define OBJ_VNUM_SCHOOL_GUIDE  18 //can be whatever num you want
#define OBJ_VNUM_SCHOOL_SACK   19 //whatever number you want

and in actwiz I just replaced the 2 lines to read from 
OBJ_INDEX_DATA *obj_ind = get_obj_index( 10333 );
to
OBJ_INDEX_DATA *obj_ind = get_obj_index( OBJ_VNUM_SCHOOL_GUIDE );

and
OBJ_INDEX_DATA *obj_ind = get_obj_index( 123 );
to
OBJ_INDEX_DATA *obj_ind = get_obj_index( OBJ_VNUM_SCHOOL_SACK );


Top

Posted by GenmaC   (22 posts)  Bio
Date Reply #6 on Tue 12 Feb 2002 04:10 AM (UTC)
Message
Thanks a ton.
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.


21,280 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.