Posted Wednesday, August 12th @ 11:27:34 PM, by George Greer in the Skills dept.
. Click the link below to read it or download it.
ASPELL(spell_fear)
{
struct char_data *target = (struct char_data *) victim;
struct char_data *next_target;
int rooms_to_flee = 0;
ACMD(do_flee);
if (ch == NULL)
return;
send_to_char("You radiate an aura of fear into the room!\r\n", ch);
act("$n is surrounded by an aura of fear!", TRUE, ch, 0, 0, TO_ROOM);
for (target = world[ch->in_room].people; target; target = next_target) {
next_target = target->next_in_room;
if (target == NULL)
return;
if (target == ch)
continue;
if (GET_LEVEL(target) >= LVL_IMMORT)
continue;
if (mag_savingthrow(target, 1)) {
sprintf(buf, "%s is unaffected by the fear!\r\n", GET_NAME(target));
act(buf, TRUE, ch, 0, 0, TO_ROOM);
send_to_char("Your victim is not afraid of the likes of you!\r\n", ch);
if (IS_NPC(target))
hit(target, ch, TYPE_UNDEFINED);
}
else {
for(rooms_to_flee = level / 10; rooms_to_flee > 0; rooms_to_flee--) {
send_to_char("You flee in terror!\r\n", target);
do_flee(target, "", 0, 0);
}
}
}
}
<< EXP Needed Scale [by Nashak] | Reply | View as text | Flattened | Ferry Code [by Fili] >> |
|
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.
|
|
|
|
|
|
|