⏩ OldSchoolKO ✅ | " VALHALLA " 2.000.000 TL ÖDÜL ⭐ 3 YIL ARADAN SONRA ✅ v.1098 MYKO EFSANESİ ⚔ OFFICIAL 17.05.2024 - 21:00 ⏪
Cuceko

1886 Mage Çift Nova Skillini aktif etme

  •         

            

            

            

            

  • HyperFilter | DoS Protection | DDoS Protection | DoS Mitigation | DDoS Mitigation | AntiDoS | AntiDDoS | Proxy Shielding
K Çevrimdışı

Karaeski

Kayıtlı Üye
8 Mart 2012
387
0
16
33
Merhabalar, yazıcağım kod X-Game'in eski sourceleri için geçerlidir, ayrıca nova atarken pot basınca novanın yarıda kesilmesini engeller :

MagicProcess.cpp -> CMagicProcess::MagicPacket void'nin içinde ki kısım ;



Kod:
if( magicid != 108705 && magicid != 208705 && magicid != 490014 && magicid != 490020 && command == MAGIC_EFFECTING ) {

		

		if( sid >= 0 && sid <= MAX_USER ) {



			if( m_pSrcUser->m_bLastSkillType == pMagic->bType1 ) {

			

				if( TimeGet() - m_pSrcUser->m_fLastSkillTime <= 0.7f ) {

					

					send_index = 0;

					SetByte( send_buff, WIZ_MAGIC_PROCESS, send_index );

					SetByte( send_buff, MAGIC_FAIL, send_index );

					SetDWORD( send_buff, magicid, send_index );

					SetShort( send_buff, sid, send_index );

					SetShort( send_buff, tid, send_index );	

					SetShort( send_buff, 0, send_index );	

					SetShort( send_buff, 0, send_index );

					SetShort( send_buff, 0, send_index );

					SetShort( send_buff, -103, send_index );			

					SetShort( send_buff, 0, send_index );

					SetShort( send_buff, 0, send_index );



					if( command == MAGIC_CASTING ) {

						m_pMain->Send_Region( send_buff, send_index, m_pSrcUser->m_pUserData->m_bZone, m_pSrcUser->m_RegionX, m_pSrcUser->m_RegionZ, NULL, false );

					}

					else {

						m_pSrcUser->Send( send_buff, send_index );

					}



					return;

				}	

			}

			

			m_pSrcUser->m_fLastSkillTime = TimeGet();

			m_pSrcUser->m_bLastSkillType = pMagic->bType1;

			

			if( m_pSrcUser->m_sDuration23 > 0 ) {

				m_pSrcUser->m_fStartTime23 = 0.0f;

				m_pSrcUser->m_sDuration23 = 0;

				Type4Cancel(110820, m_pSrcUser->GetSocketID());

				Type4Cancel(210820, m_pSrcUser->GetSocketID());

			}

		}

	}



Gözümden kaçmış ayrıca User.cpp -> Type4Duration voidine eklenecek :



Kod:
if (m_sDuration23 && buff_type == 0) {

		if (currenttime > (m_fStartTime23 + m_sDuration23)){

			m_sDuration23 = 0;		

			m_fStartTime23 = 0.0f;

			buff_type = 23 ;

		}

	}



Buda skill süresi bitince sağ üstten silinmesini sağlıyor



- Efe ( Eski üyeliğime profil detaylarınız girmediğiniz için diye saçma bir hata yüzünden giremiyorum tamer düzeltirsen sevinirim. )
 
bigahega Çevrimdışı

bigahega

Administrator
Yönetici
KoCuce.Com
7 Mart 2012
12,841
376
83
Profilini düzelttim [MENTION=2678]wh0IsTheNext[/MENTION] | [MENTION=5]Efe[/MENTION],



profile girip bi yazı yazmak ne kadar zor olabilir anlamıs degilim bir çok kişi bu sorunu yaşıyo :p