Jump to content

[Dúvida] Adicionar Novos NPC (Ferreiros)


Nukayool
 Share

Recommended Posts

Adicionar ferreiros:

refine.h

devenv_2018-04-05_00-34-12.png

Caso queiras adicionar diretamente no switch para ser mais rápido:

char_item.cpp

Dentro da função:

bool CHARACTER::CanReceiveItem (LPCHARACTER from, LPITEM item) const

Procuras por (ou case BLACKSMITH2_MOB dependente do tipo que queres):

case BLACKSMITH_MOB:

E adicionas abaixo o vnum dos novos ferreiros, desta forma:

devenv_2018-04-05_00-37-36.png

 

__

Cubo é só meteres o vnum do npc no ficheiro cube.txt que deve dar.

 

Link to comment
Share on other sites

@Tierri Lopes 

Tentei adicionar novos cubos apareceu-me este erro no cliente:

0405 00:59:04807 :: CPythonNetworkStream::ServerCommand(c_szCommand=cube r_list 9003 0 ) - Strange Parameter Count : 5
0405 01:03:04650 :: CPythonNetworkStream::ServerCommand(c_szCommand=cube r_list 20016 0 ) - Strange Parameter Count : 5

PS: Já resolvi a de adicionar novos cubos,  para que ele funcione correctamente é necessário ter no mínimo 5 coisas.

Edited by Nukayool
Link to comment
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
 Share

×
×
  • Create New...