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 ➜ SMAUG coding ➜ new character message

new character message

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


Posted by Arsen   (44 posts)  Bio
Date Tue 10 Sep 2002 01:10 AM (UTC)
Message
how do I change the message that is broadcast over the entire MUD when a new character gets on? and how do I edit the message that avatars get when they sign on?
Top

Posted by Creeper386   USA  (62 posts)  Bio
Date Reply #1 on Tue 10 Sep 2002 04:56 AM (UTC)
Message
I'm no entirely sure which avatar message you are talking about. I think some could be in the helpfiles while other information is hard coded... But I'd say grep for the paticular message you want to change first in the helpfiles and then in the source of the mud.

If its a coded thing just recompile and your all set, if its in the helpfiles change it and reboot your mud...

This is of course if your using Cygwin or similar system... if not I would think other compilers should come with some sort of multi file search but couldn't say for sure.

Just a bit more help, think the syntax be something like:

For helpfiles:
grep 'message that you want changed' *.are
This should search the helpfiles for a matching string.

For the source same thing:
grep 'message that you want changed' *.c
That should work.

Just do the grep or other multiple file search in the right folder and you should finf where you want things changed...

IMO: Grep is a wonderful tool to learn how to use.

Creep
Top

Posted by Arsen   (44 posts)  Bio
Date Reply #2 on Tue 10 Sep 2002 11:01 PM (UTC)
Message
the avatar message I am speaking of is the title one that is displayed to avatars when they log on, and the new player message I am speaking of is the one where the rasping voice talks and everything, I have seen it changed on other SMAUG MUDs, I just want to figure out how to change it
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 11 Sep 2002 04:09 AM (UTC)
Message
Can you give an example of both messages?

The rasping voice seems to be in newacad.are - try looking in there.

- Nick Gammon

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

Posted by Arsen   (44 posts)  Bio
Date Reply #4 on Thu 12 Sep 2002 12:58 AM (UTC)
Message
I figured out the avatar message, so nevermind that.

The new character message I am speaking of is this:

Well done, Test!
You have passed the Spectral Gates, and have entered the game.
Your accomplishment has earned you level two...
You feel more powerful!
You raise a level!! Your gain is: 10/30 hp, 2/102 mana, 10/110 mv 4/4 prac.
Hungrily, a hollow voice asks 'What soul passes the gateway into this dominion?'
A rasping voice answers 'Test, a novitiate Augurer ...'
... Please leave north to experience the Darkhaven Academy.
... You may now "save" to make your character permanent.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #5 on Thu 12 Sep 2002 10:48 PM (UTC)
Message
I got the area name wrong, it is newgate.are. Look in that file (line 2068 on), and you will see ...


> rand_prog 100~
if level($r) == 1
 mpechoat 0.$r Well done, $r!
mpechoat 0.$r You have passed the Spectral Gates, and have entered the game.
 mpechoat 0.$r Your accomplishment has earned you level two...
 mpat 'hvak1 advancer' mpforce 'hvak1 advancer' mpat 0.$r mpadvance 0.$r 2
mpat hvak1 mpfor hvak1 ask What soul passes the gateway into this dominion?
 if class($r) == mage
   mpat hvak2 mpfor hvak2 answer The acolyte Mage, $r ...
  endif
  if class($r) == cleric
    mpat hvak2 mpfor hvak2 answer $r, a Cleric prentice ...
  endif
  if class($r) == thief
    mpat hvak2 mpfor hvak2 answer The fledgling thief, $r ...
  endif
  if class($r) == warrior
    mpat hvak2 mpfor hvak2 answer A Warrior initiate called $r ...
  endif
  if class($r) == vampire
    mpat hvak2 mpfor hvak2 answer A neophyte Vampire known as $r ...
  endif
  if class($r) == druid
    mpat hvak2 mpfor hvak2 answer A postulant Druid named $r ...
  endif
  if class($r) == ranger
    mpat hvak2 mpfor hvak2 answer $r, an intrepid Ranger ...
  endif
  if class($r) == augurer
    mpat hvak2 mpfor hvak2 answer $r, a novitiate Augurer ...
  endif
  mpechoat $r ... Please leave north to experience the Darkhaven Academy.
  mpechoat $r ... You may now "save" to make your character permanent.
endif
~

- Nick Gammon

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

Posted by Arsen   (44 posts)  Bio
Date Reply #6 on Fri 13 Sep 2002 12:23 AM (UTC)
Message
thanks
Top

Posted by Arsen   (44 posts)  Bio
Date Reply #7 on Fri 13 Sep 2002 12:47 AM (UTC)
Message
are you sure it is in newgate.are? because I am having trouble finding it.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #8 on Fri 13 Sep 2002 01:06 AM (UTC)
Message
Confusion reigns in my brain. Try newacad.are again. :)

You can use grep to find this out. Try this in the area directory:


grep 'What soul passes the gateway' *.are
newacad.are:mpat hvak1 mpfor hvak1 ask What soul passes the gateway into this dominion?


The appropriate filename is at the start of the line.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #9 on Fri 13 Sep 2002 01:07 AM (UTC)
Message
And if you add -n you also get the line number:


grep 'What soul passes the gateway' *.are -n
newacad.are:2074:mpat hvak1 mpfor hvak1 ask What soul passes the gateway into this dominion?

- Nick Gammon

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

Posted by Arsen   (44 posts)  Bio
Date Reply #10 on Sat 14 Sep 2002 12:08 AM (UTC)
Message
Ok, I got it now, thanks
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.


33,054 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.