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?
new character message
Posted by Arsen on Tue 10 Sep 2002 01:10 AM — 11 posts, 34,699 views.
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
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
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
Can you give an example of both messages?
The rasping voice seems to be in newacad.are - try looking in there.
The rasping voice seems to be in newacad.are - try looking in there.
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.
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.
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
~
thanks
are you sure it is in newgate.are? because I am having trouble finding it.
Confusion reigns in my brain. Try newacad.are again. :)
You can use grep to find this out. Try this in the area directory:
The appropriate filename is at the start of the line.
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.
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?
Ok, I got it now, thanks