Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 Couple bugs
Yesterday, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, DotBot

Members: 0
Guests: 14
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Bugfix Lists » AFKMud Bugfix List » [Bug] Copyzone command checks...
Forum Rules | Mark all | Recent Posts

[Bug] Copyzone command checks the wrong set of areas by default
< Newer Topic :: Older Topic > AFKMud 2.03

Pages:<< prev 1 next >>
Post is unread #1 Mar 9, 2008, 11:06 am   Last edited Mar 9, 2008, 11:09 am by Samson
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Bug: Copyzone command checks the wrong set of areas by default
Danger: Low - The command will simply fail if the wrong area names are checked.
Discovered in: AFKMud 2.03
Found by: Samson
Fixed by: Samson

---

shell.cpp, do_copyzone

Locate:
      if( !str_cmp( argument, "gods.are" ) )
         fname2 = "gods.are";
      if( !str_cmp( argument, "bywater.are" ) )
         fname2 = "bywater.are";
      if( !str_cmp( argument, "entry.are" ) )
         fname2 = "entry.are";
      if( !str_cmp( argument, "astral.are" ) )
         fname2 = "astral.are";
      if( !str_cmp( argument, "void.are" ) )
         fname2 = "void.are";
      if( !str_cmp( argument, "alsherok.are" ) )
         fname2 = "alsherok.are";
      if( !str_cmp( argument, "alatia.are" ) )
         fname2 = "alatia.are";
      if( !str_cmp( argument, "eletar.are" ) )
         fname2 = "eletar.are";
      if( !str_cmp( argument, "varsis.are" ) )
         fname2 = "varsis.are";
      if( !str_cmp( argument, "gwyn.are" ) )
         fname2 = "gwyn.are";
      if( !str_cmp( argument, "sindhae.are" ) )
         fname2 = "sindhae.are";


Change to:
      if( !str_cmp( argument, "entry.are" ) )
         fname2 = "entry.are";
      if( !str_cmp( argument, "astral.are" ) )
         fname2 = "astral.are";
      if( !str_cmp( argument, "void.are" ) )
         fname2 = "void.are";
      if( !str_cmp( argument, "immtrain.are" ) )
         fname2 = "immtrain.are";
      if( !str_cmp( argument, "one.are" ) )
         fname2 = "one.are";


Locate:
   if( fname2 == "gods.are" || fname2 == "void.are" || fname2 == "astral.are"
       || fname2 == "bywater.are" || fname2 == "entry.are" || fname2 == "alsherok.are" || fname2 == "alatia.are"
       || fname2 == "eletar.are" || fname2 == "varsis.are" || fname2 == "gwyn.are" || fname2 == "sindhae.are" )
   {
      ch->print( "&GArea file(s) updated to code port.\r\n" );
      funcf( ch, do_mudexec, "cp %s%s %s", BUILDZONEDIR, fname2, CODEZONEDIR );
   }


Change to:
   if( fname2 == "entry.are" || fname2 == "void.are" || fname2 == "astral.are" || fname2 == "one.are" || fname2 == "immtrain.are" )
   {
      ch->print( "&GArea file(s) updated to code port.\r\n" );
      funcf( ch, do_mudexec, "cp %s%s %s", BUILDZONEDIR, fname2, CODEZONEDIR );
   }


The list of areas specified by this command are not distributed with the codebase, so checking for them is a bit silly.
       
Pages:<< prev 1 next >>