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

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Multi Title

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Multi Title
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Zeno   USA  (2,868 posts)  [Biography] bio   Moderator
Date Sun 20 Mar 2005 04:13 AM (UTC)  quote  ]
Message
What was the site? Perhaps it had snippets I have yet to see.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Asean Novari   USA  (82 posts)  [Biography] bio
Date Sat 19 Mar 2005 11:52 PM (UTC)  quote  ]
Message
Actually the snippet file that i have is exactly that text
only.. nothing else .. and it was gotten off a site with tons
of snippets that had no license listed.. I am sorry for being
unaware that the snippet was any sort of licensing.



[Go to top] top

Posted by Gatewaysysop2   USA  (142 posts)  [Biography] bio
Date Thu 17 Mar 2005 04:33 PM (UTC)  quote  ]

Amended on Thu 17 Mar 2005 04:36 PM (UTC) by Gatewaysysop2

Message
It would probably be common courtesy to mention the author's name and website if you're going to C&P their whole snippet in your own post.


For the curious, the above is LrdElder's "Multiansi" snippet, taken from:
http://www.geocities.com/SiliconValley/Mouse/6754/Multians.txt



"The world of men is dreaming, it has gone mad in its sleep, and a snake is strangling it, but it can't wake up." -D.H. Lawrence
[Go to top] top

Posted by Asean Novari   USA  (82 posts)  [Biography] bio
Date Fri 04 Mar 2005 02:15 AM (UTC)  quote  ]
Message
Here is the code to put multiple ANSI Greeting screens into your startup.. Hope this is what you needed


In mud.h
--------
Where the #define is for #define ANSITITLE_FILE  SYSTEM_DIR "mudtitle.ans"
replace that with .....
#define ANSITITLE_FILE  SYSTEM_DIR "mudtitle1.ans"
#define ANSITITLE1_FILE  SYSTEM_DIR "mudtitle2.ans"
#define ANSITITLE2_FILE  SYSTEM_DIR "mudtitle3.ans"
#define ANSITITLE3_FILE  SYSTEM_DIR "mudtitle4.ans"
#define ANSITITLE4_FILE  SYSTEM_DIR "mudtitle5.ans"
#define ANSITITLE5_FILE  SYSTEM_DIR "mudtitle6.ans"

In act_comm.c
-------------
Right below the line that reads ....
    char BUFF[MAX_STRING_LENGTH*2];
add ...
    int random;
    char pbuf[MAX_INPUT_LENGTH];

    random = number_range(0, 5);
    switch(random)
    {
    case 0:
      strcpy(pbuf,ANSITITLE_FILE);
      break;
    case 1:
      strcpy(pbuf,ANSITITLE1_FILE);
      break;
    case 2:
      strcpy(pbuf,ANSITITLE2_FILE);
      break;
    case 3:
      strcpy(pbuf,ANSITITLE3_FILE);
      break;
    case 4:
      strcpy(pbuf,ANSITITLE4_FILE);
      break;
     case 5:
     default:
      strcpy(pbuf,ANSITITLE5_FILE);
      break;
    }
 and replace the line that reads ....
    if ((rpfile = fopen(ANSITITLE_FILE,"r")) !=NULL) {
with ....
    if ((rpfile = fopen(pbuf,"r")) !=NULL) {

The last thing to do is create your ansi files in the /dist/system
directory, they should be ....
mudtitle1.ans mudtitle2.ans mudtitle3.ans
mudtitle4.ans mudtitle5.ans mudtitle6.ans



[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Fri 04 Mar 2005 01:17 AM (UTC)  quote  ]
Message
No, that's not "all" you have to do... you have to do the rest of the things I said too. :-)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Johny   USA  (16 posts)  [Biography] bio
Date Thu 03 Mar 2005 09:50 PM (UTC)  quote  ]
Message
So, all I must do is Type GREETING_2 for my next greeting?

Johny the Homicidal Maniac
...More like...
Johny the Idiodical Maniac
Heh
Owner of Some Future Mud That Isn't Open to Public
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Wed 02 Mar 2005 05:14 AM (UTC)  quote  ]
Message
The most straightforward way to do this is to generate a random number, append it to a string buffer e.g. GREETING_, and create help files for GREETING_1, ..._2, ..._3 and so forth.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Johny   USA  (16 posts)  [Biography] bio
Date Wed 02 Mar 2005 04:56 AM (UTC)  quote  ]
Message
The opening

Johny the Homicidal Maniac
...More like...
Johny the Idiodical Maniac
Heh
Owner of Some Future Mud That Isn't Open to Public
[Go to top] top

Posted by Zeno   USA  (2,868 posts)  [Biography] bio   Moderator
Date Wed 02 Mar 2005 01:09 AM (UTC)  quote  ]
Message
What do you mean random title? Random titles for players? When? How random? Or the mud opening/greeting?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Johny   USA  (16 posts)  [Biography] bio
Date Wed 02 Mar 2005 01:01 AM (UTC)  quote  ]
Message
Now, since I fixed my last title problem, I feel I still must upgrade this by working out more greetings. Only problem is I don't know how to work out a way to make a random title. I run a Windows XP.

Johny the Homicidal Maniac
...More like...
Johny the Idiodical Maniac
Heh
Owner of Some Future Mud That Isn't Open to Public
[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.


2,598 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]