Page 2 of 2 PrimeiroPrimeiro 12
Resultados 11 a 14 de 14

Tópico: PostVIP

  1. #11
    Membro Ada's Avatar
    Data de Ingresso
    Jan 2021
    Posts
    56
    Thanks Thanks Given 
    9
    Thanks Thanks Received 
    27
    Thanked in
    24 Posts
    Mencionado
    2 Post(s)
    País
    Brazil
    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.

  2. The Following User Says Thank You to Ada For This Useful Post:


  3. #12
    Membro robsonsoares's Avatar
    Data de Ingresso
    May 2017
    Posts
    185
    Thanks Thanks Given 
    148
    Thanks Thanks Received 
    24
    Thanked in
    18 Posts
    Mencionado
    7 Post(s)
    MEU HUMOR
    Amazed
    País
    Brazil
    Citação Originally Posted by Ada Ver Post
    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!!
    [/


    Meus Post ficam assim

    ja add no Messagen.txt



    5 Horas 24 minutes:------- Atualizado -------

    Citação Originally Posted by luciferlgs Ver Post
    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??
    Last edited by robsonsoares; 01/02/2021 at 06:21 PM.

  4. #13
    Developer C++ LorenStudio's Avatar




    Data de Ingresso
    Jul 2020
    Posts
    136
    Thanks Thanks Given 
    172
    Thanks Thanks Received 
    269
    Thanked in
    60 Posts
    Mencionado
    10 Post(s)
    País
    Canada
    [QUOTE=robsonsoares;53405]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 -------

    Citação Originally Posted by LuciferLGS Ver Post
    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!!
    [/


    Meus Post ficam assim

    ja add no Messagen.txt



    5 Horas 24 minutes:------- Atualizado -------






    pode dar um help??
    Me mande pm com alguma forma de contato rapida assim posso lhe ajudar


    PROJETOS:
    [Somente membros podem ver os links. ][Somente membros podem ver os links. ]

  5. #14
    Membro robsonsoares's Avatar
    Data de Ingresso
    May 2017
    Posts
    185
    Thanks Thanks Given 
    148
    Thanks Thanks Received 
    24
    Thanked in
    18 Posts
    Mencionado
    7 Post(s)
    MEU HUMOR
    Amazed
    País
    Brazil
    [QUOTE=LuciferLGS;53564]
    Citação Originally Posted by robsonsoares Ver Post
    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 -------


    Me mande pm com alguma forma de contato rapida assim posso lhe ajudar

    MANDEI la no seu pm

    deu isso


    • LuciferLGS excedeu sua cota de mensagens privadas armazenadas e não pode aceitar mais mensagens até que liberem algum espaço.


    OBRIGADO

    @LuciferLGS

    PELA AJUDA SISTEMA TA 100% LISO NO MEU PC!!

    OBRIGADO MESMO
    Last edited by robsonsoares; 02/02/2021 at 02:24 PM.

Page 2 of 2 PrimeiroPrimeiro 12

Permissões de Postagem

  • Você não pode iniciar novos tópicos
  • You may not post Resposta(s)
  • Você não pode enviar anexos
  • Você não pode editar suas mensagens
  •  
Sobre nós
Somos uma comunidade em atividade a 8 anos que aborda assuntos relacionados a games em geral, principalmente games MMORPG. e que busca sempre ajudar os membros através de conteúdos, tutoriais e suporte...
Nossos anunciantes
Hinetworks
VelozHost
InovHost
Rede Sociais