PDA

View Full Version : Messageshell.cpp Question



fransick
07-27-2012, 02:59 PM
One new thing I've noticed is that the messageshell is reporting all spells as taking zero seconds to cast. I've looked at the spells_us.txt and cast time does not seem to have shifted so I am little curious why showeq is no longer showing cast time in the terminal window. Here's the snipped from messageshell.cpp that reports cast time:


spellName = spell_name(bcast->spellId);

tempStr.sprintf( "%s%s' - Casting time is %g Second%s",
tempStr.ascii(),
(const char*)spellName, casttime,
casttime == 1 ? "" : "s");

m_messages->addMessage(MT_Spell, tempStr);

Anyone able to figure out what is askew? It's not vital to fix but its been on my radar since the patch and I cannot figure it out.

I wonder if it has something to do with cast time modifiers having changed. My look was only at cast time when unmodified. How does Showeq know that while it normally takes 12 seconds to cast a spell that it really only takes 6 seconds due to modifiers I get from armour I am wearing?

purple
07-29-2012, 08:54 PM
I have no idea, but I'd look at the spell cast struct. Maybe the server tells the client how long the spell takes.

DavidDeFord
08-06-2012, 12:36 AM
I am also in a fix for it,I am unable to synchronize spell tracker.