Çözüldü Marty Sama 8 Binek binme sorunu

  • Konuyu açan Konuyu açan Bögü Alp
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 8
  • Gösterim Gösterim 292
Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

Bögü Alp

Üye
Üye
Mesaj
6
Çözümler
1
Beğeni
3
Puan
433
Ticaret Puanı
0
Herkese merhaba Sıfırdan MartySama geliştirmeye başladım Dx9'a yükseltmek dışında bir şey yapmadım bozmadım filesı yani yanında gezen binek sistemi kurdum ama aşağıdaki sorunu yaşıyorum
izlenecek yollarda quest kaldırma vs. vardı item_protoyu falan ayarladım
binek takip ediyor
binek mührü giyili şekilde ctrl g yaparsam özelliği karaktere işleniyor
ama bineğe binmiyor
Bu konu ile alakalı paylaşım yapan kişilerin hepsine baktım tek tek uyarladım ama sonuç hala aynı Buradan da yaşadığımız sorunu görebilirsiniz
 
Çözüm
Hocam dediğiniz değerleri kontrol ettim ve alttaki satırı ekledim şuan bineğe biniyor ve iniyor özellikleri işliyor karaktere çok teşekkür ederim

char.cpp:
Genişlet Daralt Kopyala
        case POINT_MOUNT:
            SetPoint (type, GetPoint (type) + amount);
            val = GetPoint (type);
            MountVnum (val); // Bu satırı ekledim şuan
            break;
Summonda binek kodu doğru gidiyor ama mount kısmında kod yanlış olabilir. Kullanacağı bineğin mob protodaki vnumu doğru mu gidiyor onu kontrol et.
 
Hocam dediğiniz değerleri kontrol ettim ve alttaki satırı ekledim şuan bineğe biniyor ve iniyor özellikleri işliyor karaktere çok teşekkür ederim

char.cpp:
Genişlet Daralt Kopyala
        case POINT_MOUNT:
            SetPoint (type, GetPoint (type) + amount);
            val = GetPoint (type);
            MountVnum (val); // Bu satırı ekledim şuan
            break;
 
Çözüm
Try this solution:
Revert everything you did in the ItemProto file and only apply the required modifications to the source code. Do not do anything else in the ItemProto file, and let me know.
 
Try this solution:
Revert everything you did in the ItemProto file and only apply the required modifications to the source code. Do not do anything else in the ItemProto file, and let me know.
I told you to do this first because the logic behind running the buggy system in SourceMarty is very poor and incomprehensible. I encountered this problem with version 5.7, so you should follow these steps one by one. After applying the first solution, if it doesn't work, then try the second solution.

char.cpp:
Genişlet Daralt Kopyala
        case POINT_MOUNT:
            SetPoint(type, GetPoint(type) + amount);
            val = GetPoint(type);

replace

Kod:
Genişlet Daralt Kopyala
        case POINT_MOUNT:
            SetPoint(type, GetPoint(type) + amount);
            val = GetPoint(type);
            MountVnum(val);
            break;

Char_item.cpp:
Genişlet Daralt Kopyala
        if (item->IsOldMountItem()) // @fixme152
            quest::CQuestManager::instance().SIGUse(GetPlayerID(), quest::QUEST_NO_NPC, item, false);
        #ifdef ENABLE_MOU[HASH=2]#ifdef[/HASH]YSTEM
        else if (item->IsNewMountItem()) {
            const auto mountVnum = GetPoint(POINT_MOUNT);
            MountVnum(mountVnum);
        }
#endif[

Replace it accordingly.

Kod:
Genişlet Daralt Kopyala
        if (item->IsOldMountItem() || item->IsNewMountItem()) // @fixme152
            quest::CQuestManager::instance().SIGUse(GetPlayerID(), quest::QUEST_NO_NPC, item, false);
    //    #ifdef ENABLE_MOUNT_COSTUME_EX_SYSTEM
    //    else if (item->IsNewMountItem()) {
    //        const auto mountVnum = GetPoint(POINT_MOUNT);
    //        MountVnum(mountVnum);
    //    }
    //    #endif

After that, experiment and do what the system requires in the item proto, and also tell me the result.

@Mt2Hizmet

I don't know what you're saying or what you mean, but let me tell you something: if there's any help you can offer the man, then do it. Otherwise, I hope this doesn't turn into a discussion that's off-topic. Thank you.
 
I didn't say anything to you, but I remember the person who brought up the topic saying something like, "I found the solution." I thought I was dreaming.😊 @M29
 
Sabah çözüm bulduğunu görmüştüm sanki rüya mı gördüm acaba kafam karıştı. 😄
cpp:
Genişlet Daralt Kopyala
        case POINT_MOUNT:
            SetPoint(type, GetPoint(type) + amount);
            val = GetPoint(type);
            MountVnum(val);
            break;
Bu kodu yazınca düzelmişti sabah yazmıştım yanlışlıkla kaldırdım sanırsam mesajı kusura bakmayın MountVnum(val); eklemesi olmadığı içinmiş
 
I told you to do this first because the logic behind running the buggy system in SourceMarty is very poor and incomprehensible. I encountered this problem with version 5.7, so you should follow these steps one by one. After applying the first solution, if it doesn't work, then try the second solution.

char.cpp:
Genişlet Daralt Kopyala
        case POINT_MOUNT:
            SetPoint(type, GetPoint(type) + amount);
            val = GetPoint(type);

replace

Kod:
Genişlet Daralt Kopyala
        case POINT_MOUNT:
            SetPoint(type, GetPoint(type) + amount);
            val = GetPoint(type);
            MountVnum(val);
            break;

Char_item.cpp:
Genişlet Daralt Kopyala
        if (item->IsOldMountItem()) // @fixme152
            quest::CQuestManager::instance().SIGUse(GetPlayerID(), quest::QUEST_NO_NPC, item, false);
        #ifdef ENABLE_MOU[HASH=2]#ifdef[/HASH]YSTEM
        else if (item->IsNewMountItem()) {
            const auto mountVnum = GetPoint(POINT_MOUNT);
            MountVnum(mountVnum);
        }
#endif[

Replace it accordingly.

Kod:
Genişlet Daralt Kopyala
        if (item->IsOldMountItem() || item->IsNewMountItem()) // @fixme152
            quest::CQuestManager::instance().SIGUse(GetPlayerID(), quest::QUEST_NO_NPC, item, false);
    //    #ifdef ENABLE_MOUNT_COSTUME_EX_SYSTEM
    //    else if (item->IsNewMountItem()) {
    //        const auto mountVnum = GetPoint(POINT_MOUNT);
    //        MountVnum(mountVnum);
    //    }
    //    #endif

After that, experiment and do what the system requires in the item proto, and also tell me the result.

@Mt2Hizmet

I don't know what you're saying or what you mean, but let me tell you something: if there's any help you can offer the man, then do it. Otherwise, I hope this doesn't turn into a discussion that's off-topic. Thank you.
I found a solution after making the changes in the Char.cpp file. I actually noticed and added it this morning, but thanks again for your suggestion, man!
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst