Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 parse description bug
Yesterday, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 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
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, Yandex

Members: 0
Guests: 12
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWFOTE FUSS » Auto unhell sending players t...
Forum Rules | Mark all | Recent Posts

Auto unhell sending players to wrong room?
< Newer Topic :: Older Topic > For double their punishment!

Pages:<< prev 1 next >>
Post is unread #1 May 12, 2009, 5:41 pm
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

Ok, so I helled myself. Just for fun. Upon getting out of hell I was sent to room 211. Having moved some areas around I got to wondering how in this world did the game think it was wise to put me in room 211.

So, digging deep into mud.h we find this:
#define ROOM_START_HUMAN            211
#define ROOM_START_WOOKIEE        28600
#define ROOM_START_TWILEK         32148
#define ROOM_START_RODIAN         32148
#define ROOM_START_HUTT           32148
#define ROOM_START_MON_CALAMARIAN 21069
#define ROOM_START_NOGHRI          1015
#define ROOM_START_GAMORREAN      28100
#define ROOM_START_JAWA           31819
#define ROOM_START_ADARIAN        29000
#define ROOM_START_EWOK           32148
#define ROOM_START_VERPINE        32148
#define ROOM_START_DEFEL          32148
#define ROOM_START_TRANDOSHAN     32148
#define ROOM_START_HAPAN     32148
#define ROOM_START_DUINUOGWUIN    32148
#define ROOM_START_QUARREN        21069


So, we may want to have all these vnums changed to a default place, like econo, or the main landing pad. Or, even to limbo if you want.

Look up int wherehome in act_move.c

Just some random thoughts.
ayuri
       
Post is unread #2 May 13, 2009, 2:55 pm
Go to the top of the page
Go to the bottom of the page

Keberus
Conjurer
GroupFUSS Project Team
Posts341
JoinedJun 4, 2005

Well, a very simple solution would be to change wherehome to this:
int wherehome( CHAR_DATA * ch )
{
   if( ch->plr_home )
      return ch->plr_home->vnum;

   if( get_trust( ch ) >= LEVEL_IMMORTAL )
      return ROOM_START_IMMORTAL;

   return ROOM_UNHELL_ROOM;
}


In mud.h add:
#define ROOM_UNHELL_ROOM 1057 //Any unhelled person goes to econo lodge on coru
       
Post is unread #3 May 14, 2009, 7:01 pm   Last edited May 14, 2009, 7:03 pm by ayuri
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

Well, that works too :P

And then you can just nuke all those extra defines it looks like. YAY!

ayuri
       
Pages:<< prev 1 next >>