ACMD(do_petition): Help.

From: David Cole (tiznor@hotmail.com)
Date: 12/01/01


Hello,

Trying add petition, like the one on Sojourn III etc... I know you know what
sojourn is :p Well here it is, works great, but my problem is it returns
what you petitioned back to the PC but it does not print the petition to the
IMMORT+, its very odd, am i just not doing something correctly? :)

I basicly copyed do_say for simplicity, this is just for petition, there is
another function that i write to reply to the petition.

ACMD(do_petition)
{
  skip_spaces(&argument);

  if (!*argument)
    send_to_char("Yes, but WHAT do you want to petition?\r\n", ch);
  else {
    delete_doubledollar(argument);
  if (level > LVL_IMMORT) {
    sprintf(buf, "&r$n petitions, '&R%s&r'&n", argument);
    act(buf, FALSE, ch, 0, 0, TO_VICT | TO_SLEEP);
 }
    delete_doubledollar(argument);
    sprintf(buf, "&rYou petition, '&R%s&r'&n", argument);
    act(buf, FALSE, ch, 0, 0, TO_CHAR);
  }
}

Any help would be greatly appreciated. :)

Thanks,
Dave

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/24/03 PDT