From 1b0baa51b59df113f3fc2200fc76ddc1f6a91ada Mon Sep 17 00:00:00 2001 From: w12x Date: Wed, 22 Oct 2008 08:43:09 -0500 Subject: [PATCH] [svn] Add missing SQL changes from prev. commit, also fix mistakenly commented out line. Patch provided by Visagalis. --HG-- branch : trunk --- sql/updates/102_world.sql | 2 ++ sql/world.sql | 1 + src/game/GossipDef.cpp | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 sql/updates/102_world.sql diff --git a/sql/updates/102_world.sql b/sql/updates/102_world.sql new file mode 100644 index 00000000000..7f0940cd315 --- /dev/null +++ b/sql/updates/102_world.sql @@ -0,0 +1,2 @@ +ALTER TABLE `quest_template` + ADD `RewHonorableKills` mediumint(9) unsigned NOT NULL default '0' AFTER `RewRepValue5`; diff --git a/sql/world.sql b/sql/world.sql index 2f9772636c4..924ef20df97 100644 --- a/sql/world.sql +++ b/sql/world.sql @@ -2682,6 +2682,7 @@ CREATE TABLE `quest_template` ( `RewRepValue3` mediumint(9) NOT NULL default '0', `RewRepValue4` mediumint(9) NOT NULL default '0', `RewRepValue5` mediumint(9) NOT NULL default '0', + `RewHonorableKills` mediumint(9) unsigned NOT NULL default '0', `RewOrReqMoney` int(11) NOT NULL default '0', `RewMoneyMaxLevel` int(10) unsigned NOT NULL default '0', `RewSpell` mediumint(8) unsigned NOT NULL default '0', diff --git a/src/game/GossipDef.cpp b/src/game/GossipDef.cpp index 36388e159ab..c044b179938 100644 --- a/src/game/GossipDef.cpp +++ b/src/game/GossipDef.cpp @@ -467,7 +467,8 @@ void PlayerMenu::SendQuestGiverQuestDetails( Quest const *pQuest, uint64 npcGUID data << uint32(pQuest->GetRewOrReqMoney()); } - // rewarded honor points. Multiply with 10 to satisfy client data << uint32(pQuest->GetRewSpell()); // reward spell, this spell will display (icon) (casted if RewSpellCast==0) + // rewarded honor points. Multiply with 10 to satisfy client + data << uint32(pQuest->GetRewSpell()); // reward spell, this spell will display (icon) (casted if RewSpellCast==0) data << uint32(10*Trinity::Honor::hk_honor_at_level(pSession->GetPlayer()->getLevel(), pQuest->GetRewHonorableKills())); data << uint32(pQuest->GetRewSpellCast()); // casted spell data << uint32(pQuest->GetCharTitleId()); // CharTitleId, new 2.4.0, player gets this title (id from CharTitles)