Welcome to the Builder Academy

Question Worn containers

More
13 Dec 2018 18:27 #8272 by JTP
Replied by JTP on topic Worn containers
Ranged combat and quivers Sounds interesting

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

More
13 Dec 2018 19:20 #8273 by WhiskyTest
Replied by WhiskyTest on topic Worn containers
Turns out you only need to add FIND_OBJ_EQUIP in two places:

act.item.c
around line 355

ACMD(do_get)
Code:
if (cont_dotmode == FIND_INDIV) { - mode = generic_find(arg2, FIND_OBJ_INV | FIND_OBJ_ROOM, ch, &tmp_char, &cont); + mode = generic_find(arg2, FIND_OBJ_EQUIP | FIND_OBJ_INV | FIND_OBJ_ROOM, ch, &tmp_char, &cont); if (!cont)

around line 121
ACMD(do_put)
Code:
send_to_char(ch, "What do you want to put %s in?\r\n", obj_dotmode == FIND_INDIV ? "it" : "them"); } else { - generic_find(thecont, FIND_OBJ_INV | FIND_OBJ_ROOM, ch, &tmp_char, &cont); + generic_find(thecont, FIND_OBJ_EQUIP | FIND_OBJ_INV | FIND_OBJ_ROOM, ch, &tmp_char, &cont); if (!cont) send_to_char(ch, "You don't see %s %s here.\r\n", AN(thecont), thecont);
The following user(s) said Thank You: thomas

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

More
15 Dec 2018 16:54 #8275 by Sascha
Replied by Sascha on topic Worn containers
Whisky, you da best! :) Thanks!

Will you stand against the coming Storm? After the Breaking: STORMRIDERS MUD - atbmud.dune.net port 4000

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

Time to create page: 0.235 seconds