Mt2Hizmet 1
Mt2Hizmet
melankolıa18 1
melankolıa18
romegames 1
romegames
Krutzo 1
Krutzo
shrpnl 1
shrpnl
Best Studio 1
Best Studio
D 1
delimuratt
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com

Mobların Becerileri ile Sektirememesi

canTolip

Level over 9000.
Fahri Üye
TM Üye
Katılım
21 Ocak 2017
Konular
38
Mesajlar
631
Çözüm
3
Online süresi
3mo 28d
Reaksiyon Skoru
960
Altın Konu
2
TM Yaşı
9 Yıl 4 Ay 16 Gün
Başarım Puanı
193
MmoLira
10,488
DevLira
39
Ticaret - 100%
1   0   0

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!

Bu konu ile bağlantılıdır.
Lazım olan bazı arkadaşalar varmış;

2dcc1fda5924ca98963ad00a45931c33.gif


char_skill.cpp

C++:
                float fx, fy;
                float degree = GetDegreeFromPositionXY(m_pkChr->GetX(), m_pkChr->GetY(), pkChrVictim->GetX(), pkChrVictim->GetY());

                if (m_pkSk->dwVnum == SKILL_HORSE_WILDATTACK){
                    degree -= m_pkChr->GetRotation();
                    degree = fmod(degree, 360.0f) - 180.0f;

                    if (degree > 0) { degree = m_pkChr->GetRotation() + 90.0f; }
                    else { degree = m_pkChr->GetRotation() - 90.0f; }
                }

                GetDeltaByDegree(degree, fCrushSlidingLength, &fx, &fy);
                //sys_log(0, "CRUSH! %s -> %s (%d %d) -> (%d %d)", m_pkChr->GetName(), pkChrVictim->GetName(), pkChrVictim->GetX(), pkChrVictim->GetY(), (long)(pkChrVictim->GetX()+fx), (long)(pkChrVictim->GetY()+fy));
                long tx = (long)(pkChrVictim->GetX() + fx);
                long ty = (long)(pkChrVictim->GetY() + fy);

                pkChrVictim->Sync(tx, ty);
                pkChrVictim->Goto(tx, ty);
                pkChrVictim->CalculateMoveDuration();

                pkChrVictim->SyncPacket();

Değiştir

C++:
if (m_pkChr->IsPC()) {
                    float fx, fy;
                    float degree = GetDegreeFromPositionXY(m_pkChr->GetX(), m_pkChr->GetY(), pkChrVictim->GetX(), pkChrVictim->GetY());

                    if (m_pkSk->dwVnum == SKILL_HORSE_WILDATTACK) {
                        degree -= m_pkChr->GetRotation();
                        degree = fmod(degree, 360.0f) - 180.0f;

                        if (degree > 0) { degree = m_pkChr->GetRotation() + 90.0f; }
                        else { degree = m_pkChr->GetRotation() - 90.0f; }
                    }

                    GetDeltaByDegree(degree, fCrushSlidingLength, &fx, &fy);
                    //sys_log(0, "CRUSH! %s -> %s (%d %d) -> (%d %d)", m_pkChr->GetName(), pkChrVictim->GetName(), pkChrVictim->GetX(), pkChrVictim->GetY(), (long)(pkChrVictim->GetX()+fx), (long)(pkChrVictim->GetY()+fy));
                    long tx = (long)(pkChrVictim->GetX() + fx);
                    long ty = (long)(pkChrVictim->GetY() + fy);

                    pkChrVictim->Sync(tx, ty);
                    pkChrVictim->Goto(tx, ty);
                    pkChrVictim->CalculateMoveDuration();

                    pkChrVictim->SyncPacket();
                }
 
paylaşım için teşekkürler :)
 
Bu dönüştükten sonrada aynımı?
 
Teşekkürler.
 
Bu konu ile bağlantılıdır.
Lazım olan bazı arkadaşalar varmış;

2dcc1fda5924ca98963ad00a45931c33.gif


char_skill.cpp
C++:
                float fx, fy;
                float degree = GetDegreeFromPositionXY(m_pkChr->GetX(), m_pkChr->GetY(), pkChrVictim->GetX(), pkChrVictim->GetY());

                if (m_pkSk->dwVnum == SKILL_HORSE_WILDATTACK){
                    degree -= m_pkChr->GetRotation();
                    degree = fmod(degree, 360.0f) - 180.0f;

                    if (degree > 0) { degree = m_pkChr->GetRotation() + 90.0f; }
                    else { degree = m_pkChr->GetRotation() - 90.0f; }
                }

                GetDeltaByDegree(degree, fCrushSlidingLength, &fx, &fy);
                //sys_log(0, "CRUSH! %s -> %s (%d %d) -> (%d %d)", m_pkChr->GetName(), pkChrVictim->GetName(), pkChrVictim->GetX(), pkChrVictim->GetY(), (long)(pkChrVictim->GetX()+fx), (long)(pkChrVictim->GetY()+fy));
                long tx = (long)(pkChrVictim->GetX() + fx);
                long ty = (long)(pkChrVictim->GetY() + fy);

                pkChrVictim->Sync(tx, ty);
                pkChrVictim->Goto(tx, ty);
                pkChrVictim->CalculateMoveDuration();

                pkChrVictim->SyncPacket();

Değiştir

C++:
if (m_pkChr->IsPC()) {
                    float fx, fy;
                    float degree = GetDegreeFromPositionXY(m_pkChr->GetX(), m_pkChr->GetY(), pkChrVictim->GetX(), pkChrVictim->GetY());

                    if (m_pkSk->dwVnum == SKILL_HORSE_WILDATTACK) {
                        degree -= m_pkChr->GetRotation();
                        degree = fmod(degree, 360.0f) - 180.0f;

                        if (degree > 0) { degree = m_pkChr->GetRotation() + 90.0f; }
                        else { degree = m_pkChr->GetRotation() - 90.0f; }
                    }

                    GetDeltaByDegree(degree, fCrushSlidingLength, &fx, &fy);
                    //sys_log(0, "CRUSH! %s -> %s (%d %d) -> (%d %d)", m_pkChr->GetName(), pkChrVictim->GetName(), pkChrVictim->GetX(), pkChrVictim->GetY(), (long)(pkChrVictim->GetX()+fx), (long)(pkChrVictim->GetY()+fy));
                    long tx = (long)(pkChrVictim->GetX() + fx);
                    long ty = (long)(pkChrVictim->GetY() + fy);

                    pkChrVictim->Sync(tx, ty);
                    pkChrVictim->Goto(tx, ty);
                    pkChrVictim->CalculateMoveDuration();

                    pkChrVictim->SyncPacket();
                }
teşekkürler
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst