antiblock
Cyphriun
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
DarkMaster

71051 Jolla 71052 Arumaka ao usar não gastar !

Question

Eu preciso de ajuda o pergaminho do aprimoramento está infinito e eu quero tirar alguém pode ajudar?

 

Alguém pode dar uma força ?

Share this post


Link to post
Share on other sites

10 answers to this question

  • 0

source game/char_item.cpp -> procuras pelos ID's (ou pelo subtype, não sei os nomes brasileiros)

 

6/7 procuras pelos ID's dos itens, 1/4 pelos subtypes...

Share this post


Link to post
Share on other sites
antiblock
Cyphriun
  • 0
1 hora atrás, Karbust™ # PT disse:

source game/char_item.cpp -> procuras pelos ID's (ou pelo subtype, não sei os nomes brasileiros)

 

6/7 procuras pelos ID's dos itens, 1/4 pelos subtypes...

Obrigado irei tentar !

 

Share this post


Link to post
Share on other sites
  • 0

                    case 71051 :
                                {
                                    LPITEM item2;

                                    if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
                                        return false;
                                   if (ITEM_COSTUME == item2->GetType())
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
                                        return false;
                                    }
                                    if (item2->IsExchanging() || item2->IsEquipped())
                                        return false;

                                    if (item2->GetAttributeSetIndex() == -1)
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
                                        return false;
                                    }

                                    if (item2->AddRareAttribute() == true)
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("성공적으로 속성이 추가 되었습니다"));

                                        int iAddedIdx = item2->GetRareAttrCount() + 4;
                                        char buf[21];
                                        snprintf(buf, sizeof(buf), "%u", item2->GetID());

                                        LogManager::instance().ItemLog(
                                                GetPlayerID(),
                                                item2->GetAttributeType(iAddedIdx),
                                                item2->GetAttributeValue(iAddedIdx),
                                                item->GetID(),
                                                "ADD_RARE_ATTR",
                                                buf,
                                                GetDesc()->GetHostName(),
                                                item->GetOriginalVnum());

                                        item->SetCount(item->GetCount() - 1);
                                    }
                                    else
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("더 이상 이 아이템으로 속성을 추가할 수 없습니다"));
                                    }
                                }
                                break;

                            case 71052 : 
                                {

                                    LPITEM item2;

                                    if (!IsValidItemPosition(DestCell) || !(item2 = GetItem(DestCell)))
                                        return false;
                                   Hades
                                   if (ITEM_COSTUME == item2->GetType())
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
                                        return false;
                                    }
                                    if (item2->IsExchanging() || item2->IsEquipped())
                                        return false;

                                    if (item2->GetAttributeSetIndex() == -1)
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
                                        return false;
                                    }

                                    if (item2->ChangeRareAttribute() == true)
                                    {
                                        char buf[21];
                                        snprintf(buf, sizeof(buf), "%u", item2->GetID());
                                        LogManager::instance().ItemLog(this, item, "CHANGE_RARE_ATTR", buf);

                                        item->SetCount(item->GetCount() - 1);
                                    }
                                    else
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("변경 시킬 속성이 없습니다"));
                                    }
                                }
                                break;

Share this post


Link to post
Share on other sites
  • 0
21 horas atrás, hades1997 disse:

                    case 71051 :
                                {
                                    LPITEM item2;

                                    if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
                                        return false;
                                   if (ITEM_COSTUME == item2->GetType())
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
                                        return false;
                                    }
                                    if (item2->IsExchanging() || item2->IsEquipped())
                                        return false;

                                    if (item2->GetAttributeSetIndex() == -1)
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
                                        return false;
                                    }

                                    if (item2->AddRareAttribute() == true)
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("성공적으로 속성이 추가 되었습니다"));

                                        int iAddedIdx = item2->GetRareAttrCount() + 4;
                                        char buf[21];
                                        snprintf(buf, sizeof(buf), "%u", item2->GetID());

                                        LogManager::instance().ItemLog(
                                                GetPlayerID(),
                                                item2->GetAttributeType(iAddedIdx),
                                                item2->GetAttributeValue(iAddedIdx),
                                                item->GetID(),
                                                "ADD_RARE_ATTR",
                                                buf,
                                                GetDesc()->GetHostName(),
                                                item->GetOriginalVnum());

                                        item->SetCount(item->GetCount() - 1);
                                    }
                                    else
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("더 이상 이 아이템으로 속성을 추가할 수 없습니다"));
                                    }
                                }
                                break;

                            case 71052 : 
                                {

                                    LPITEM item2;

                                    if (!IsValidItemPosition(DestCell) || !(item2 = GetItem(DestCell)))
                                        return false;
                                   Hades
                                   if (ITEM_COSTUME == item2->GetType())
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
                                        return false;
                                    }
                                    if (item2->IsExchanging() || item2->IsEquipped())
                                        return false;

                                    if (item2->GetAttributeSetIndex() == -1)
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
                                        return false;
                                    }

                                    if (item2->ChangeRareAttribute() == true)
                                    {
                                        char buf[21];
                                        snprintf(buf, sizeof(buf), "%u", item2->GetID());
                                        LogManager::instance().ItemLog(this, item, "CHANGE_RARE_ATTR", buf);

                                        item->SetCount(item->GetCount() - 1);
                                    }
                                    else
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("변경 시킬 속성이 없습니다"));
                                    }
                                }
                                break;

Onde muda isso ? 

Share this post


Link to post
Share on other sites
  • 0
Em 06/10/2018 at 01:43, Karbust™ # PT disse:

source game/char_item.cpp -> procuras pelos ID's (ou pelo subtype, não sei os nomes brasileiros)

 

6/7 procuras pelos ID's dos itens, 1/4 pelos subtypes...

 

Share this post


Link to post
Share on other sites
  • 0
12 horas atrás, Karbust™ # PT disse:

 

Pode me ajudar a encontrar se não for pedir muito.  

 

 

please

Share this post


Link to post
Share on other sites
  • 0
Em 06/10/2018 at 01:43, Karbust™ # PT disse:

source game/char_item.cpp -> procuras pelos ID's (ou pelo subtype, não sei os nomes brasileiros)

 

6/7 procuras pelos ID's dos itens, 1/4 pelos subtypes...

Tu já leste o que disse?

 

É na source do game, tipo, se não sabes como encontrar, então não vale a pena usares a source (se é que a usas)...

Share this post


Link to post
Share on other sites
  • 0

sim. 

 

Porem não sei o que source. provavelmente não uso ! sou novato nos metins. mas agradeço a ajuda! vou atras de aprender ! tem alguma relação com VS ? 

Share this post


Link to post
Share on other sites
  • 0
3 horas atrás, DarkMaster disse:

sim. 

 

Porem não sei o que source. provavelmente não uso ! sou novato nos metins. mas agradeço a ajuda! vou atras de aprender ! tem alguma relação com VS ? 

 

A source do cliente é para o visual studio, a do game compilas no FreeBSD...

Share this post


Link to post
Share on other sites
  • 0
18 horas atrás, Karbust™ # PT disse:

 

A source do cliente é para o visual studio, a do game compilas no FreeBSD...

Obrigado Karbust

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