I was having a VERY similar problem.
The "get_wear_loc" (or whatever function it calls to check the location # vs
the "name" you give it, returns 0 if it doesn't find what it's looking
for... 0 = WEAR_LIGHT.
As for the NONE option.. add "none" as a position in your "wear_table" (or
whatever the table name is) in const.c, and assign the number for it to -1
(wear none).
- Valnir
----- Original Message -----
From: "Alderon" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, December 16, 2004 5:12 PM
Subject: OLC reset problem.
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
--
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom