Sosyal açıldı! Bir göz at → Hemen gir →

ÇÖZÜLDÜ 2383 Blink Sorunu Var

NexusMero

KY Üye
KAYIT
10 Ocak 2025
Mesajlar
5
Tepki puanı
0
Kullanılan Source
ıstırap
Kullanılan Database
2383 farm
Kullanılan Client
2383
Versiyon
2383
2383 deki mage blink zıplama sorunu çözen varmı acaba neyden kaynaklı bilen varmıdır teşekkürler şimiden
 
Çözüm
Magicintence ile alakalı -magicintence.cpp içinde case 20 aratın ve yönleri aşağıdaki verdiğim kodla değiştirin.

case 20: // Teleport the source (radius) meters forward
{
// Calculate difference between where user is now and where they were previously
// to figure out an orientation.
// Should really use m_sDirection, but not sure what the value is exactly.
float warp_x = pTUser->GetX() - TO_USER(pTUser)->m_oldx,
warp_z = pTUser->GetZ() - TO_USER(pTUser)->m_oldz;

// Unable to work out orientation, so we'll just fail (won't be necessary with m_sDirection).
float distance = sqrtf(warp_x*warp_x + warp_z * warp_z);
if...

xahta

KY Saygın Üye
Coder
Yardımsever
KAYIT
10 Şub 2025
Mesajlar
634
Çözümler
13
Tepki puanı
466
Magicintence ile alakalı -magicintence.cpp içinde case 20 aratın ve yönleri aşağıdaki verdiğim kodla değiştirin.

case 20: // Teleport the source (radius) meters forward
{
// Calculate difference between where user is now and where they were previously
// to figure out an orientation.
// Should really use m_sDirection, but not sure what the value is exactly.
float warp_x = pTUser->GetX() - TO_USER(pTUser)->m_oldx,
warp_z = pTUser->GetZ() - TO_USER(pTUser)->m_oldz;

// Unable to work out orientation, so we'll just fail (won't be necessary with m_sDirection).
float distance = sqrtf(warp_x*warp_x + warp_z * warp_z);
if (distance == 0.0f)
{
sData[1] = 0;
BuildAndSendSkillPacket(pSkillCaster, true, sCasterID, (*itr)->GetID(), bOpcode, nSkillID, sData);
return false;
}

warp_x /= distance; warp_z /= distance;
warp_x *= pType->sRadius; warp_z *= pType->sRadius;
warp_x += TO_USER(pTUser)->m_oldx; warp_z += TO_USER(pTUser)->m_oldz;

sData[1] = 1;
BuildAndSendSkillPacket(*itr, true, sCasterID, (*itr)->GetID(), bOpcode, nSkillID, sData);
TO_USER(pTUser)->Warp(uint16(warp_x * 10), uint16(warp_z * 10));
} break;
 
Çözüm
Anasayfa Kayıt ol Giriş yap
Üst Alt