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
➜ Score table
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
Posted by
| USER007
(124 posts) Bio
|
Date
| Wed 08 Oct 2003 09:13 PM (UTC) |
Message
| How do you change the score table? I want to remove some things that appear in it. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Wed 08 Oct 2003 09:39 PM (UTC) |
Message
| You can't, since it seems you don't have a compiler. You need to edit player.c, and then recompile, but you can't. Or can you? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| USER007
(124 posts) Bio
|
Date
| Reply #2 on Wed 08 Oct 2003 09:41 PM (UTC) |
Message
| Nope I dont have a compiler. :/ I need a free one! :D | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #3 on Wed 08 Oct 2003 09:45 PM (UTC) |
Message
| Cygwin would be your best bet. I never used it though. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| USER007
(124 posts) Bio
|
Date
| Reply #4 on Thu 09 Oct 2003 12:36 AM (UTC) |
Message
| Ok but cygwin suckzOrs! :P How do you change the color of the description and the color when the commands are executed? IE: &Ysave is in yellow I want it to be white. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #5 on Thu 09 Oct 2003 02:27 AM (UTC) Amended on Sat 11 Oct 2003 01:18 AM (UTC) by Zeno
|
Message
|
Which one, the command "save" or the result "Saved..."?
You can't change "save" because it depends on the client your using. "Saved..." can be changed by editing and compiling, which you'll be needing a compiler again, to make the change. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| USER007
(124 posts) Bio
|
Date
| Reply #6 on Fri 10 Oct 2003 12:34 PM (UTC) Amended on Sat 11 Oct 2003 12:21 AM (UTC) by USER007
|
Message
| Damn, I wanted to change the result, so Saved... would be white instead of yellow, so how would I change it into white text? And I think I'm going to get me a shell. :P | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #7 on Sat 11 Oct 2003 01:23 AM (UTC) |
Message
| In act_comm.c there should be something that looks like this.
void do_save( CHAR_DATA *ch, char *argument )
{
if ( IS_NPC(ch) )
return;
if ( ch->level < 2 ) {
send_to_char_color( "&BYou must be at least second level to save.\n\r", ch );
return;
}
WAIT_STATE( ch, 2 ); /* For big muds with save-happy players, like RoD */
update_aris(ch); /* update char affects and RIS */
save_char_obj( ch );
saving_char = NULL;
send_to_char( "Saved...\n\r", ch );
return;
}
The bold line is what you want to change. You said white right? Well, white is &W, so change it to this:
send_to_char( "&WSaved...\n\r", ch );
That would be the simple way. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Rob Harper
(108 posts) Bio
|
Date
| Reply #9 on Sun 12 Oct 2003 08:44 AM (UTC) |
Message
| Just thought I'd throw this in remember...no compile....no actuall changes appear, anyway cygwin wasnt so bad learning to code (wich I sought of still am in the process of doing..heh getting better)...thou if you think cygwin sucks, I learned soon after getting one, the shell aint all too different save for a few new commands to learn anyway later, thou honestly I suggest learning on your box using a really good txt editor like syn and cygwin, then work your way up when you got a feel for it, anyway just some advice later. | Top |
|
Posted by
| Rash
United Kingdom (56 posts) Bio
|
Date
| Reply #10 on Thu 30 Oct 2003 09:07 PM (UTC) |
Message
| Okay since this about the Score Table... who would u get it to to check the pfile for 'Tier' data and then show it... i dont understand how it works... im confushed and am a n00bie which dont help!!! Someone help please!
Rash | Top |
|
Posted by
| Jach
USA (25 posts) Bio
|
Date
| Reply #11 on Fri 31 Oct 2003 02:23 AM (UTC) |
Message
| You would need to change it to:
send_to_char_color( "&WSaved...\n\r", ch );
Otherwise you would just get the color code displayed to the user.
|
"Adults are obsolete children."
Dr. Seuss | Top |
|
Posted by
| Kris
USA (198 posts) Bio
|
Date
| Reply #12 on Fri 31 Oct 2003 05:20 AM (UTC) |
Message
| Cygwin is an excellent tool! I've been using it as my compiler under Windows for years now, and I don't know what I'd do without it. If you can get the bloody thing to install properly and work, then you're set.
In the src dir, you type 'make' and it compiles. How does that suckzOrz?
| Top |
|
Posted by
| Samson
USA (683 posts) Bio
|
Date
| Reply #13 on Fri 31 Oct 2003 10:16 AM (UTC) |
Message
| Cygwin *USED* to suck. Badly. But somewhere along the way they've improved dramatically. To the point where I'm able to use it as a primary environment for development when I'm at work with nothing better to do than code. All you need to do is download the latest version of their nifty setup too, pick the stuff you need, and you're set.
What do you need I hear you asking? Usually the following:
GCC, Make, Crypt, and if you're using MCCP, Zlib. In some cases you may also need to install the tcsh shell. Aside from that, install the Cygwin base stuff and you're set. Takes about 10 minutes to download on a broadband link. The problem obviously comes from being stuck on dial-up. | Top |
|
Posted by
| USER007
(124 posts) Bio
|
Date
| Reply #14 on Fri 31 Oct 2003 08:44 PM (UTC) |
Message
| Whats MCCP? And when I try to compile where does the whole code/areas/etc. need to be? In the src folder of cygwin? | 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.
74,399 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top