Welcome to the Builder Academy

Question Old circle mud snippet problem

More
26 Jul 2012 02:08 #443 by bakarus
the line in spec_procs.c:316 is this code block
Code:
310 if (!(obj == get_obj_in_list_vis(ch, buf, NULL, ch->carrying))) 311 { 312 send_to_char(ch, "You don't have that!\r\n"); 313 return (TRUE); 314 } 315 if (GET_OBJ_TYPE(obj) != ITEM_STAFF && 316 GET_OBJ_TYPE(obj) != ITEM_WAND) 317 { 318 send_to_char(ch, "Are you daft! You can't recharge that!\r\n"); 320 return (TRUE); 321 }

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

More
26 Jul 2012 02:36 #444 by Liko

bakarus wrote: the line in spec_procs.c:316 is this code block

Code:
310 if (!(obj == get_obj_in_list_vis(ch, buf, NULL, ch->carrying))) 311 { 312 send_to_char(ch, "You don't have that!\r\n"); 313 return (TRUE); 314 } 315 if (GET_OBJ_TYPE(obj) != ITEM_STAFF && 316 GET_OBJ_TYPE(obj) != ITEM_WAND) 317 { 318 send_to_char(ch, "Are you daft! You can't recharge that!\r\n"); 320 return (TRUE); 321 }


I'm not sure if it matters or not, but line 310 should be like this
Code:
if (!(obj = get_obj_in_list_vis(ch, buf, NULL, ch->carrying)))

All I took out was one of the equal signs.

Randian(0.0.0)
Owner/Developer
The following user(s) said Thank You: bakarus

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

More
26 Jul 2012 07:25 #446 by bakarus
That seemed to fix it, tested it a bunch and its still working w/o errors. No idea where that spare = came from :)

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

Time to create page: 0.353 seconds