Hey,
I have a bug that's been eluding me now for 2 weeks. Basically, it's in the
redit_oreset function, and the add_reset function in olc_act.c and olc.c
files respectively.
When I try to put an object into a mobile's inventory, it's not putting
things in right. the command I use is:
oreset <vnum> <mob name> none
Based upon the command structure:
if ( arg1[0] == '\0' || !is_number( arg1 ) )
{
send_to_char ( "Syntax: oreset <vnum> <args>\n\r", ch );
send_to_char ( " -no_args = into room\n\r", ch );
send_to_char ( " -<obj_name> = into obj\n\r", ch );
send_to_char ( " -<mob_name> <wear_loc> = into mob\n\r", ch );
return FALSE;
}
The result I get is:
REdit: Invalid wear_loc. '? wear-loc'
Now....There's more....
When I leave the wear-loc (none) blank in my command...it loads the object
in "as a light" of the mobile. Also, if I use the term "take" for the
wear-loc argument, it also loads "as a light"...this, in turn, is actually
equipping the mobile with the object. Which IS NOT even a light.
I've gone back to previous version backups, and the code works beautifully.
I've compared the two functions (even though I've never changed the
function) and I've found them to be the same.
The ONLY thing that I can think of is the underlying tables that the
function uses. The problem is, however, that I don't know exactly which
tables are called from tables.c and merc.h. Any help or info is greatly
greatly apreciated.
Thanks,
Alderon