Hello,
Thanks for your help I got the code for restore all! I was wondering if there
is any doc's that have most of the functions that will list the parameters
and returns. Like ACT for example. If I can read up on what to send it and
what it does I will have a better understanding of how this all works. That
means less questions from me to you!!! Well here is my ACMD(do_restore) code
incase anyone wants it or wants to make changes:
NOTE: This is only the top part of do_restore not the whole function because
I didn't change anything to the rest of it.
Thanks,
Albert
ACMD(do_restore)
{
struct char_data *vict;
struct descriptor_data *a, *next_desc; int i;
one_argument(argument, buf);
if (!str_cmp("all",buf))
{
for (a = descriptor_list; a; a = next_desc)
{
next_desc = a->next;
if (STATE(a) != CON_PLAYING || !(vict = a->character)
|| (!IS_NPC(vict) && GET_LEVEL(vict) >= GET_LEVEL(ch)))
continue;
GET_HIT(vict) = GET_MAX_HIT(vict);
GET_MANA(vict) = GET_MAX_MANA(vict);
GET_MOVE(vict) = GET_MAX_MOVE(vict);
act("You have been fully healed by $N!", FALSE, vict,
0, ch, TO_CHAR);
}
send_to_char("Okay.\r\n",ch);
return;
}
}
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST