ACMD(do_petition): Help.

From: David Cole (
Date: 12/01/01


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.


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

Any help would be greatly appreciated. :)


   | FAQ: |
   | Archives: |

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