Author Topic: event 'lock.c' behaves oddly  (Read 1870 times)

adam_g

  • Guest
event 'lock.c' behaves oddly
« on: November 27, 2006, 09:56:58 am »
i tried to make a key to this box :



#include <lib.h>



inherit LIB_STORAGE;



void create() {

    ::create();

    SetKeyName("wallbox");

    SetId( ({ "box" }) );

    SetAdjectives( ({ "generic","nondescript" }) );

    SetShort("a box in a wall");

    SetLong("It is a thing that holds other things, in a wall");

    SetCanLock(1);

    SetCanClose(1);

    SetMass(274);

    SetBaseCost("silver",1);

    SetMaxCarry(2500);

    SetKey("Sample Key");

}

void init(){

    ::init();

}



but when i try to lock/unlock it this error message pops up :



---

*call_other() couldn't find object

Object: /realms/thalann/area/obj/wallbox#331 (/lib/events/lock.c) at line

95



'<function>' at /secure/save/creators/t/thalann (<function>) at /:0

'cmdAll' at /secure/save/creators/t/thalann (/lib/command.c) at line 72

'do_lock_obj_with_obj' at /verbs/items/lock at line 37

'eventLock' at /realms/thalann/area/obj/wallbox#331 (/lib/events/lock.c) at

line 95

Trace written to /log/runtime



 what does this mean? and could anyone help me solve it?

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1022
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
event 'lock.c' behaves oddly
« Reply #1 on: November 27, 2006, 10:37:57 am »

It means you found a bug!



I created a fix for it, you can find it here:



http://dead-souls.net/fixes.html#2.1.1">http://dead-souls.net/fixes.html#2.1.1