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 overviewSearchRulesRegisterLog in
 

 [CODE] No recall- Esperar 10 secs

Go down 
AuthorMessage
GM3

avatar


[CODE] No recall- Esperar 10 secs Empty
PostSubject: [CODE] No recall- Esperar 10 secs   [CODE] No recall- Esperar 10 secs EmptyTue 20 Aug 2013, 5: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


[CODE] No recall- Esperar 10 secs Empty
PostSubject: Re: [CODE] No recall- Esperar 10 secs   [CODE] No recall- Esperar 10 secs EmptyThu 26 May 2016, 11:27 am

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


[CODE] No recall- Esperar 10 secs Empty
PostSubject: Re: [CODE] No recall- Esperar 10 secs   [CODE] No recall- Esperar 10 secs EmptySat 28 May 2016, 1: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: