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 ➜ langs

langs

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


Posted by Jinru   USA  (20 posts)  Bio
Date Mon 29 Mar 2004 05:15 PM (UTC)
Message
Ok this is what i want to do :)
take out all that origanall smaug langs and
make the ones for my races so that all ppl can say to each other and understant but the chould use race talk also

-(Jinru)-
admin at
dbzuov.sytes.net port 4003
Top

Posted by Kris   USA  (198 posts)  Bio
Date Reply #1 on Mon 29 Mar 2004 07:20 PM (UTC)
Message
First-off, go into your mud.h file. Look for....

/*
* Languages -- Altrag
*/


There's your main list of languages. Also, go into act_comm.c, and look for....

int const lang_array[] = {


Those are the only hard-coded lists of languages in the src. The easiest way to do it is to simply change the names of the languages to fit your needs. If you wanna do some more intense editing of them, edit your system/tongues.dat file.

Now, you want to make it so that everyone can see 'say' communications regardless of what language is being spoken? The easiest way to do this is to just have it ignore whatever scrambling is performed when speaking. So, in function do_say in act_comm.c, look for....

act( AT_SAY, "$n says: $t", ch, sbuf, vch, TO_VICT );


Change that to this:

act( AT_SAY, "$n says: $t", ch, argument, vch, TO_VICT );


That change should only affect says; eg racetalk and whatever else should still scramble as usual.
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.


11,854 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.