antiblock
Rodnia | Alpha & Omega
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
Rúben Alexandre

[C++]Efeito Ao Concluir Negócio

4 posts in this topic

Boa noite comunidade, acho que isto será interessante para muitos membros da CG. 

  • /usr/src/game_source/Srcs/Server/game/src
  • open - exchange.cpp
  • linha 485 procurar:

    if (item->GetVnum() >= 80003 && item->GetVnum() <= 80007)

                {
                    LogManager::instance().GoldBarLog(victim->GetPlayerID(), item->GetID(), EXCHANGE_TAKE, "");
                    LogManager::instance().GoldBarLog(GetOwner()->GetPlayerID(), item->GetID(), EXCHANGE_GIVE, "");
                }

  • adicionar: 

 

m_pOwner->CreateFly(FLY_SP_MEDIUM, victim);

for (int i = 0; i < 3; i++){
    m_pOwner->CreateFly(FLY_SP_SMALL, victim);
}

 
Exemplo: 
 


0825_084427.jpg

0825_084434.jpg
0825_084438.jpg
0825_084441.jpg
créditos - Just Metin

Share this post


Link to post
Share on other sites
antiblock
Cyphriun

Tá funcional ? ?? ?? ??????

Share this post


Link to post
Share on other sites
Em 12/01/2018 at 12:55, Danrlei Zaffari disse:

Alguem testou funciona?

            for (int i = 0; i < 3; i++)
            {
                m_pOwner->CreateFly(FLY_SP_SMALL, victim);
                m_pOwner->CreateFly(FLY_SP_MEDIUM, victim);
            }

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this