Changeset 96 for trunk/src/game/GossipDef.cpp
- Timestamp:
- 11/19/08 13:35:09 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/GossipDef.cpp
r44 r96 25 25 #include "WorldPacket.h" 26 26 #include "WorldSession.h" 27 #include "Formulas.h" 27 28 28 29 GossipMenu::GossipMenu() … … 467 468 } 468 469 469 data << uint32(0); // Honor points reward, not implemented470 data << uint32( pQuest->GetRewSpell()); // reward spell, this spell will display (icon) (casted if RewSpellCast==0)470 // rewarded honor points. Multiply with 10 to satisfy client data << uint32(pQuest->GetRewSpell()); // reward spell, this spell will display (icon) (casted if RewSpellCast==0) 471 data << uint32(10*Trinity::Honor::hk_honor_at_level(pSession->GetPlayer()->getLevel(), pQuest->GetRewHonorableKills())); 471 472 data << uint32(pQuest->GetRewSpellCast()); // casted spell 472 473 data << uint32(pQuest->GetCharTitleId()); // CharTitleId, new 2.4.0, player gets this title (id from CharTitles) … … 542 543 data << uint32(pQuest->GetRewSpellCast()); // casted spell 543 544 544 data << uint32(0); // Honor points reward, not implemented 545 // rewarded honor points 546 data << uint32(Trinity::Honor::hk_honor_at_level(pSession->GetPlayer()->getLevel(), pQuest->GetRewHonorableKills())); 545 547 data << uint32(pQuest->GetSrcItemId()); 546 548 data << uint32(pQuest->GetFlags() & 0xFFFF); … … 676 678 677 679 data << uint32(pQuest->GetRewOrReqMoney()); 678 data << uint32(0x00); // new 2.3.0. Honor points 680 // rewarded honor points. Multiply with 10 to satisfy client 681 data << uint32(10*Trinity::Honor::hk_honor_at_level(pSession->GetPlayer()->getLevel(), pQuest->GetRewHonorableKills())); 679 682 data << uint32(0x08); // unused by client? 680 683 data << uint32(pQuest->GetRewSpell()); // reward spell, this spell will display (icon) (casted if RewSpellCast==0) 681 684 data << uint32(pQuest->GetRewSpellCast()); // casted spell 682 data << uint32(0 ); // Honor points reward, not implemented685 data << uint32(0x00); // unk, NOT honor 683 686 pSession->SendPacket( &data ); 684 687 sLog.outDebug( "WORLD: Sent SMSG_QUESTGIVER_OFFER_REWARD NPCGuid=%u, questid=%u",GUID_LOPART(npcGUID),pQuest->GetQuestId() );