Jump to content

[patch][8262] /played


Recommended Posts

Posted

As some of you may know /played stopped working after 3.x.x client switch.

This little patch will make the command running again.

void WorldSession::HandlePlayedTime(WorldPacket& /*recv_data*/)
{
   uint32 TotalTimePlayed = GetPlayer()->GetTotalPlayedTime();
   uint32 LevelPlayedTime = GetPlayer()->GetLevelPlayedTime();

   WorldPacket data(SMSG_PLAYED_TIME, 9);
   data << TotalTimePlayed;
   data << LevelPlayedTime;
-    data << uint8(0);
+    data << uint8(1);
   SendPacket(&data);
}

On the other hand, i think i missed something.

Patch writen by Tom_RUS with some modifications for 3.2.0 branch.

I think should be applied to 3.1.3 as well. ^_^

Posted
Well, now there's something strange... the /played command is being executed everytime. Even without player's consent =P

What do you mean by everytime?

If you mean everytime you login, I guess that is the correct behavior.

Posted

Well, we got the same strange behaviour. /played message occurs even if you don't use the /played command. It doesn't occur *everytime*, but in unconsistant time periods, let's say if server starts at about every 10-20 seconds, after a few minutes it only occurs after ~ 5 minutes, counting up every time it's posted (like an increasing timer).

strange thing ;)

Posted

Hm i can't tell what is causing it, but the played time gets sent quite often indeed...joined a group, accepted some quests and it showed up like 3-4 times, and a few more times during some dungeons we did.

Posted

When login in /played execute about 5 - 6 times after show the channel that i am joining on.

After that /played execute without reason when it wants.... continuously for all players ingame.

I revert the commit temporarily.

Sorry 4 my bad english :P

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use