diff options
| author | Shauren <shauren.trinity@gmail.com> | 2018-11-12 23:27:28 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2018-11-12 23:27:28 +0100 |
| commit | 5bfb1cc960edd74716d3d0c65dd5aaf1ce34aa43 (patch) | |
| tree | 3810a801610f659ac1b651566a37e9f93eb6c21d /src/server/scripts | |
| parent | d087f113ca831efb28810e08be68385f871687a8 (diff) | |
Core/Chat: Updated quest chat link format
Diffstat (limited to 'src/server/scripts')
| -rw-r--r-- | src/server/scripts/Commands/cs_lookup.cpp | 12 | ||||
| -rw-r--r-- | src/server/scripts/Commands/cs_quest.cpp | 8 |
2 files changed, 14 insertions, 6 deletions
diff --git a/src/server/scripts/Commands/cs_lookup.cpp b/src/server/scripts/Commands/cs_lookup.cpp index 1c235bb8483..d1eaa9198f5 100644 --- a/src/server/scripts/Commands/cs_lookup.cpp +++ b/src/server/scripts/Commands/cs_lookup.cpp @@ -658,7 +658,11 @@ public: } if (handler->GetSession()) - handler->PSendSysMessage(LANG_QUEST_LIST_CHAT, qInfo->GetQuestId(), qInfo->GetQuestId(), qInfo->GetQuestLevel(), title.c_str(), statusStr); + handler->PSendSysMessage(LANG_QUEST_LIST_CHAT, qInfo->GetQuestId(), qInfo->GetQuestId(), + handler->GetSession()->GetPlayer()->GetQuestLevel(qInfo), + handler->GetSession()->GetPlayer()->GetQuestMinLevel(qInfo), + qInfo->GetQuestMaxScalingLevel(), qInfo->GetQuestScalingFactionGroup(), + title.c_str(), statusStr); else handler->PSendSysMessage(LANG_QUEST_LIST_CONSOLE, qInfo->GetQuestId(), title.c_str(), statusStr); @@ -706,7 +710,11 @@ public: } if (handler->GetSession()) - handler->PSendSysMessage(LANG_QUEST_LIST_CHAT, qInfo->GetQuestId(), qInfo->GetQuestId(), qInfo->GetQuestLevel(), title.c_str(), statusStr); + handler->PSendSysMessage(LANG_QUEST_LIST_CHAT, qInfo->GetQuestId(), qInfo->GetQuestId(), + handler->GetSession()->GetPlayer()->GetQuestLevel(qInfo), + handler->GetSession()->GetPlayer()->GetQuestMinLevel(qInfo), + qInfo->GetQuestMaxScalingLevel(), qInfo->GetQuestScalingFactionGroup(), + title.c_str(), statusStr); else handler->PSendSysMessage(LANG_QUEST_LIST_CONSOLE, qInfo->GetQuestId(), title.c_str(), statusStr); diff --git a/src/server/scripts/Commands/cs_quest.cpp b/src/server/scripts/Commands/cs_quest.cpp index 6691158360c..cb9cacdcc7b 100644 --- a/src/server/scripts/Commands/cs_quest.cpp +++ b/src/server/scripts/Commands/cs_quest.cpp @@ -64,7 +64,7 @@ public: } // .addquest #entry' - // number or [name] Shift-click form |color|Hquest:quest_id:quest_level|h[name]|h|r + // number or [name] Shift-click form |color|Hquest:quest_id:quest_level:min_level:max_level:scaling_faction|h[name]|h|r char* cId = handler->extractKeyFromLink((char*)args, "Hquest"); if (!cId) return false; @@ -112,7 +112,7 @@ public: } // .removequest #entry' - // number or [name] Shift-click form |color|Hquest:quest_id:quest_level|h[name]|h|r + // number or [name] Shift-click form |color|Hquest:quest_id:quest_level:min_level:max_level:scaling_faction|h[name]|h|r char* cId = handler->extractKeyFromLink((char*)args, "Hquest"); if (!cId) return false; @@ -170,7 +170,7 @@ public: } // .quest complete #entry - // number or [name] Shift-click form |color|Hquest:quest_id:quest_level|h[name]|h|r + // number or [name] Shift-click form |color|Hquest:quest_id:quest_level:min_level:max_level:scaling_faction|h[name]|h|r char* cId = handler->extractKeyFromLink((char*)args, "Hquest"); if (!cId) return false; @@ -268,7 +268,7 @@ public: } // .quest reward #entry - // number or [name] Shift-click form |color|Hquest:quest_id:quest_level|h[name]|h|r + // number or [name] Shift-click form |color|Hquest:quest_id:quest_level:min_level:max_level:scaling_faction|h[name]|h|r char* cId = handler->extractKeyFromLink((char*)args, "Hquest"); if (!cId) return false; |
