Reklam
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 >5After rebirth can only increase 2 points, I want it to have 5 points per rebirth where to modify?
What statement should I search for? I can't find this termIn 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
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
I changed it, but not hereEkli dosyayı görüntüle 4238Is this the place?
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);
}
I'll try it nowKod: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.
Ekli dosyayı görüntüle 4238Is this the place?
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 tried, and he still gave me 2 pointsKod: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.
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
Evet oradanda bakılması lazım Ahmet HocamBenim 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.