|
Skillstat Command (Alternate) [by Samedi] |
|
|
|
Posted Wednesday, August 12th @ 11:37:01 PM, by George Greer in the Wizard dept.
Added Feb 26, 1997. Click the link below to read it or download it.
From: Sammy <samedi@dhc.net>
Subject: Alternate Method for a Skillstat Command for Immorts
re: 'Skillstat'
I think I slight improvement would be to throw out the part that assigns
text values of skills (good, poor, etc), and use the numerical value, so
you can see exactly what it's at, and add the 10%.
As an alternative to a new command, and new funtions, here's a quick and
dirty way of doing the same thing. Just replace do_practice with the
following:
ACMD(do_practice)
{
struct char_data *vict;
void list_skills(struct char_data * ch, struct char_data * vict);
one_argument(argument, arg);
if (*arg) {
if(GET_LEVEL(ch) >= LVL_IMMORT) {
if(!(vict = get_char_vis(ch, arg))) {
send_to_char(NOPERSON, ch);
return;
}
list_skills(ch, vict);
return;
}
send_to_char("You can only practice skills in your guild.\r\n", ch);
}
else
list_skills(ch, NULL);
}
Now any imm can type 'practice bob' to get a list of Bob's skills and
their learned levels, as if Bob had typed practice with no arguments.
Sam
<< Skillstat Command [by John Evans] | Reply | View as text | Flattened | Special Assigns [by Gekke] >> |
|
Related Links |
|
|
|
CircleMUD Snippets |
|
|
Note: Not all of these snippets will work perfectly with
your version of code, so be prepared to fix one
or two bugs that may arise, and please let me know
what you needed to do to fix it. Sending a corrected
version is always welcome.
|
Finally, if you wish to use any of the snippets from this
page, you are more than welcome, just mention the
authors in your credits. If you wish to release any
of these snippets to the public on another site,
contact me FIRST.
|
|
|
|
|
|
|