Register forum user name Search FAQ

Gammon Forum

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 ➜ Compiling the server ➜ A few changes, newbie changes..

A few changes, newbie changes..

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


Posted by Mozzy   (19 posts)  Bio
Date Mon 10 Feb 2003 08:58 AM (UTC)
Message
Hey guys, I got in all compiling, changed a few of the things round..

Okay, I have looked on a few diffrenet tutorials, but I cant seem to find out how I edit the battle messages? How do I go about it? At the start, when you first start a battle I want a message, then custom messages all through that. How do I go about it?

Also - how do I set my pretitle? I cant figure it out! 'Supreme Entity' is starting to annoy me >.<

- Mozzy
Top

Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Reply #1 on Mon 10 Feb 2003 02:34 PM (UTC)
Message
What pretitle? You mean the rank?

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #2 on Mon 10 Feb 2003 10:50 PM (UTC)

Amended on Mon 10 Feb 2003 10:51 PM (UTC) by Nick Gammon

Message
"Use the Source, Luke" ...



You can answer questions like that by doing a "grep" in the source directory for SMAUG (or a Find In Files if you are using some sort of Windows GUI editor). eg.


$ grep -n Supreme *.c
act_info.c:2640:        case MAX_LEVEL -  0: class = "Supreme Entity";  break;
db.c:4285:      case MAX_LEVEL -  0: towizfile( " Supreme Entity" );    break;
player.c:351:       case  10:  send_to_pager( "You are a Supreme Entity.\n\r", ch );    break;
player.c:770:       case  10:  send_to_pager( "You are a Supreme Entity.\n\r", ch );    break;
player.c:1150:        case  10:  send_to_pager( "You are a Supreme Entity.\n\r", ch ); break;
update.c:1908:      case 21: t = "Ahh... the power of a Supreme Entity... what to do...\n\r";   break;


That shows what files to edit (and what line numbers), then do a "make" if you are using Cygwin.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Mozzy   (19 posts)  Bio
Date Reply #3 on Tue 11 Feb 2003 09:15 AM (UTC)
Message
Ahh okay, cool. What about custom battle mesgaes and stuff?

- Mozzy
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #4 on Tue 11 Feb 2003 11:52 PM (UTC)
Message
Battle damage messages are done in fight.c, theyre kinda burried and rather difficult to search for given the usually odd colorations and extra chars involved to screw up the search pattern.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
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.


17,082 views.

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

Go to topic:           Search the forum


[Go to top] top

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