Jump to content

Reload estendido


Recommended Posts

Boas a todos seguindo o topico anterior .

https://m2dev.net/topic/2522-reload-mob_drop_item/

Aqui deixo  a função completa para todos os ficheiros .

Descrição e comandos:

Comandos e o que fazem os mesmos?

 

Shop_item table: ( lojas e npc ) comando a ser usado - /reload p

item_attr && item_attr_rare table: comando a ser usado - /reload p

etc_drop_item.txt, mob_drop_item.txt, special_item_group.txt: comando a ser usado - /reload drop

group.txt, group_group.txt; comando a ser usado /reload group

regen.txt, npc.txt, boss.txt, stone.txtcomando a ser usado  /reload regen usado no mapa corrente  em cada mapa 

 

Bom vamos ao tuto.

 

vamos a game/src/ procuramos cmd.cpp.

Adicionar no topo onde tem mais ACMDs no meu caso meti no final de todos.

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

 Agora debaixo de:

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Adicionamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir a  game/src/ procuramos cmd_gm.cpp

Adicionar no final do ficheiro 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

E torcar toda a função do ACMD(do_purge) por esta

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Na função ACMD(do_reload) procurar:

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Adicionar a baixo de break isto

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir para game/src/ procurar input_db.cpp

Procurar

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

depois de:

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Adicionar isto

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir para game/src/ procurar shop_manager.cpp

Encontrar 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

E trocamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir para game/src/ e procuramos refine.cpp

Insserir no topo da  função;  bool CRefineManager::Initialize(TRefineTable * table, int size)

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir para game/src/ e procurar char_manager.cpp

Adicionar no final do ficheiro

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

ir para game/src/ char_manager.h

Procuramos:

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

adicionamos a baixo

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir para game/src/ procuramos item_manager.h

Trocar 

Spoiler
Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

 

por 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

ir para game/src/ procuramos item_manager_read_tables.cpp

Primeiro trocamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Agora dentro da função 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

add isto 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

E trocamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Adicionar a baixo de return true; que pode ser encontrado no final da função isto

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Muito bem terminamos esta função agora procuramos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

e trocamos por 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Agora vamos trabalhar na função 

Procuramos

o primeiro for dentro da função e depois disso add 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

e trocamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

trocamos tambem 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

e de novo no final da função abaixo de return true; adicionamos

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

vamos trabalhar noutra função de novo  no mesmo ficheiro procuramos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

trocamos por 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

E vamos editar a função como anterior 

depois do primeiro for  adicionar a baixo 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Trocamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

no mesmo ficheiro trocamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

e este 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por este 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Este 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por este 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Mais uma vez no final da função a baixo de return true; add 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir para game/src/ procurar mob_manager.h

Trocamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir para game/src/ procuramos mob_manager.cpp

trocamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

E vamos trabalhar na função 

Adicionar a baixo do primeiro for isto 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

e trocamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

mais uma vez no final da função a baixo de return true;  adicionamos

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

bem terminamos a função agora procuramos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

trocamos por 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

vamos de novo trabalhar na função  de novo a baixo do primeiro for loop 

adicionamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

e trocamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

e no final da função como nas outras a baixo de return true; adicionamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir para game/src/ procuramos em char.cpp

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

e vamos trocar 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

ir para game/src/ procurar  sectree_manager.cpp dentro encontrar 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

add em baixo de 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

isto

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir para game/src/ e procuramos regen.h debaixo de 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

adicionamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir para game/src/ e procuramos regen.cpp dentro procuramos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

adicionamos a baixo 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

adicionar no final do ficheiro 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

EVENTFUNC(regen_event)

debaixo de 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

add 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir para game/src/ procurar shop.h

de baixo de 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

add

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

ir para game/src/ procurar shop.cpp

add ao final do ficheiro 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ir a db/src/ procurar  ClientManager.cpp dentro do ficheiro procurar 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

e troocamos 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

por

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

debaixo de 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

add 

Spoiler

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Bom terminamos o tuto espero que tenham boa sorte 

fonte metin2dev.org

deixo em anexo tambem o tuto em ingles 

Print ao usar o reload drop

imagea3157f65407dc9f7.png

 

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Edited by F-Caneiras
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
×
×
  • Create New...