Join Helbreath
Would you like to react to this message? Create an account in a few clicks or log in to continue.


This is a website run by veteran Helbreath players with the aim of sharing discussions and content exclusively related to the development of a server and its gameplay.
 
HomeUseful information for Helbreath beginnersPlay, discover, and broadcast your Helbreath moments for free.Statistics overviewSearchMemberlistRulesRegisterLog in

We depend on Ads revenue to keep our site running. Please consider disabling your Ad Blocker so that we can continue to create the content you come to enjoy.
Thank you for your continued cooperation and understanding.

 

 [CODE] Cambiar NPC del Shop

Go down 
AuthorMessage
KenZoB
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
KenZoB

Posts : 49
Since : 2014-11-05

[CODE] Cambiar NPC del Shop Empty
PostSubject: [CODE] Cambiar NPC del Shop   [CODE] Cambiar NPC del Shop 9991011/6/2014, 1:41 pm

Se las hago mas fácil para no dar tanta vuelta.

Buscar este codigo en "Game.cpp" Sources "HGServer".

Code:
case DEF_QUESTTYPE_GOPLACE:

Debajo de:

Code:
return FALSE;
}

Les aparece esto:

Code:
int CGame::_iTalkToNpcResult_GuildHall(int iClientH, int *pQuestType, int *pMode, int *pRewardType, int *pRewardAmount, int *pContribution, char *pTargetName, int *pTargetType, int *pTargetCount, int *pX, int *pY, int *pRange)
{
   return -4;
}

int CGame::_iTalkToNpcResult_GShop(int iClientH, int *pQuestType, int *pMode, int *pRewardType, int *pRewardAmount, int *pContribution, char *pTargetName, int *pTargetType, int *pTargetCount, int *pX, int *pY, int *pRange)
{
   return -4;
}

int CGame::_iTalkToNpcResult_BSmith(int iClientH, int *pQuestType, int *pMode, int *pRewardType, int *pRewardAmount, int *pContribution, char *pTargetName, int *pTargetType, int *pTargetCount, int *pX, int *pY, int *pRange)
{
   return -4;
}

int CGame::_iTalkToNpcResult_WHouse(int iClientH, int *pQuestType, int *pMode, int *pRewardType, int *pRewardAmount, int *pContribution, char *pTargetName, int *pTargetType, int *pTargetCount, int *pX, int *pY, int *pRange)
{
   return -4;
}

int CGame::_iTalkToNpcResult_WTower(int iClientH, int *pQuestType, int *pMode, int *pRewardType, int *pRewardAmount, int *pContribution, char *pTargetName, int *pTargetType, int *pTargetCount, int *pX, int *pY, int *pRange)
{
   return -4;
}

Borran eso y listo... ese es un comando que hace que dichos NPC vendan en dichos edificios. Al borrarlo pueden poner los NPC en donde quieran y les venderan, podran comprar, todo.
Luego armar el CFG del mapa en donde quieran
Back to top Go down
 
[CODE] Cambiar NPC del Shop
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Join Helbreath :: Open Source / Development Corner :: C++-
Jump to: