I don't remember if I still have that structure around or if that was for accountmessages only. Would have to check at home. For that bump on Thursday. Else, maybe stoneharry has it. You may as we'll try to reverse engineer it from the client. I may as well give it a look if i remember.
Quote from: "schlumpf"I don't remember if I still have that structure around or if that was for accountmessages only. Would have to check at home. For that bump on Thursday. Else, maybe stoneharry has it. You may as we'll try to reverse engineer it from the client. I may as well give it a look if i remember.https://github.com/stoneharry/Misc-WoW- ... ramxml.xmlhttps://github.com/stoneharry/Misc-WoW- ... tmessagingAccount messages only as far as I know.
Totally possible to remove it. Lua and XML only, pretty straight forward: look for stuff with KB_.Totally possible to replace it. Pages will be loaded from your server, XML files. Of course those again can just be database queries via rewrite rule. The base URL is given in some global string in framexml, iirc. Maybe just look for KB in globalstrings, should breads to find.The XML files read need a given structure. I don't remember if I still have that structure around or if that was for accountmessages only. Would have to check at home. For that bump on Thursday. Else, maybe stoneharry has it. You may as we'll try to reverse engineer it from the client. I may as well give it a look if i remember.
Quote from: "stoneharry"Quote from: "schlumpf"I don't remember if I still have that structure around or if that was for accountmessages only. Would have to check at home. For that bump on Thursday. Else, maybe stoneharry has it. You may as we'll try to reverse engineer it from the client. I may as well give it a look if i remember.https://github.com/stoneharry/Misc-WoW- ... ramxml.xmlhttps://github.com/stoneharry/Misc-WoW- ... tmessagingAccount messages only as far as I know.Awe, i was actually really hoping you would reply with the structure or a example. Hope you don't mind i poked around your repo a minute, the bug report viewer is useful and i completely forgot there was a table for that. The account message is cool, but last i heard it (sometimes) caused a random client crash.. or always caused a error on exit? Something like that.
-snip-
Script_KBSetup_BeginLoadingScript_KBSetup_IsLoadedScript_KBSetup_GetLanguageCountScript_KBSetup_GetLanguageDataScript_KBSetup_GetCategoryCountScript_KBSetup_GetCategoryDataScript_KBSetup_GetSubCategoryCountScript_KBSetup_GetSubCategoryDataScript_KBSetup_GetArticleHeaderCountScript_KBSetup_GetArticleHeaderDataScript_KBSetup_GetTotalArticleCountScript_KBQuery_BeginLoadingScript_KBQuery_IsLoadedScript_KBQuery_GetArticleHeaderCountScript_KBQuery_GetArticleHeaderDataScript_KBQuery_GetTotalArticleCountScript_KBArticle_BeginLoadingScript_KBArticle_IsLoadedScript_KBArticle_GetDataScript_KBSystem_GetMOTDScript_KBSystem_GetServerStatusScript_KBSystem_GetServerNotice
const char* base_url = NULL;switch (IsoLocaleStringToIsoEnum (g_currentLocaleName)){ case zhTW: case enTW: base_url = "http://support.worldofwarcraft.co.kr/kbtw/"; break; case koKR: base_url = "http://support.worldofwarcraft.co.kr/kb/"; break; case deDE: case enGB: case esES: case frFR: case ruRU: case itIT: case ptPT: base_url = "http://support.wow-europe.com/kb/"; break; case zhCN: case enCN: base_url = "http://cn.kbase.blizzard.com/kb/wow/"; break; default: base_url = "http://support.worldofwarcraft.com/kb/"; break;}
CDynamicString url;url.setCapacity (1024);url += base_url;url += "getKBSetup.xml";url += "?languageId=";url += g_currentLanguage;url += "&numArticles=";url += numArticles;url += "&pageNumber=";url += pageNumber;url += "&locale=";url += locale; // as string like "enGB"
switch (iso_enum) { default: return 0; case deDE: return 3; case esES: return 6; case frFR: return 2; case koKR: return 1; case zhCN: case enCN: return 4; case zhTW: case enTW: return 5; case esMX: return 7; case ruRU: return 8; case ptBR: case ptPT: return 10; case itIT: return 11; }
CDynamicString::operator__((CDynamicString *)&this, base_url); CDynamicString::operator__((CDynamicString *)&this, "sendKBArticleQuery.xml"); CDynamicString::operator__((CDynamicString *)&this, "?articleId="); CDynamicString::operator__((CDynamicString *)&this, a2); CDynamicString::operator__((CDynamicString *)&this, "&languageId="); CDynamicString::operator__((CDynamicString *)&this, *g_currentLanguage_ptr); CDynamicString::operator__((CDynamicString *)&this, "&searchType="); CDynamicString::operator__((CDynamicString *)&this, a3); CDynamicString::operator__((CDynamicString *)&this, "&locale="); CDynamicString::operator__((CDynamicString *)&this, v4); CDynamicString::operator__(&this, base_url); CDynamicString::operator__(&this, "sendKBQuery.xml"); CDynamicString::operator__(&this, 63); if ( userdata->m_eState == 1 ) SErrDisplayError(0x85100000u, "/Users/patchman/buildserver/wow-b/work/WoW-code/trunk/WoW/Source/Mac/../Ui/KnowledgeBase.cpp", 0x3EFu, "m_eState != KBState_LoadInProgress", 0, 1, 0, 286331153); v8 = a3 != -1; if ( !v5 ) { if ( !v8 ) goto LABEL_12; goto LABEL_25; } if ( v8 ) { CDynamicString::operator__(&this, "searchQuery="); CKBQuery::_AppendMangledSearchQuery(userdata, &this, v5); CDynamicString::operator__(&this, 38);LABEL_25: CDynamicString::operator__(&this, "categoryId="); CDynamicString::operator__(&this, a3); goto LABEL_11; } CDynamicString::operator__(&this, "searchQuery="); CKBQuery::_AppendMangledSearchQuery(userdata, &this, v5);LABEL_11: CDynamicString::operator__(&this, 38);LABEL_12: CDynamicString::operator__(&this, "languageId="); CDynamicString::operator__(&this, *g_currentLanguage_ptr); CDynamicString::operator__(&this, "&numArticles="); CDynamicString::operator__(&this, a4); CDynamicString::operator__(&this, "&pageNumber="); CDynamicString::operator__(&this, a5); CDynamicString::operator__(&this, "&locale="); CDynamicString::operator__(&this, g_currentLocaleName_ptr);