Pets

Posted by Hmph on Wed 03 Jul 2002 11:32 PM — 2 posts, 12,561 views.

#0
Okay I have two questions... I'm kind of lost on this.. First off. How do I make it so that people can buy more than one pet at a level?

Second. Why do pets seem to walk in a "zombie like gaze"?
USA #1
To answer your second question first:

In this function:

void show_visible_affects_to_char( CHAR_DATA *victim, CHAR_DATA *ch )

in act_info.c, around line 484, there basically is a line that gives the status affect for a charmed "actor". I guess you could put a flag in the code to check if it was a pet and then change the output. Basically it says that because pets are charmed.

For the first question:

at around line 504 in shops.c, there is the following...

if ( xIS_SET(ch->act, PLR_BOUGHT_PET) )
{
send_to_char( "You already bought one pet this level.\n\r", ch );
return;
}

Possibly you comment this line out and see if you can buy another pet or put in some kind of check.


Hope that helps