boloca Posted September 14, 2016 at 05:44 PM Share Posted September 14, 2016 at 05:44 PM Abrir Input_main.cpp Procurar por: if (pinfo->type == CHAT_TYPE_SHOUT) { len = snprintf(chatbuf, sizeof(chatbuf), "|Hmsg:%s|h%s|h|r : %s", ch->GetName(), ch->GetName(), buf); } else { len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); } E substituir por : if (pinfo->type == CHAT_TYPE_SHOUT) { if (ch->GetGMLevel() == GM_IMPLEMENTOR) len = snprintf(chatbuf, sizeof(chatbuf), "|cFFFFA500|H|h%s|h|r |cFFFFA500|Hmsg:%s|h[PM]|h|r : %s", ch->GetName(), ch->GetName(), buf); else len = snprintf(chatbuf, sizeof(chatbuf), "%s |cFFFFA500|Hmsg:%s|h[PM]|h|r : %s", ch->GetName(), ch->GetName(), buf); } else { len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); } interfacemodule.py fica dentro do root Procurar por : def MakeHyperlinkTooltip(self, hyperlink): tokens = hyperlink.split(":") if tokens and len(tokens): type = tokens[0] if "item" == type: self.hyperlinkItemTooltip.SetHyperlinkItem(tokens) e adicionar abaixo: elif "msg" == type: self.OpenWhisperDialog(str(tokens[1])) Fim!!! Bom uso a todos. 2 Link to comment
PACI Posted September 14, 2016 at 06:24 PM Share Posted September 14, 2016 at 06:24 PM Falta a clientside, tens de colocar esse token (msg) no Hyperlink do interfaceModule. Link to comment
boloca Posted September 14, 2016 at 07:57 PM Author Share Posted September 14, 2016 at 07:57 PM Falta a clientside, tens de colocar esse token (msg) no Hyperlink do interfaceModule. Verdade Paci, tinha esquecido de citar, ja adicionei ao topico Link to comment
Metin2 Posted October 14, 2016 at 03:20 AM Share Posted October 14, 2016 at 03:20 AM eu fis como tutorial e não deu certo ! Link to comment
Sadness Posted October 14, 2016 at 10:17 AM Share Posted October 14, 2016 at 10:17 AM eu fis como tutorial e não deu certo ! Posta syserr Link to comment
Metin2 Posted October 14, 2016 at 03:26 PM Share Posted October 14, 2016 at 03:26 PM 1014 12:24:50555 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 20412 1014 12:24:50556 :: CPythonCharacterManager::CreateInstance VID[9114] Race[20412] 1014 12:24:50954 :: Unknown Server Command super_quest 5 | super_quest 1014 12:24:50998 :: Unknown Server Command FuriaQuestIndex 88 | FuriaQuestIndex 1014 12:24:50998 :: Unknown Server Command PontosFuria 100 | PontosFuria 1014 12:24:50999 :: Unknown Server Command sistem_negot_map 89 | sistem_negot_map 1014 12:24:50999 :: Unknown Server Command SetQuestIndex 90 | SetQuestIndex 1014 12:24:50999 :: Unknown Server Command BORRAR QID|91 | BORRAR 1014 12:24:59925 :: Unknown Server Command drs 658 | drs 1014 12:24:09394 :: Unknown Server Command drs 658 | drs Link to comment
[Admin] tierrilopes Posted October 15, 2016 at 12:19 PM Share Posted October 15, 2016 at 12:19 PM 1014 12:24:50555 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 20412 1014 12:24:50556 :: CPythonCharacterManager::CreateInstance VID[9114] Race[20412] 1014 12:24:50954 :: Unknown Server Command super_quest 5 | super_quest 1014 12:24:50998 :: Unknown Server Command FuriaQuestIndex 88 | FuriaQuestIndex 1014 12:24:50998 :: Unknown Server Command PontosFuria 100 | PontosFuria 1014 12:24:50999 :: Unknown Server Command sistem_negot_map 89 | sistem_negot_map 1014 12:24:50999 :: Unknown Server Command SetQuestIndex 90 | SetQuestIndex 1014 12:24:50999 :: Unknown Server Command BORRAR QID|91 | BORRAR 1014 12:24:59925 :: Unknown Server Command drs 658 | drs 1014 12:24:09394 :: Unknown Server Command drs 658 | drs Não venho nada relacionado com o tutorial. Por favor coloca print dos teus ficheiros com o tutorial colocado. Link to comment
Marco Posted November 8, 2016 at 12:46 PM Share Posted November 8, 2016 at 12:46 PM Se eu te mandar o meu " Input_main.cpp " podes add? Link to comment
Dynamic Things Posted November 8, 2016 at 12:51 PM Share Posted November 8, 2016 at 12:51 PM Se eu te mandar o meu " Input_main.cpp " podes add? Posta o teu "Input_main.cpp" Link to comment
Marco Posted November 8, 2016 at 01:25 PM Share Posted November 8, 2016 at 01:25 PM O meu está assim ... if (pinfo->type == CHAT_TYPE_SHOUT) { const int SHOUT_LIMIT_LEVEL = g_iUseLocale ? 15 : 3; if (ch->GetLevel() < SHOUT_LIMIT_LEVEL) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("외치기는 레벨 %d 이상만 사용 가능 합니다."), SHOUT_LIMIT_LEVEL); return (iExtraLen); } if (thecore_heart->pulse - (int) ch->GetLastShoutPulse() < passes_per_sec * 15) return (iExtraLen); ch->SetLastShoutPulse(thecore_heart->pulse); const char* kingdoms[3] = {"|cFFff0000|H|h[shinsoo]|cFFA7FFD4|H|h","|cFFFFFF00|H|h[Chunjo]|cFFA7FFD4|H|h","|cFF0080FF|H|h[Jinno]|cFFA7FFD4|H|h"}; char chatbuf_global[CHAT_MAX_LEN + 1]; int len_global_ = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s %s",kingdoms[ch->GetEmpire()-1], chatbuf); TPacketGGShout p; p.bHeader = HEADER_GG_SHOUT; p.bEmpire = ch->GetEmpire(); strlcpy(p.szText, chatbuf_global, sizeof(p.szText)); P2P_MANAGER::instance().Send(&p, sizeof(TPacketGGShout)); SendShout(chatbuf_global, ch->GetEmpire()); return (iExtraLen); } Link to comment
Marco Posted December 14, 2016 at 12:57 PM Share Posted December 14, 2016 at 12:57 PM UPii Link to comment
Marco Posted December 16, 2016 at 10:58 AM Share Posted December 16, 2016 at 10:58 AM UP Link to comment
Marco Posted June 9, 2017 at 06:05 PM Share Posted June 9, 2017 at 06:05 PM alguém me pode ajudar? Link to comment
Marco Posted June 9, 2017 at 06:18 PM Share Posted June 9, 2017 at 06:18 PM alguém me pode ajudar? (CONSEGUI) Link to comment
xabugas123 Posted July 3, 2017 at 08:20 AM Share Posted July 3, 2017 at 08:20 AM Não tenho nada disso na source. Link to comment
Marco Posted December 17, 2017 at 07:55 PM Share Posted December 17, 2017 at 07:55 PM (edited) Em 03/07/2017 em 09:20, xabugas123 disse: Não tenho nada disso na source. Coloca o teu Input_main.cpp aqui Edited December 17, 2017 at 08:10 PM by L2P Link to comment
Nukayool Posted December 17, 2017 at 08:16 PM Share Posted December 17, 2017 at 08:16 PM @L2P sabes implementar? ajuda-me é que o meu não é nada assim Link to comment
Marco Posted December 17, 2017 at 08:21 PM Share Posted December 17, 2017 at 08:21 PM 4 minutos atrás, Nukayool disse: @L2P sabes implementar? ajuda-me é que o meu não é nada assim mete aqui o Input_main ou manda-me no skype Link to comment
Sinval Posted February 26, 2018 at 02:49 AM Share Posted February 26, 2018 at 02:49 AM Boas! Funcionou bem, porém agora está mostrando o nome aqui, e antes não mostrava. http://prntscr.com/ijqwup Alguma solução? Grato desde já! Link to comment
xabugas123 Posted July 21, 2018 at 04:33 PM Share Posted July 21, 2018 at 04:33 PM Em 14/09/2016 em 18:44, boloca disse: Abrir Input_main.cpp Procurar por: if (pinfo->type == CHAT_TYPE_SHOUT) { len = snprintf(chatbuf, sizeof(chatbuf), "|Hmsg:%s|h%s|h|r : %s", ch->GetName(), ch->GetName(), buf); } else { len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); } E substituir por : if (pinfo->type == CHAT_TYPE_SHOUT) { if (ch->GetGMLevel() == GM_IMPLEMENTOR) len = snprintf(chatbuf, sizeof(chatbuf), "|cFFFFA500|H|h%s|h|r |cFFFFA500|Hmsg:%s|h[PM]|h|r : %s", ch->GetName(), ch->GetName(), buf); else len = snprintf(chatbuf, sizeof(chatbuf), "%s |cFFFFA500|Hmsg:%s|h[PM]|h|r : %s", ch->GetName(), ch->GetName(), buf); } else { len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); } interfacemodule.py fica dentro do root Procurar por : def MakeHyperlinkTooltip(self, hyperlink): tokens = hyperlink.split(":") if tokens and len(tokens): type = tokens[0] if "item" == type: self.hyperlinkItemTooltip.SetHyperlinkItem(tokens) e adicionar abaixo: elif "msg" == type: self.OpenWhisperDialog(str(tokens[1])) Fim!!! Bom uso a todos. não entendo já tentei encontrar isso em varias sources e nada. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now