Re: [CODE] Typing not the whole obj/moc/cha name

From: Mike Stilson (mike@velgarian.sytes.net)
Date: 02/18/02


On Mon, Feb 18, 2002 at 02:49:33AM -0300, Alex DaCosta wrote:
>> Perhaps something is trashing the aliases of it.
>> Did you stat sword while you had it?  How about while on the mobs?  Have
>> you modified the string matching code at all yet?  Could be something
>> real simple like forgetting that str_cmp() returns 0 on a match, if so,
>> or it could be a result of something somewhere else.
>>
>> -me
>
> Yes, stat and any other command work at start. On the mobs too. Things are
>running this way since I downloaded the files from the FTP site. So, the
>possibility of the code might had been changed could be discarted. I'm still
>taking a look at the functions in handler.c and interpreter.c but all I got
>till now was a headache. I'll keep on watching.
>

What I meant was, when you "force mob give sword goddude" or whatever,
once it's been given to you and you stat the object does it show the
proper alias list?  If you're REALLY running out of clues, this might
help:

--- src/handler.c       Sun Jan 13 16:46:14 2002
+++ src/handler.c.new   Mon Feb 18 10:26:04 2002
@@ -1135,10 +1135,13 @@ struct obj_data *get_obj_in_list_vis(str
     return (NULL);

   for (i = list; i && *number; i = i->next_content)
+         log("%s: ch: %s name %s i->name %s", __FUNCTION__, GET_NAME(ch), name, i->name);
     if (isname(name, i->name))
-      if (CAN_SEE_OBJ(ch, i))
+      if (CAN_SEE_OBJ(ch, i)) {
        if (--(*number) == 0)
          return (i);
+      }
+      else log("%s: ch can't see object %s", __FUNCTION__, GET_NAME(ch), i->name);

   return (NULL);
 }


Does "drop all" say that you drop a sword or "something"?  (In that case
it'd probably be some problem of not being able to see it for whatever
reason.)

-me

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT