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


An essential info site for anyone learning the game. Great community and often very insightful posts.
 
HomeUseful information for Helbreath beginnersPlay, discover, and broadcast your Helbreath moments for free.Statistics overviewSearchMemberlistRulesRegisterLog in
 

 [CODE] No recall- Esperar 10 secs

Go down 
AuthorMessage
GM3

avatar

Posts : 10

[CODE] No recall- Esperar 10 secs Empty
PostSubject: [CODE] No recall- Esperar 10 secs   [CODE] No recall- Esperar 10 secs 999108/20/2013, 6:50 pm

Buscar en Game.cpp del "HGServer":

Code:
case DEF_MAGICTYPE_TELEPORT:
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwnerH, &cOwnerType, dX, dY);
switch (m_pMagicConfigList[sType]->m_sValue4) {
case 1:
if ( (cOwnerType == DEF_OWNERTYPE_PLAYER) && (sOwnerH == iClientH) ) {
RequestTeleportHandler(iClientH, "1 ");
}
break;
}
break;
Y remplazar por el siguiente caso:

Code:
case DEF_MAGICTYPE_TELEPORT:
m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwnerH, &cOwnerType, dX, dY);
switch (m_pMagicConfigList[sType]->m_sValue4) {
case 1:
if ( (cOwnerType == DEF_OWNERTYPE_PLAYER) && (sOwnerH == iClientH) ) {
if ((dwTime - m_pClientList[iClientH]->m_dwLogoutHackCheck) > 10000) {
RequestTeleportHandler(iClientH, "1 ");
}else{
char cCannotRecall[256];
wsprintf(cCannotRecall,"Quieres recallear? Espera 10 segundos.");
ShowClientMsg(iClientH, cCannotRecall);
goto MAGIC_NOEFFECT;
}
}
break;
}
break;
Back to top Go down
hector123

avatar

Posts : 1

[CODE] No recall- Esperar 10 secs Empty
PostSubject: Re: [CODE] No recall- Esperar 10 secs   [CODE] No recall- Esperar 10 secs 999105/26/2016, 12:27 pm

Por que que da este error??
Compiling...
game.cpp
C:\Users\Josue\Desktop\jeancarlos}\HB-Quisqueya\GameServers\sources\[SRC]HG\game.cpp(24962) : error C2039: 'm_dwLogoutHackCheck' : is not a member of 'CClient'
        c:\users\josue\desktop\jeancarlos}\hb-quisqueya\gameservers\sources\[src]hg\client.h(52) : see declaration of 'CClient'
C:\Users\Josue\Desktop\jeancarlos}\HB-Quisqueya\GameServers\sources\[SRC]HG\game.cpp(65536) : warning C4049: compiler limit : terminating line number emission
Error executing cl.exe.

game.exe - 1 error(s), 1 warning(s)
Back to top Go down
EnglishGM

EnglishGM

Posts : 2

[CODE] No recall- Esperar 10 secs Empty
PostSubject: Re: [CODE] No recall- Esperar 10 secs   [CODE] No recall- Esperar 10 secs 999105/28/2016, 2:38 pm

hecor123,


You need to declare the DWORD variable.


Find for m_iEnemyKillCount = 0; in CClient::CClient(HWND hWnd)

Code:
Add m_dwLogoutHackCheck = 0;



Go to Client.h

Code:
Add DWORD m_dwLogoutHackCheck;






Your mistake for warning C4049 is because VS6.0 have reach a limit of compiling at the line of 65536.


You need to Have a Game2.cpp and defines Game.h inside the Game2.cpp so any functions you have inside Game2.cpp will read the declared variables.


Good .
Back to top Go down
 
[CODE] No recall- Esperar 10 secs
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: