Trying to prevent dropping ITEM_QUEST, but it doesnt seem to work. Whats wrong ?
Code:
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);