Page 1 of 1

Can anyone explain this?

Posted: Wed Aug 22, 2012 6:31 pm
by link
I'm able to pawn chests in bcnm's but this is what i see. Anyone know why?

The chest spawns in the correct location but there is no chest?

Re: Can anyone explain this?

Posted: Thu Aug 23, 2012 1:20 pm
by PrBlahBlahtson
What's the NPC ID of that chest?

Edit:
Hmm, started looking over the NPCs in ZoneID 144, and the look data is inconsistent. Most of them seem to be 0x000032 (@costume 50), which is invisible/nothing. 17367182 is 0x0000C003 (03C0, @costume 960) which looks like a chest with iron/silver bands. 17367243 and 17367245 are 0x0000C103 (961) which is a chest with gold/brass bands.

If I had to guess, most of the chests either have the wrong look data, or SE changes the look data to make them appear somehow. Does that answer your question?

Re: Can anyone explain this?

Posted: Thu Aug 23, 2012 1:27 pm
by link
17367101

Re: Can anyone explain this?

Posted: Thu Aug 23, 2012 1:41 pm
by PrBlahBlahtson
Gah! \o/ You replied quickly. 7101 is an invisible chest atm. Either needs the look data changed in the database, or needs its look changed via scripting somehow.

Re: Can anyone explain this?

Posted: Thu Aug 23, 2012 1:50 pm
by PrBlahBlahtson
Oh, just occurred to me. 50 may be the correct ID, and different animations make it visible/open. npc:setAnimation() in a script will let you send animations, if I remember right. You can't test with yourself in costume, sadly.

I have no idea how SE made them untargetable if that's the case, though.

Re: Can anyone explain this?

Posted: Thu Aug 23, 2012 2:33 pm
by link
Yes that makes sence and thanks for that bro. So in the core I dont believe theres anything wrong with my code. I was thinking maybe a DB error. Ill try some animation tactics and hope for the best.

Re: Can anyone explain this?

Posted: Sat Aug 25, 2012 3:42 pm
by codiddle
good luck. I was wondering if there's any plans to make coffers random in the future? If so, would it be worth scripting AF coffers yet? I saw it uses a Treasure.lua and I wasn't sure if that's going to be moved or changed in the future...

If nobody knows, then I'll just assume it'll stay the way it is and script it.

Re: Can anyone explain this?

Posted: Sat Aug 25, 2012 5:15 pm
by link
Yo Cod, I dont plan to do anything on random coffer spawning. I've left this bit alone for awhile, working on divine might at the moment, might go back to it after I finish it.

Re: Can anyone explain this?

Posted: Sat Aug 25, 2012 7:15 pm
by codiddle
divine might sounds mighty awesome...

Re: Can anyone explain this?

Posted: Tue Aug 28, 2012 6:02 am
by link
PrBlahBlahtson wrote:What's the NPC ID of that chest?

Edit:
Hmm, started looking over the NPCs in ZoneID 144, and the look data is inconsistent. Most of them seem to be 0x000032 (@costume 50), which is invisible/nothing. 17367182 is 0x0000C003 (03C0, @costume 960) which looks like a chest with iron/silver bands. 17367243 and 17367245 are 0x0000C103 (961) which is a chest with gold/brass bands.

If I had to guess, most of the chests either have the wrong look data, or SE changes the look data to make them appear somehow. Does that answer your question?

Yes that worked. Chest now spawns on mob death, thanks very much :)