Hello I wrote this code for a mud a few years ago and trying to
drop it in to circlemud
here is my problem
bzero(&af, sizeof(af));
af.type = SKILL_XX;
af.duration = 10;
skill_wait[] == 0, /*This is part of my mud FYI*/
af.modifier = 40;
af.location = APPLY_AC;
if (disarm_prim) {
af.bitvector = AFF_LOST1;
if (IS_AFFECTED(aff_who, AFF_LOSING1)) {
for (af_ptr = aff_who->affected, done = FALSE; !done && af_ptr;
af_ptr = af_ptr->next) {
if (af_ptr->type == SKILL_XX1 &&
af_ptr->bitvector & AFF_LOSING1) {
affect_remove(aff_who, af_ptr);
done = TRUE;
}
}
}
} else {
af.bitvector = AFF_LOST2;
if (IS_AFFECTED(aff_who, AFF_LOSING2)) {
for (af_ptr = aff_who->affected, done = FALSE; !done && af_ptr;
af_ptr = af_ptr->next) {
if (af_ptr->type == SKILL_XX1 &&
af_ptr->bitvector & AFF_LOSING2 {
affect_remove(aff_who, af_ptr);
done = TRUE;
}
}
}
}
affect_to_char(aff_who, &af);
WHERE HERE IS MY LOCAL VAR
struct obj_data *obj, *ch_obj;
struct char_data *tar, *aff_who = NULL;
struct affected_type af, af_ptr;
Well if you see whats i need todo to convert I been writing a convert
table. We have givin up on our copper base and going to circle.
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST