do_drop - help

  • JTP
  • JTP's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
6 months 3 weeks ago - 6 months 3 weeks ago #7031 by JTP
JTP created the topic: do_drop - help
Trying to prevent dropping ITEM_QUEST, but it doesnt seem to work. Whats wrong ?
  argument = one_argument(argument, arg);

  if (!*arg) {
    send_to_char(ch, "What do you want to %s?\r\n", sname);
    return;
  } else if (is_number(arg)) {
    multi = atoi(arg);
    one_argument(argument, arg);
    if (!str_cmp("coins", arg) || !str_cmp("coin", arg))
      perform_drop_gold(ch, multi, mode, RDR);
    else if (multi <= 0)
      send_to_char(ch, "Yeah, that makes sense.\r\n");
    else if (!*arg)
      send_to_char(ch, "What do you want to %s %d of?\r\n", sname, multi);
    else if (!(obj = get_obj_in_list_vis(ch, arg, NULL, ch->carrying)))
      send_to_char(ch, "You don't seem to have any %ss.\r\n", arg);
    else if (OBJ_FLAGGED(obj, ITEM_QUEST) && GET_LEVEL(ch) < LVL_IMMORT)
    send_to_char(ch, "You dont wanna let go off that item!\r\n");
    else {
      do {
        next_obj = get_obj_in_list_vis(ch, arg, NULL, obj->next_content);
        amount += perform_drop(ch, obj, mode, sname, RDR);
        obj = next_obj;
      } while (obj && --multi);
    }
  } else {
    dotmode = find_all_dots(arg);
Last Edit: 6 months 3 weeks ago by JTP.

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

  • JTP
  • JTP's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
6 months 3 weeks ago #7032 by JTP
JTP replied the topic: do_drop - help
Because it seems that you can drop items you collect for quests, and pick them up again and quicker get to your goal in a quest to gather x amount of an item for a quest.

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

More
6 months 3 weeks ago #7033 by WhiskyTest
WhiskyTest replied the topic: do_drop - help
You should add it to perform_drop in act.item.c, not ACMD(do_drop)
Just add your change under the check for ITEM_NODROP

Or just add ITEM_NODROP to quest items

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

  • JTP
  • JTP's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
6 months 3 weeks ago #7034 by JTP
JTP replied the topic: do_drop - help
No drop wont let them turn in a quest where you gathered stuff for the quest.

I Will try look at perform drop Then.

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

Time to create page: 0.967 seconds