HomeUseful information for Helbreath beginnersStatistics overviewSearchMemberlistGalleryRulesRegisterLog in

 

 [CODE] No recall- Esperar 10 secs

Go down 
3 posters
AuthorMessage
GM3


GM3

Silver
Earned after your first post and comment.
10th Anniversary
Earned after being a member for 10 years.

Likes : 5

[CODE] No recall- Esperar 10 secs Empty
#1PostSubject: [CODE] No recall- Esperar 10 secs   [CODE] No recall- Esperar 10 secs 999108/20/2013, 9: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

Silver
Earned after your first post and comment.

Likes : 1

[CODE] No recall- Esperar 10 secs Empty
#2PostSubject: Re: [CODE] No recall- Esperar 10 secs   [CODE] No recall- Esperar 10 secs 999105/26/2016, 3: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

Silver
Earned after your first post and comment.

Likes : 1

[CODE] No recall- Esperar 10 secs Empty
#3PostSubject: Re: [CODE] No recall- Esperar 10 secs   [CODE] No recall- Esperar 10 secs 999105/28/2016, 5: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
Sponsored content






[CODE] No recall- Esperar 10 secs Empty
#4PostSubject: Re: [CODE] No recall- Esperar 10 secs   [CODE] No recall- Esperar 10 secs 99910

Back to top Go down
 
[CODE] No recall- Esperar 10 secs
Back to top 
Page 1 of 1
 Similar topics
-
» Get IP code
» [CODE] FPS Improvement
» [CODE] New Status
» [CODE] Fix Windows 8 - 10
» [CODE] MP,HP,SP, EN COLORES

Permissions in this forum:You cannot reply to topics in this forum
Join Helbreath :: Development :: Code Posting-
Jump to: