PDA

View Full Version : Item quests and charms


realityincarnate
05-02-2009, 07:00 PM
I've been working on putting together an item extension to the quest system for use with intelligent and evolving items and things with scaling statistics (like a lot of the charms). Surprisingly enough (at least to me), the perl modifications went very smoothly and I now have a couple of basic test effects in place, such as a sword that complains when you unequip it.

The problem I ran into was with charms. If an item is sent to the client with a charmfileid value, the client treats it as if all stats are 0. It must be expecting some sort of scaling value, but I have no idea where it would go. The client doesn't send any other packets when equipping charms, and playing around with some of the unknown values in the item serialization has gotten me a few empty inventories, one zone crash, and not much else.

I was wondering if anyone has any idea where this data goes? The other alternative is to do the stat calculations and then send the client a modified item with the stats already scaled and the charmfileid set to 0, but I'd prefer to do it properly if at all possible.

KLS
05-02-2009, 07:33 PM
Easy fix is to not send the charm field on items that are charm quest enabled.