
Originally Posted by
Ada
Olá, robsonsoares boa tarde.
Infelizmente eu não possuo nenhum vídeo referente a desenvolvimento de MU Online.
Mais te indico estudar Lógica de Programação, pra você ter uma base de como funciona uma estrutura de um código C++, não apenas desta Linguagem, mais de tantas outras.
Abraço.
obrigado pela atenção
10 Dias 19 Horas:------- Atualizado -------
As minhas mensagens fica assim
sendo a ja add elas em Messagens,txt

2 minutes:------- Atualizado -------
[QUOTE=LuciferLGS;51637]Bom como eu ando fazendo 2 projetos quase solo as vezes a cabeça esquenta e vou brincar um pouco na source de mu tals.. no meio dessa brincadeira eu acabei fazendo um sistema antigo de post vip.
OBS: ESSA NÃO É A MELHOR FORMA DE SE FAZER ISSO, USE ESSA BASE PARA APRIMORAR O MESMO.
CommandManager.cpp
Código:
bool CCommandManager::CommandPost(LPOBJ lpObj,char* arg) // OK{
gFilter.CheckSyntax(arg);
if (gServerInfo.m_CommandPostVIP[lpObj->AccountLevel] == 0)
{
GDGlobalPostSend(gMapServerManager.GetMapServerGroup(),0,lpObj->Name,arg);
}
if (gServerInfo.m_CommandPostVIP[lpObj->AccountLevel] == 1)
{
PostMessage2(lpObj->Name,gMessage.GetMessage(1534),arg);
}
if(gServerInfo.m_CommandPostVIP[lpObj->AccountLevel] == 2)
{
PostMessage3(lpObj->Name,gMessage.GetMessage(1535),arg);
}
if(gServerInfo.m_CommandPostVIP[lpObj->AccountLevel] == 3)
{
PostMessage4(lpObj->Name,gMessage.GetMessage(1536),arg);
}
gLog.Output(LOG_COMMAND,"[CommandPost][%s][%s] - (Message: %s)",lpObj->Account,lpObj->Name,arg);
return 1;
}
ServerInfo.H
Código:
int m_CommandPostVIP[MAX_ACCOUNT_LEVEL];
ServerInfo.CPP
Código:
this->m_CommandPostVIP[0] = GetPrivateProfileInt(section,"CommandPostVIP_AL0",0,path);
this->m_CommandPostVIP[1] = GetPrivateProfileInt(section,"CommandPostVIP_AL1",1,path);
this->m_CommandPostVIP[2] = GetPrivateProfileInt(section,"CommandPostVIP_AL2",2,path);
this->m_CommandPostVIP[3] = GetPrivateProfileInt(section,"CommandPostVIP_AL3",3,path);
Message.txt
Código:
1534 "[FREE] %s"
1535 "[VIP1] %s"
1536 "[VIP2] %s"
LEMBRANDO USE ISSO COMO BASE PARA FAZER ALGO MELHOR!
5 Horas 24 minutes:------- Atualizado -------

Originally Posted by
luciferlgs
bom como eu ando fazendo 2 projetos quase solo as vezes a cabeça esquenta e vou brincar um pouco na source de mu tals.. No meio dessa brincadeira eu acabei fazendo um sistema antigo de post vip.
Obs: Essa não é a melhor forma de se fazer isso, use essa base para aprimorar o mesmo.
Commandmanager.cpp
Código:
bool ccommandmanager::commandpost(lpobj lpobj,char* arg) // ok{
gfilter.checksyntax(arg);
if (gserverinfo.m_commandpostvip[lpobj->accountlevel] == 0)
{
gdglobalpostsend(gmapservermanager.getmapservergroup(),0,lpobj->name,arg);
}
if (gserverinfo.m_commandpostvip[lpobj->accountlevel] == 1)
{
postmessage2(lpobj->name,gmessage.getmessage(1534),arg);
}
if(gserverinfo.m_commandpostvip[lpobj->accountlevel] == 2)
{
postmessage3(lpobj->name,gmessage.getmessage(1535),arg);
}
if(gserverinfo.m_commandpostvip[lpobj->accountlevel] == 3)
{
postmessage4(lpobj->name,gmessage.getmessage(1536),arg);
}
glog.output(log_command,"[commandpost][%s][%s] - (message: %s)",lpobj->account,lpobj->name,arg);
return 1;
}
serverinfo.h
Código:
int m_commandpostvip[max_account_level];
serverinfo.cpp
Código:
this->m_commandpostvip[0] = getprivateprofileint(section,"commandpostvip_al0",0,path);
this->m_commandpostvip[1] = getprivateprofileint(section,"commandpostvip_al1",1,path);
this->m_commandpostvip[2] = getprivateprofileint(section,"commandpostvip_al2",2,path);
this->m_commandpostvip[3] = getprivateprofileint(section,"commandpostvip_al3",3,path);
message.txt
Código:
1534 "[free] %s"
1535 "[vip1] %s"
1536 "[vip2] %s"
lembrando use isso como base para fazer algo melhor!!
pode dar um help??