Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Pets
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Hmph
(10 posts) Bio
|
| Date
| Wed 03 Jul 2002 11:32 PM (UTC) |
| Message
| 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"? | | Top |
|
| Posted by
| Kain
USA (43 posts) Bio
|
| Date
| Reply #1 on Mon 08 Jul 2002 11:45 PM (UTC) |
| Message
| 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 | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
12,024 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top