small Error in Code

Posted by Xavaier on Tue 04 Jun 2002 02:28 AM — 2 posts, 14,634 views.

USA #0
...
Newbielock Enable does not work. This is no more than a minor aggrovation and can be very easily fixed.

in gameedit.cpp locate
void do_newbielock(char_data *ch, char *argument)

There will be 2 instances of
if(!str_cmp("disable", argument)){

change the second instance to:
if(!str_cmp("enable", argument)){

and taadaaa, it's fixed.
United Kingdom #1
Thanks for that, I will fix it for 1.69r when I start coding again.

I normally use a creation password instead of newbie locking since those who know the password can still create. Also if you do want to newbie lock, you can by setting the newbie_locked gameedit flag (type flag newbie_locked while in gameedit).

- Kal