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

YARDIM Where can I change my Rebirth Point?

361831951

KY Kıdemli Üye
KAYIT
30 Kas 2022
Mesajlar
739
Tepki puanı
56
After rebirth can only increase 2 points, I want it to have 5 points per rebirth where to modify?
 
S

Silinen Üye 2

KY Misafir
Sorunuzu tam anlamadım.
level_up tablosunu kontrol ettiğinizde orada sadece 2 rebirt kaydı mı var?
 
Moderatör tarafında düzenlendi:

361831951

KY Kıdemli Üye
KAYIT
30 Kas 2022
Mesajlar
739
Tepki puanı
56
I mean this respawn point
 

Ekli dosyalar

  • {283D0E0B-8E5C-48b6-B980-1AA85F7A9B4D}.png
    {283D0E0B-8E5C-48b6-B980-1AA85F7A9B4D}.png
    111.6 KB · Görüntüleme: 31

nxwile

KY Cezalı Üye
KAYIT
12 May 2021
Mesajlar
322
Çözümler
2
Tepki puanı
932
After rebirth can only increase 2 points, I want it to have 5 points per rebirth where to modify?
In the Knitht online rebirth level system, originally 2 points can be given per rebirth level, currently 15 level rebirth can be active, if you want to change this, you need to check the src side. In rebirth level stat calculations, it will be enough to update the place >2 to >5
 

361831951

KY Kıdemli Üye
KAYIT
30 Kas 2022
Mesajlar
739
Tepki puanı
56
In the Knitht online rebirth level system, originally 2 points can be given per rebirth level, currently 15 level rebirth can be active, if you want to change this, you need to check the src side. In rebirth level stat calculations, it will be enough to update the place >2 to >5
What statement should I search for? I can't find this term
 

361831951

KY Kıdemli Üye
KAYIT
30 Kas 2022
Mesajlar
739
Tepki puanı
56
In the Knitht online rebirth level system, originally 2 points can be given per rebirth level, currently 15 level rebirth can be active, if you want to change this, you need to check the src side. In rebirth level stat calculations, it will be enough to update the place >2 to >5
1721658153207.png
Is this the place?
 

nxwile

KY Cezalı Üye
KAYIT
12 May 2021
Mesajlar
322
Çözümler
2
Tepki puanı
932
Kod:
else if (opcode == REB_STAT_CHANGE)
{
    if (GetRebirthLevel() > 9)
        return;

    Packet result(WIZ_CLASS_CHANGE, uint8(REB_STAT_CHANGE));
    uint8 RecStr, RecSta, RecDex, RecInt, RecCha;

    uint8 rStr = GetRebStatBuff(StatType::STAT_STR),
        rSta = GetRebStatBuff(StatType::STAT_STA),
        rDex = GetRebStatBuff(StatType::STAT_DEX),
        rInt = GetRebStatBuff(StatType::STAT_INT),
        rCha = GetRebStatBuff(StatType::STAT_CHA);

    pkt >> RecStr >> RecSta >> RecDex >> RecInt >> RecCha;

    uint8 maxPoints = GetRebirthLevel() * 5;

    if (RecStr + RecSta + RecDex + RecInt + RecCha < 2
        || RecStr + RecSta + RecDex + RecInt + RecCha > maxPoints)
    {
        result << uint8(0) << uint32(0);
        Send(&result);
        return;
    }

    AddStatPoints(RecStr, RecSta, RecDex, RecInt, RecCha);

    result << uint8(1) << uint32(1); // Indicating success
    Send(&result);
}


Try the code like this, this might be what you want.
 

361831951

KY Kıdemli Üye
KAYIT
30 Kas 2022
Mesajlar
739
Tepki puanı
56
Kod:
else if (opcode == REB_STAT_CHANGE)
{
    if (GetRebirthLevel() > 9)
        return;

    Packet result(WIZ_CLASS_CHANGE, uint8(REB_STAT_CHANGE));
    uint8 RecStr, RecSta, RecDex, RecInt, RecCha;

    uint8 rStr = GetRebStatBuff(StatType::STAT_STR),
        rSta = GetRebStatBuff(StatType::STAT_STA),
        rDex = GetRebStatBuff(StatType::STAT_DEX),
        rInt = GetRebStatBuff(StatType::STAT_INT),
        rCha = GetRebStatBuff(StatType::STAT_CHA);

    pkt >> RecStr >> RecSta >> RecDex >> RecInt >> RecCha;

    uint8 maxPoints = GetRebirthLevel() * 5;

    if (RecStr + RecSta + RecDex + RecInt + RecCha < 2
        || RecStr + RecSta + RecDex + RecInt + RecCha > maxPoints)
    {
        result << uint8(0) << uint32(0);
        Send(&result);
        return;
    }

    AddStatPoints(RecStr, RecSta, RecDex, RecInt, RecCha);

    result << uint8(1) << uint32(1); // Indicating success
    Send(&result);
}


Try the code like this, this might be what you want.
I'll try it now
 

nxwile

