diff options
author | n0n4m3 <none@none> | 2010-04-11 11:16:42 +0400 |
---|---|---|
committer | n0n4m3 <none@none> | 2010-04-11 11:16:42 +0400 |
commit | be95faff2370db63eedd812ab4e70bb87e34b570 (patch) | |
tree | d2db46e9e6161abe0dd8740461979b8309ef79c7 /src/game/NPCHandler.cpp | |
parent | 457df07bd4fd1b394cfcdbb63d5ff76e87fe8c89 (diff) |
Fix mail, professions, group loot, console spam, and some fixes. Big thx to TOM_RUS.
--HG--
branch : trunk
Diffstat (limited to 'src/game/NPCHandler.cpp')
-rw-r--r-- | src/game/NPCHandler.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/game/NPCHandler.cpp b/src/game/NPCHandler.cpp index 6019d545717..f6380016af0 100644 --- a/src/game/NPCHandler.cpp +++ b/src/game/NPCHandler.cpp @@ -273,22 +273,24 @@ void WorldSession::HandleTrainerBuySpellOpcode(WorldPacket & recv_data) _player->ModifyMoney(-int32(nSpellCost)); WorldPacket data(SMSG_PLAY_SPELL_VISUAL, 12); // visual effect on trainer - data << uint64(guid) << uint32(0xB3); + data << uint64(guid); + data << uint32(0xB3); // index from SpellVisualKit.dbc SendPacket(&data); data.Initialize(SMSG_PLAY_SPELL_IMPACT, 12); // visual effect on player - data << uint64(_player->GetGUID()) << uint32(0x016A); + data << uint64(_player->GetGUID()); + data << uint32(0x016A); // index from SpellVisualKit.dbc SendPacket(&data); // learn explicitly or cast explicitly if (trainer_spell->IsCastable()) - //FIXME: prof. spell entry in trainer list not marked gray until list re-open. _player->CastSpell(_player,trainer_spell->spell,true); else - _player->learnSpell(spellId,false); + _player->learnSpell(spellId, false); data.Initialize(SMSG_TRAINER_BUY_SUCCEEDED, 12); - data << uint64(guid) << uint32(trainer_spell->spell); + data << uint64(guid); + data << uint32(spellId); // should be same as in packet from client SendPacket(&data); } |