Can anyone explain this?

Post Reply
link
Developer
Posts: 169
Joined: Fri Jul 27, 2012 3:27 pm

Can anyone explain this?

Post by link » Wed Aug 22, 2012 6:31 pm

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?
Attachments
img_20120822_222039.png

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: Can anyone explain this?

Post by PrBlahBlahtson » Thu Aug 23, 2012 1:20 pm

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?
Last edited by PrBlahBlahtson on Thu Aug 23, 2012 1:40 pm, edited 2 times in total.

link
Developer
Posts: 169
Joined: Fri Jul 27, 2012 3:27 pm

Re: Can anyone explain this?

Post by link » Thu Aug 23, 2012 1:27 pm

17367101

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: Can anyone explain this?

Post by PrBlahBlahtson » Thu Aug 23, 2012 1:41 pm

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.

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: Can anyone explain this?

Post by PrBlahBlahtson » Thu Aug 23, 2012 1:50 pm

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.

link
Developer
Posts: 169
Joined: Fri Jul 27, 2012 3:27 pm

Re: Can anyone explain this?

Post by link » Thu Aug 23, 2012 2:33 pm

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.

codiddle
Posts: 56
Joined: Sat Aug 11, 2012 12:58 pm

Re: Can anyone explain this?

Post by codiddle » Sat Aug 25, 2012 3:42 pm

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.

link
Developer
Posts: 169
Joined: Fri Jul 27, 2012 3:27 pm

Re: Can anyone explain this?

Post by link » Sat Aug 25, 2012 5:15 pm

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.

codiddle
Posts: 56
Joined: Sat Aug 11, 2012 12:58 pm

Re: Can anyone explain this?

Post by codiddle » Sat Aug 25, 2012 7:15 pm

divine might sounds mighty awesome...

link
Developer
Posts: 169
Joined: Fri Jul 27, 2012 3:27 pm

Re: Can anyone explain this?

Post by link » Tue Aug 28, 2012 6:02 am

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 :)

Post Reply