[8412] Update some new and old client supported shift-links to proper format. Author: VladimirMangos

* List all client and server side supported shift-link types updated in Chat.cpp
    * Now Henchant anf Hglyph links can be used in commands as spell links.
    * Hitem and Hquest links changed to client supported form.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-24 20:30:52 -05:00
parent 4a1a82c5e2
commit 5df31bd4b3
4 changed files with 40 additions and 12 deletions

View File

@@ -3569,7 +3569,7 @@ bool ChatHandler::HandleLookupQuestCommand(const char* args)
}
if (m_session)
PSendSysMessage(LANG_QUEST_LIST_CHAT,qinfo->GetQuestId(),qinfo->GetQuestId(),title.c_str(),statusStr);
PSendSysMessage(LANG_QUEST_LIST_CHAT,qinfo->GetQuestId(),qinfo->GetQuestId(),qinfo->GetQuestLevel(),title.c_str(),statusStr);
else
PSendSysMessage(LANG_QUEST_LIST_CONSOLE,qinfo->GetQuestId(),title.c_str(),statusStr);
@@ -3606,7 +3606,7 @@ bool ChatHandler::HandleLookupQuestCommand(const char* args)
}
if (m_session)
PSendSysMessage(LANG_QUEST_LIST_CHAT,qinfo->GetQuestId(),qinfo->GetQuestId(),title.c_str(),statusStr);
PSendSysMessage(LANG_QUEST_LIST_CHAT,qinfo->GetQuestId(),qinfo->GetQuestId(),qinfo->GetQuestLevel(),title.c_str(),statusStr);
else
PSendSysMessage(LANG_QUEST_LIST_CONSOLE,qinfo->GetQuestId(),title.c_str(),statusStr);
@@ -5544,7 +5544,7 @@ bool ChatHandler::HandleQuestAdd(const char* args)
}
// .addquest #entry'
// number or [name] Shift-click form |color|Hquest:quest_id|h[name]|h|r
// number or [name] Shift-click form |color|Hquest:quest_id:quest_level|h[name]|h|r
char* cId = extractKeyFromLink((char*)args,"Hquest");
if(!cId)
return false;
@@ -5598,7 +5598,7 @@ bool ChatHandler::HandleQuestRemove(const char* args)
}
// .removequest #entry'
// number or [name] Shift-click form |color|Hquest:quest_id|h[name]|h|r
// number or [name] Shift-click form |color|Hquest:quest_id:quest_level|h[name]|h|r
char* cId = extractKeyFromLink((char*)args,"Hquest");
if(!cId)
return false;
@@ -5648,7 +5648,7 @@ bool ChatHandler::HandleQuestComplete(const char* args)
}
// .quest complete #entry
// number or [name] Shift-click form |color|Hquest:quest_id|h[name]|h|r
// number or [name] Shift-click form |color|Hquest:quest_id:quest_level|h[name]|h|r
char* cId = extractKeyFromLink((char*)args,"Hquest");
if(!cId)
return false;