Welcome to the Builder Academy

Question do_drop - help

More
24 Oct 2017 15:07 - 24 Oct 2017 15:17 #7031 by JTP
do_drop - help was created by JTP
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);
Last edit: 24 Oct 2017 15:17 by JTP.

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

More
24 Oct 2017 22:14 #7032 by JTP
Replied by JTP on 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
24 Oct 2017 23:52 #7033 by WhiskyTest
Replied by WhiskyTest on 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.

More
25 Oct 2017 06:25 #7034 by JTP
Replied by JTP on 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.294 seconds