crusade question !

All Helbreath Server Source Discussion here.
Post Reply
dumper
Regular
Posts: 88
Joined: Sat Nov 18, 2006 8:25 pm

Post by dumper »

well i noticed that theres such a stupid window that pops up every time the crusade is finished and u change hgs or login again ! i know there is a fix for this window popup ... but when i use the fix this messed up window doesnt appear anymore but it sets the clienthguid to crusadeguid and so the checkcrusaderesultcalculation function is called with that number (well only the first call has this number .. 2nd call its already 0 again ) .. so another window pops up every time lol .. and thats the window where u get the exp after crusade .. it always comes when login or changing hgs ... is there another fix that i didnt see or something wrong with the crusade code im using ?? -.-
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

The crusadeid in the client file is not being set back to 0 when they are rewarded or notified.
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
dumper
Regular
Posts: 88
Joined: Sat Nov 18, 2006 8:25 pm

Post by dumper »

but in checkcrusaderesultcalculation function its set to 0 at the end ...
iclienth -> m_dwcrusadeguid = 0;
kokodriloz
Regular
Posts: 56
Joined: Thu Jan 04, 2007 4:27 am

Post by kokodriloz »

here man in hg find this shit:

Code: Select all

void CGame::RequestInitDataHandler(int iClientH, char * pData, char cKey)
and in the end add this : o just replace

Code: Select all

// Arreglado que al entrar muestra el final de la cruzada
    	if(m_pClientList[iClientH]->m_dwCrusadeGUID != 0){
    	SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_CRUSADE, (DWORD)m_bIsCrusadeMode, NULL, 0, NULL, -1);  
    	m_pClientList[iClientH]->m_dwCrusadeGUID = 0;
    	m_pClientList[iClientH]->m_iWarContribution   = 0;
Post Reply