Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl

Members: 0
Guests: 4
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,370
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Look function
Forum Rules | Mark all | Recent Posts

Look function
< Newer Topic :: Older Topic > Look function

Pages:<< prev 1 next >>
Post is unread #1 Aug 2, 2002, 12:09 pm
Go to the top of the page
Go to the bottom of the page

BroRich

GroupMembers
Posts20
JoinedJul 12, 2002

Somewhere, somehow i must have messed something up in the look function or something to do with the sexes. Whenever I look at certain mobs or players it reverts to it intead of he or she. I went in to the code and commented out a few lines of code that dealt with hermaphrodytes. Could that have messed it up? Any help would be appreciated. thanks.
       
Post is unread #2 Aug 2, 2002, 4:25 pm
Go to the top of the page
Go to the bottom of the page

Guest - (Unregistered)

If I were you I would just restore everything to stock afk dealing with hermaphdytes, and then comment out where it asks players if they want to be one.

change that line from
do you want to be a male female herma

to
do you want to be a male or female.

IF you want to actually remove hermas or however you spell em from the code, you can compare afk code with smaug1.4a for comm.c and all pertinent code pertaining to sexes.

Hope that helps.

Vladaar
       
Post is unread #3 Aug 4, 2002, 7:38 am
Go to the top of the page
Go to the bottom of the page

Guest - (Unregistered)

Somewhere, somehow i must have messed something up in the look function or something to do with the sexes. Whenever I look at certain mobs or players it reverts to it intead of he or she. I went in to the code and commented out a few lines of code that dealt with hermaphrodytes. Could that have messed it up? Any help would be appreciated. thanks.

What Vladaar says about starting again on this score has merit, but I would only recommend that if you cannot wrk yourr way back (hopefully you will find your way back without needing to start again, it makes for better learning and understanding of the code

Anywho, can you identify what output functions are producing this "it" you don't want? I'm guessing this could be the act() function as it deals with a lot of this sorta output). In which case you may want to take a look acat the act() func in comm.c and look at how it deals wth the him/her/it he/she/it substitutions and if its handing Hermaphrodite as you wish. this may be dependant on the way the enumeration is setup in the code (in olc.h if I remeber rightly)

If it isn't act (and I'd be surprised if it wasn't as act() is a very useful function for this sorta thing) then you ned to pick one case of your problem (a PART of do_look() as do_look is rather an extensive function in some ways) and look how its processing the sex field wrong. The chances are the check will be similar all over the place (another reason I rekon its act).

Oh, as you're using afk you'll want to check if its act, act_neww or act_string that is used, as i can't remeber, my own mud doessn't have all those variatons, so check which one to be sure is being used in dd_look()
       
Pages:<< prev 1 next >>