Found Small bug

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
2 years 10 months ago #7056 by JTP
Found Small bug was created by JTP
Small bug found in Stock sing:

You sing to his hi.

It dont take the name i try to sing to, it says his instead of name.
But code clearly says get_name(vict) ?
  half_chop(argument, buf, buf2);

  if (!*buf || !*buf2)
    send_to_char(ch, "Whom do you want to %s.. and what??\r\n", action_sing);
  else if (!(vict = get_char_vis(ch, buf, NULL, FIND_CHAR_ROOM)))
    send_to_char(ch, "%s", CONFIG_NOPERSON);
  else if (vict == ch)
    send_to_char(ch, "You can't get your mouth close enough to your ear...\r\n");
  else {
    char buf1[MAX_STRING_LENGTH];

    if (CONFIG_SPECIAL_IN_COMM && legal_communication(argument))
      parse_at(buf2);

    snprintf(buf1, sizeof(buf1), "$n %s you, '%s'", action_plur, buf2);
    act(buf1, FALSE, ch, 0, vict, TO_VICT);

    if ((!IS_NPC(ch)) && (PRF_FLAGGED(ch, PRF_NOREPEAT))) 
      send_to_char(ch, "%s", CONFIG_OK);
    else
      send_to_char(ch, "You %s %s, '%s'\r\n", action_sing, GET_NAME(vict), buf2);
    act(action_others, FALSE, ch, 0, vict, TO_NOTVICT);

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #7057 by WhiskyTest
Replied by WhiskyTest on topic Found Small bug
Please login to view the answers

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
2 years 10 months ago #7058 by JTP
Replied by JTP on topic Found Small bug
Please login to view the answers

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
2 years 10 months ago #7059 by JTP
Replied by JTP on topic Found Small bug
Please login to view the answers

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #7060 by Parnassus
Replied by Parnassus on topic Found Small bug
Please login to view the answers

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
2 years 10 months ago #7061 by JTP
Replied by JTP on topic Found Small bug
Please login to view the answers

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago - 2 years 10 months ago #7062 by WhiskyTest
Replied by WhiskyTest on topic Found Small bug
Please login to view the answers
Last edit: 2 years 10 months ago by WhiskyTest.

Please Log in or Create an account to join the conversation.

Time to create page: 0.154 seconds