HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
To make the Global Chat work for all kingdoms you need to open the file:
add this in locale_string.txt in share/locale/your country/
You can change Jinno, Shinsoo and Chunjo over locale_sting.txt
Yabancı Forum Alıntı
add under
#include "threeway_war.h" or under includes this:
and search for this:
and search for this:
with this:
Screen:
#include "threeway_war.h" or under includes this:
C++:
extern bool global_chat;
and search for this:
C++:
struct FuncShout
and search for this:
C++:
if (!d->GetCharacter() || (d->GetCharacter()->GetGMLevel() == GM_PLAYER && d->GetEmpire() != m_bEmpire))
return;
with this:
C++:
if(global_chat)
{
if (!d->GetCharacter())
return;
}else {
if (!d->GetCharacter() || (d->GetCharacter()->GetGMLevel() == GM_PLAYER && d->GetEmpire() != m_bEmpire))
return;
}
Screen:
search this
and add this:
Screen:
C++:
ch->SetLastShoutPulse(thecore_heart->pulse);
and add this:
C++:
if(global_chat)
{
char buf[256];
char chatbuf_global[CHAT_MAX_LEN + 1];
const BYTE char_empire = ch->GetEmpire();
if(char_empire == 1)
{
strlcpy(buf, LC_TEXT("Shinsoo"), sizeof(buf));
std::string kingdom_red = "|cFFff0000|H|h[";
kingdom_red += buf;
kingdom_red += "]|cFFA7FFD4|H|h";
sprintf(chatbuf_global, "%s %s", kingdom_red.c_str(), chatbuf);
} else if (char_empire == 2) {
strlcpy(buf, LC_TEXT("Chunjo"), sizeof(buf));
std::string kingdom_yel = "|cFFFFFF00|H|h[";
kingdom_yel += buf;
kingdom_yel += "]|cFFA7FFD4|H|h";
sprintf(chatbuf_global, "%s %s", kingdom_yel.c_str(), chatbuf);
} else if (char_empire == 3) {
strlcpy(buf, LC_TEXT("Jinno"), sizeof(buf));
std::string kingdom_blue = "|cFF0080FF|H|h[";
kingdom_blue += buf;
kingdom_blue += "]|cFFA7FFD4|H|h";
sprintf(chatbuf_global, "%s %s", kingdom_blue.c_str(), chatbuf);
}
TPacketGGShout p;
p.bHeader = HEADER_GG_SHOUT;
p.bEmpire = char_empire;
strlcpy(p.szText, chatbuf_global, sizeof(p.szText));
P2P_MANAGER::instance().Send(&p, sizeof(TPacketGGShout));
SendShout(chatbuf_global, ch->GetEmpire());
return (iExtraLen);
}
Screen:
search this:
int gPlayerMaxLevel = 99;
and add this
bool global_chat = false;
after search this
and add this
Screen:
int gPlayerMaxLevel = 99;
and add this
bool global_chat = false;
after search this
C++:
TOKEN("max_level")
{
str_to_number(gPlayerMaxLevel, value_string);
gPlayerMaxLevel = MINMAX(1, gPlayerMaxLevel, PLAYER_MAX_LEVEL_CONST);
fprintf(stderr, "PLAYER_MAX_LEVEL: %dn", gPlayerMaxLevel);
}
and add this
C++:
TOKEN("global_chat")
{
int flag = 0;
str_to_number(flag, value_string);
if (1 == flag)
{
global_chat = true;
fprintf(stderr, "GLOBAL_CHAT: %in", flag);
}
}
Screen:
search this
extern int gPlayerMaxLevel;
and add this
extern bool global_chat;
Screen:
extern int gPlayerMaxLevel;
and add this
extern bool global_chat;
Screen:
add this in locale_string.txt in share/locale/your country/
C++:
"Jinno";
"Jinno";
"Chunjo";
"Chunjo";
"Shinsoo";
"Shinsoo";
You can change Jinno, Shinsoo and Chunjo over locale_sting.txt
C++:
"Jinno";
"Blue Empire";
"Chunjo";
"Yellow Empire";
"Shinsoo";
"Red Empire";
Yabancı Forum Alıntı
rica ederimPaylaşım için teşekkürler![]()
To make the Global Chat work for all kingdoms you need to open the file:
add under
#include "threeway_war.h" or under includes this:
C++:extern bool global_chat;
and search for this:
C++:struct FuncShout
and search for this:
C++:if (!d->GetCharacter() || (d->GetCharacter()->GetGMLevel() == GM_PLAYER && d->GetEmpire() != m_bEmpire)) return;
with this:
C++:if(global_chat) { if (!d->GetCharacter()) return; }else { if (!d->GetCharacter() || (d->GetCharacter()->GetGMLevel() == GM_PLAYER && d->GetEmpire() != m_bEmpire)) return; }
Screen:
![]()
![]()
search this
C++:ch->SetLastShoutPulse(thecore_heart->pulse);
and add this:
C++:if(global_chat) { char buf[256]; char chatbuf_global[CHAT_MAX_LEN + 1]; const BYTE char_empire = ch->GetEmpire(); if(char_empire == 1) { strlcpy(buf, LC_TEXT("Shinsoo"), sizeof(buf)); std::string kingdom_red = "|cFFff0000|H|h["; kingdom_red += buf; kingdom_red += "]|cFFA7FFD4|H|h"; sprintf(chatbuf_global, "%s %s", kingdom_red.c_str(), chatbuf); } else if (char_empire == 2) { strlcpy(buf, LC_TEXT("Chunjo"), sizeof(buf)); std::string kingdom_yel = "|cFFFFFF00|H|h["; kingdom_yel += buf; kingdom_yel += "]|cFFA7FFD4|H|h"; sprintf(chatbuf_global, "%s %s", kingdom_yel.c_str(), chatbuf); } else if (char_empire == 3) { strlcpy(buf, LC_TEXT("Jinno"), sizeof(buf)); std::string kingdom_blue = "|cFF0080FF|H|h["; kingdom_blue += buf; kingdom_blue += "]|cFFA7FFD4|H|h"; sprintf(chatbuf_global, "%s %s", kingdom_blue.c_str(), chatbuf); } TPacketGGShout p; p.bHeader = HEADER_GG_SHOUT; p.bEmpire = char_empire; strlcpy(p.szText, chatbuf_global, sizeof(p.szText)); P2P_MANAGER::instance().Send(&p, sizeof(TPacketGGShout)); SendShout(chatbuf_global, ch->GetEmpire()); return (iExtraLen); }
Screen:
![]()
search this:
int gPlayerMaxLevel = 99;
and add this
bool global_chat = false;
after search this
C++:TOKEN("max_level") { str_to_number(gPlayerMaxLevel, value_string); gPlayerMaxLevel = MINMAX(1, gPlayerMaxLevel, PLAYER_MAX_LEVEL_CONST); fprintf(stderr, "PLAYER_MAX_LEVEL: %dn", gPlayerMaxLevel); }
and add this
C++:TOKEN("global_chat") { int flag = 0; str_to_number(flag, value_string); if (1 == flag) { global_chat = true; fprintf(stderr, "GLOBAL_CHAT: %in", flag); } }
Screen:
![]()
search this
extern int gPlayerMaxLevel;
and add this
extern bool global_chat;
Screen:
![]()
add this in locale_string.txt in share/locale/your country/
C++:"Jinno"; "Jinno"; "Chunjo"; "Chunjo"; "Shinsoo"; "Shinsoo";
You can change Jinno, Shinsoo and Chunjo over locale_sting.txt
C++:"Jinno"; "Blue Empire"; "Chunjo"; "Yellow Empire"; "Shinsoo"; "Red Empire";
![]()
Yabancı Forum Alıntı
Paylaşım için teşekkürler.
rica ederimPaylaşım için teşekkürler.
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 14
- Görüntüleme
- 1K
- Cevaplar
- 4
- Görüntüleme
- 359
- Cevaplar
- 28
- Görüntüleme
- 4K
- Cevaplar
- 5
- Görüntüleme
- 479
- Cevaplar
- 1
- Görüntüleme
- 185

