FTP Uploads 2001/02/04
FTP Site Posted Sunday, February 4th @ 12:00:11 AM, by George Greer.
New: bandage.txt, semipk.txt, viewlog.README, viewlog.tar.gz, do_lag.txt, YFMudEd.b52.src.zip, YFMudEd.b52.bin.zip

Click the link below for descriptions of each.

<< FTP Uploads 2001/01/28 | Reply | Threaded | FTP Uploads 2001/02/11 >>

 


Related Links
  CircleMUD
bandage.txt
semipk.txt
viewlog.README
viewlog.tar.gz
do_lag.txt
YFMudEd.b52.src.zip
YFMudEd.b52.bin.zip
bandage.txt
semipk.txt
viewlog.README
viewlog.tar.gz
do_lag.txt
YFMudEd.b52.src.zip
YFMudEd.b52.bin.zip
Related Articles
More by greerga
 
 


Re: Bandages
by BoxBoy (boruki@as-if.com) on Friday, February 9th @ 11:47:37 AM
http://
I re-wrote the command a little bit so it would use bandage items, and also stopped it from healing over max_hit.

ACMD(do_bandage)
{
struct obj_data *obj;

if (IS_NPC(ch) || !GET_SKILL(ch, SKILL_BANDAGE)) {
send_to_char("You have no idea how to do that. ", ch);
return;
}
if (GET_MOVE(ch) 20) {
send_to_char("You dont have enough movement points to bandage. ", ch);
return;
}
obj = get_obj_in_list_vis(ch, "bandages", ch->carrying);
if (!obj) {
send_to_char("You need bandages in order to bandage yourself! ", ch);
return;
}
if (GET_HIT(ch) >= GET_MAX_HIT(ch)) {
send_to_char("You are already healthy! ", ch);
return;
} else {
GET_MOVE(ch) -= 20;
GET_HIT(ch) += number(GET_LEVEL(ch)/2,GET_LEVEL(ch));
send_to_char("You bandage yourself. ", ch);
obj_from_char(obj);

if (GET_HIT(ch) >= GET_MAX_HIT(ch)){
send_to_char("You are now at full health! ", ch);
GET_HIT(ch) = GET_MAX_HIT(ch);
}
else
return;
}
}

This doesn't require ITEM_BANDAGES, just items with 'bandage' in the alias list. I hope this helps someone (and no credit is due to me)
BoxBoy waves happily....
[ Reply to this comment ]

Re: Bandages
by BoxBoy () on Friday, February 9th @ 11:45:59 PM
http://
erm....when i removed my color from the msgs i also managed to remove all the /r/n 's. So just add those at the end of all the send_to_chars, sorry about that.
[ Reply to this comment ]

viewlog.tar.gz
by D. Tyler Barnes () on Friday, March 2nd @ 10:37:31 AM
http://
In the viewlog patch, in the str_str function that it adds to utils.c, this:

else
chk = 0;

should be changed to

else {
i -= chk;
chk = 0;
}
[ Reply to this comment ]