KY Cezalı Üye
KAYIT
12 May 2021
Mesajlar
322
Çözümler
2
Tepki puanı
932
Kod:
    Packet result(WIZ_CLASS_CHANGE, uint8(REB_STAT_RESET));

    uint8 RecStr, RecSta, RecDex, RecInt, RecCha;

    uint8 rStr = GetRebStatBuff(StatType::STAT_STR), rSta = GetRebStatBuff(StatType::STAT_STA), rDex = GetRebStatBuff(StatType::STAT_DEX), rInt = GetRebStatBuff(StatType::STAT_INT), rCha = GetRebStatBuff(StatType::STAT_CHA);

    pkt >> RecStr >> RecSta >> RecDex >> RecInt >> RecCha;

    uint8 bTotalPoint = rStr + rSta + rDex + rInt + rCha;

    uint8 reqTotalPoint = RecStr + RecSta + RecDex + RecInt + RecCha;



    if (bTotalPoint != reqTotalPoint || reqTotalPoint != GetRebirthLevel() * 2)

    {

        result << uint8(0) << uint32(0);

        Send(&result);

        return;

    }



    SetRebStatBuff(StatType::STAT_STR, RecStr);

    SetRebStatBuff(StatType::STAT_STA, RecSta);

    SetRebStatBuff(StatType::STAT_DEX, RecDex);

    SetRebStatBuff(StatType::STAT_INT, RecInt);

    SetRebStatBuff(StatType::STAT_CHA, RecCha);



    result << uint8(1) << uint32(0);

    Send(&result);



    if (isHaveWARPre == false)

        GoldLose(100000000, true);

I suggest you check here
 
Moderatör tarafında düzenlendi:

361831951

KY Kıdemli Üye
KAYIT
30 Kas 2022
Mesajlar
739
Tepki puanı
56
Kod:
else if (opcode == REB_STAT_CHANGE)
{
    if (GetRebirthLevel() > 9)
        return;

    Packet result(WIZ_CLASS_CHANGE, uint8(REB_STAT_CHANGE));
    uint8 RecStr, RecSta, RecDex, RecInt, RecCha;

    uint8 rStr = GetRebStatBuff(StatType::STAT_STR),
        rSta = GetRebStatBuff(StatType::STAT_STA),
        rDex = GetRebStatBuff(StatType::STAT_DEX),
        rInt = GetRebStatBuff(StatType::STAT_INT),
        rCha = GetRebStatBuff(StatType::STAT_CHA);

    pkt >> RecStr >> RecSta >> RecDex >> RecInt >> RecCha;

    uint8 maxPoints = GetRebirthLevel() * 5;

    if (RecStr + RecSta + RecDex + RecInt + RecCha < 2
        || RecStr + RecSta + RecDex + RecInt + RecCha > maxPoints)
    {
        result << uint8(0) << uint32(0);
        Send(&result);
        return;
    }

    AddStatPoints(RecStr, RecSta, RecDex, RecInt, RecCha);

    result << uint8(1) << uint32(1); // Indicating success
    Send(&result);
}


Try the code like this, this might be what you want.
I tried, and he still gave me 2 points
 
S

Silinen Üye 2

KY Misafir
Bu işlem lua functionuyla oluyordu sanırım. belirli event'in içindeki puanı veren lua functionuna bir bakın.
 

361831951

KY Kıdemli Üye
KAYIT
30 Kas 2022
Mesajlar
739
Tepki puanı
56
Kod:
if(EVENT == 400) then

QUEST1 = GetQuestStatus(UID,1122);

    if (QUEST1 == 1) then

        SelectMsg(UID, 2, -1, 11704, NPC, 8263, 401, 8264,402);

    else

        SelectMsg(UID, 2, -1, 11706, NPC, 10, -1);

    end

end



if(EVENT == 401) then

    ITEM = HowmuchItem(UID,900579000)

    if(ITEM > 0) then

        SelectMsg(UID, 48, -1, -1, NPC);  

    else

        SelectMsg(UID, 2, 974, 11704, NPC, 27, 402);  

    end

end



if (EVENT == 5000) then

    ShowMap(UID, 336);

end


1721659887443.png

It's like it's just a conversation, nothing specific
 
S

Silinen Üye 2

KY Misafir
Lua ile vermiyor. Save event işlemleri vs. dönüyor.
Kullandığınız sourcenin linkini atarmısınız eğer ko-yardımdan indirdiyseniz.
Bende 1 e eşitlenmiş şekilde.
 

Aakinci

Co-Admin
Premium Üye
KY Saygın Üye
Coder
ACS Sağlayıcısı
Yardımsever
KY Kod Editörü
KAYIT
5 Tem 2021
Mesajlar
865
Çözümler
127
Tepki puanı
547
Yaş
34
Benim bildiğim bu 2 statlı pencere açılırken sourceden gelen pakette sadece mevcut reb statlar var, reb point yok. Oradaki 2 yi exe otomatik atıyor, aynı bu karakter açarken 10 skill verme hakkımızdaki gibi. Dolayısıyla exe ye müdahale edilmesi gerekiyor diye düşünüyorum.
 

nxwile

KY Cezalı Üye
KAYIT
12 May 2021
Mesajlar
322
Çözümler
2
Tepki puanı
932
Benim bildiğim bu 2 statlı pencere açılırken sourceden gelen pakette sadece mevcut reb statlar var, reb point yok. Oradaki 2 yi exe otomatik atıyor, aynı bu karakter açarken 10 skill verme hakkımızdaki gibi. Dolayısıyla exe ye müdahale edilmesi gerekiyor diye düşünüyorum.
Evet oradanda bakılması lazım Ahmet Hocam
 
Anasayfa Kayıt ol Giriş yap
Üst Alt