[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  hard coded vnums

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

hard coded vnums

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


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

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Mon 11 Feb 2002 01:15 AM (UTC)  quote  ]

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
[Go to top] top

Posted by Viruz   (19 posts)  [Biography] bio
Date Reply #2 on Mon 11 Feb 2002 03:11 AM (UTC)  quote  ]
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)
[Go to top] top

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

Posted by Viruz   (19 posts)  [Biography] bio
Date Reply #4 on Mon 11 Feb 2002 06:11 PM (UTC)  quote  ]

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
[Go to top] top

Posted by Viruz   (19 posts)  [Biography] bio
Date Reply #5 on Mon 11 Feb 2002 06:18 PM (UTC)  quote  ]
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 );


[Go to top] top

Posted by GenmaC   (22 posts)  [Biography] bio
Date Reply #6 on Tue 12 Feb 2002 04:10 AM (UTC)  quote  ]
Message
Thanks a ton.
[Go to top] 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.


2,256 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]