[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Pets

Pets

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Hmph   (10 posts)  [Biography] 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"?
[Go to top] top

Posted by Kain   USA  (43 posts)  [Biography] 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
[Go to top] 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.


9,063 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]