(mortal Annoyance) invisible item in container


  • retired

    Thorin pointed this one out to me:

    Here's his scarm's coffin:
    [quote] [ ][ ] 150296>
    look coffin
    This black onyx box was once the resting home for the villain of Reza,
    Scarm. It is highly polished, engraved with lines of gold, and reflects
    everything except the living. There is a lock on it in the shape of a
    wolf's head.

    From your studies you can conclude the following information:
    Object 'coffin scarm box trunk' is type container, extra flags glow burn_proof.
    Weight is 7, value is 0, level is 45.
    Fragility is Normal, condition is 100%. It has been repaired 0/5 times.
    It is made out of black onyx.
    This item comes from Reza.
    Items: 1/225 Weight: 4/1000 flags: closable
    Weight multiplier: 50%

    [ ][ ] 150296> [/quote]


    Fine, except when I looked in the coffin
    [quote] [ ][ ] 150296>
    look in coffin
    Scarm's coffin holds:
    Nothing.

    [ ][ ] 150296> [/quote]


    I took the coffin from him, loaded him up a replacement, saved my char and logged into shell and inspected my pfile:
    [quote] #O
    Vnum 4666
    Id 1085672298
    Version 2
    Nest 0
    ExtF 16777217
    Room 1
    Wear -1
    LastWear -1
    Cost 0
    Val 1000 1 0 225 50 0 0 0
    End

    #O
    Vnum 4021
    Id 1141061198
    Version 2
    Nest 1
    Room 150296
    Wear -1
    LastWear -1
    Cost 8000
    SpellNew haste~ 50 100
    Affr 1 55 -1 -2 2 0
    End [/quote]


    If you spot something odd here - you've got a better eye than me. Could there be a bug in the do_look() routine? Specifically, the look in container exception? Anyhow, I'll leave the coffin in my inventory so we can reproduce the bug if need be.

    Cheers,

    Vizz.

    PS - it has to be more than do_look(), as I couldn't get the object out using "get all coffin" either... hmm...

  • retired

    Hmm, the obj might have aciddently gotten the "hidden" extra flag set on it, which hides it from view. Try removing its extra flags in your pfile and trying again?

  • registered

    I think this also has something to do with object LOADING too…. Why? This is present for the object since it got loaded. This generally only occured with Scarm's coffin (I could be mistaken on that) and was not a 100% occurance. 1) Why would it load anything into the object unless stated in the resets (which I can't look at)? 2) Why the SAME object. It seems to be just the titan guardian's hammer that gets put into the coffin like this. Every occurance I've seen of this bug had that as the object.

  • retired

    After looking at it through the debugger, this stems from the fact that the titan guardian hammer has "hidden" flag on it for some reason. This is a utility flag which gets set on objects which are hidden with the "hide" command and are thus completely hidden from view until they are found with "search" which flips the flag bit. It shouldn't EVER be on inventory items for any reason. I hardcoded it so that "hidden" can't be set on objects for any reason - once again this is a utility flag, not really something that should be set. I also added a bit of code to flip the flag on any inventory items which might have it on, on player log-in. Idea for self: in the future, implement a utility bitfield for objects to put flags which imms aren't supposed to set.

Log in to reply