|
Hand to hand Combat [by Demond De Inosantos] |
|
|
|
Posted Wednesday, August 12th @ 11:28:13 PM, by George Greer in the Skills dept.
Added Jun 23, 1997. Click the link below to read it or download it.
From: Demond De Inosantos <jay@laplaza.org>
Subject: Hand to Hand Combat
Just add this snippet into your fight.c file in perform_violance:
if (GET_SKILL(ch, SKILL_SECOND_ATTACK) >= number(1, 101)) {
if (GET_SKILL(ch, SKILL_THIRD_ATTACK) >= number(1, 201)) apr++;
apr++;
}
if (GET_SKILL(ch, SKILL_HAND) >= number(1, 101)){
if (!GET_EQ(ch, WEAR_WIELD))
apr = 9;
} else if (GET_SKILL(ch, SKILL_UNARMED_COMBAT) >= number(1, 101)){
apr = 3;
} else {
apr = MAX(-1, MIN(apr, 4));
}
Then add into spells.h:
#define SKILL_SECOND_ATTACK
xx
#define SKILL_THIRD_ATTACK
xx
#define SKILL_HAND_TO_HAND
xx
#define SKILL_UNARMED_COMBAT
xx
Then add into spell_parser.c:
"second attack", "third attack", "hand to hand", "unarmed combat",
in the skill part of the defines and that should do it.
From your friend,
Demond
<< Gossip Socials [by Samedi] | Reply | View as text | Flattened | Help entry levels [by DOOMer] >> |
|
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.
|
|
|
|
|
|
|