Özellik veren Derece sistemi

@TheAdmin33

Hey bro i have a little problem on bonus

Linkleri görebilmek için giriş yap veya kayıt ol.


I have max 2
#ifdef ENABLE_ALIGN_RENEWAL
void CHARACTER::OnAlignUpdate(BYTE now_align_index)
{
if (now_align_index == 0)
{
RemoveAffect(AFFECT_ALIGN_BONUS1);
RemoveAffect(AFFECT_ALIGN_BONUS2);
RemoveAffect(AFFECT_ALIGN_BONUS3);

AddAffect(AFFECT_ALIGN_BONUS1, POINT_ATTBONUS_MONSTER, 220, 0, 60*60*60*365, 0, true);
AddAffect(AFFECT_ALIGN_BONUS2, POINT_ATTBONUS_METIN, 220, 0, 60*60*60*365, 0, true);
AddAffect(AFFECT_ALIGN_BONUS3, POINT_ATTBONUS_BOSS, 220, 0, 60*60*60*365, 0, true);
}
else if (now_align_index >= 1 && now_align_index <= 40)
{
RemoveAffect(AFFECT_ALIGN_BONUS1);
RemoveAffect(AFFECT_ALIGN_BONUS2);
RemoveAffect(AFFECT_ALIGN_BONUS3);

int align_bonus = (41 - now_align_index) * 500;

AddAffect(AFFECT_ALIGN_BONUS1, POINT_ATTBONUS_MONSTER, align_bonus, 0, 60*60*60*365, 0, true);
AddAffect(AFFECT_ALIGN_BONUS2, POINT_ATTBONUS_METIN, align_bonus, 0, 60*60*60*365, 0, true);
AddAffect(AFFECT_ALIGN_BONUS3, POINT_ATTBONUS_BOSS, align_bonus/2, 0, 60*60*60*365, 0, true);
}
else
{
RemoveAffect(AFFECT_ALIGN_BONUS1);
RemoveAffect(AFFECT_ALIGN_BONUS2);
RemoveAffect(AFFECT_ALIGN_BONUS3);
}
}
#endif
 
@TheAdmin33

Hey bro i have a little problem on bonus

Linkleri görebilmek için giriş yap veya kayıt ol.


I have max 2
#ifdef ENABLE_ALIGN_RENEWAL
void CHARACTER::OnAlignUpdate(BYTE now_align_index)
{
if (now_align_index == 0)
{
RemoveAffect(AFFECT_ALIGN_BONUS1);
RemoveAffect(AFFECT_ALIGN_BONUS2);
RemoveAffect(AFFECT_ALIGN_BONUS3);

AddAffect(AFFECT_ALIGN_BONUS1, POINT_ATTBONUS_MONSTER, 220, 0, 60*60*60*365, 0, true);
AddAffect(AFFECT_ALIGN_BONUS2, POINT_ATTBONUS_METIN, 220, 0, 60*60*60*365, 0, true);
AddAffect(AFFECT_ALIGN_BONUS3, POINT_ATTBONUS_BOSS, 220, 0, 60*60*60*365, 0, true);
}
else if (now_align_index >= 1 && now_align_index <= 40)
{
RemoveAffect(AFFECT_ALIGN_BONUS1);
RemoveAffect(AFFECT_ALIGN_BONUS2);
RemoveAffect(AFFECT_ALIGN_BONUS3);

int align_bonus = (41 - now_align_index) * 500;

AddAffect(AFFECT_ALIGN_BONUS1, POINT_ATTBONUS_MONSTER, align_bonus, 0, 60*60*60*365, 0, true);
AddAffect(AFFECT_ALIGN_BONUS2, POINT_ATTBONUS_METIN, align_bonus, 0, 60*60*60*365, 0, true);
AddAffect(AFFECT_ALIGN_BONUS3, POINT_ATTBONUS_BOSS, align_bonus/2, 0, 60*60*60*365, 0, true);
}
else
{
RemoveAffect(AFFECT_ALIGN_BONUS1);
RemoveAffect(AFFECT_ALIGN_BONUS2);
RemoveAffect(AFFECT_ALIGN_BONUS3);
}
}
#endif
ekleme yaptığın pack dosyalarını paylaş.
 
Bonusun oranı nasıl ayarlanıyor hangi dosyadan, dosyayı değiştirince clientı veya serveri tekrar build etmem gerekiyor mu, bide sadece değiştirdiğim dosyaları mı build edicem, yoksa komple bütün sistemi mi yeniden build edicem? Bende 1. kademe +500 veriyor onu +50 ye veya daha aza indirmek istiyorum, tüm kademe bonuslarını %10 a düşürmeyi düşünüyorum.
 
Bonusun oranı nasıl ayarlanıyor hangi dosyadan, dosyayı değiştirince clientı veya serveri tekrar build etmem gerekiyor mu, bide sadece değiştirdiğim dosyaları mı build edicem, yoksa komple bütün sistemi mi yeniden build edicem? Bende 1. kademe +500 veriyor onu +50 ye veya daha aza indirmek istiyorum, tüm kademe bonuslarını %10 a düşürmeyi düşünüyorum.
char.cpp içerisinden vermiş olduğu değerleri değiştirebilirsin.

char.cpp:
        int align_bonus = (41 - now_align_index) * 500;

//burdaki 500 değerini 50 yaparsan ilk seviyede 50 bonus verir.
//ayriyetten locale_game.txt deki ALIGN_BONUS_ kısımlarınıda düzenlemen gerek.
 
char.cpp içerisinden vermiş olduğu değerleri değiştirebilirsin.

char.cpp:
        int align_bonus = (41 - now_align_index) * 500;

//burdaki 500 değerini 50 yaparsan ilk seviyede 50 bonus verir.
//ayriyetten locale_game.txt deki ALIGN_BONUS_ kısımlarınıda düzenlemen gerek.
Char.cpp içinde bulamadım, sonra tüm cppleri notepad++ la aradım "align_bonus" bulamadım, *500 diye aradım sadece harita dosyasında bulundu.
Dedim diğer geliştirilmiş Razuning sistemini yapan arkadaşa soriym bizzat, o değiştirmiştir eklerken ismini felan belki, Bi baktım o da Sensin Hocam :D :D . Bilemedim napsam :D
 
Char.cpp içinde bulamadım, sonra tüm cppleri notepad++ la aradım "align_bonus" bulamadım, *500 diye aradım sadece harita dosyasında bulundu.
Dedim diğer geliştirilmiş Razuning sistemini yapan arkadaşa soriym bizzat, o değiştirmiştir eklerken ismini felan belki, Bi baktım o da Sensin Hocam :D :D . Bilemedim napsam :D
char.cpp yi aç en alta in orada.
 
char.cpp yi aç en alta in orada.
WinScp ile baktım, /usr/Razuning-V5/Server/game/src klasöründe char.cpp de alignle ilgili bişey hiç yoktu, ama oyunda çalışıyor.
Şimdi Geliştirilmiş Razuning konusundaki game source u indirdim, ordaki char.cpp nin içinde vardı align ile ilgili yerler en altta.
Ordaki game sourcetaki src deki tüm cpp ve h dosyalarını (OBJDIR lzo perftest hariç) herşeyi yapıştırdım oracle ın içindeki server dosyalarının yerine.
Reboot atıp oyunu açtım hata vermedi.
Ama hiç bir şekilde hiç hasar vermiyor artık karakter (cpp ve h dosyalarının yedeğini aldım).
Hmm, nerde yanlış yapıyorum acaba?, bide serverdaki char.cpp de align kodu olmamasına rağmen align sistemi çalışıyor.
Char.cpp başka yerde desem ordan çalışıyor /usr/Razuning-V5 klasörü alakasız bi yer desem, oyun neden bozulsun ordaki dosyaları değiştirince :D .
Anlayamadım pek sonuç olarak :D
 
WinScp ile baktım, /usr/Razuning-V5/Server/game/src klasöründe char.cpp de alignle ilgili bişey hiç yoktu, ama oyunda çalışıyor.
Şimdi Geliştirilmiş Razuning konusundaki game source u indirdim, ordaki char.cpp nin içinde vardı align ile ilgili yerler en altta.
Ordaki game sourcetaki src deki tüm cpp ve h dosyalarını (OBJDIR lzo perftest hariç) herşeyi yapıştırdım oracle ın içindeki server dosyalarının yerine.
Reboot atıp oyunu açtım hata vermedi.
Ama hiç bir şekilde hiç hasar vermiyor artık karakter (cpp ve h dosyalarının yedeğini aldım).
Hmm, nerde yanlış yapıyorum acaba?, bide serverdaki char.cpp de align kodu olmamasına rağmen align sistemi çalışıyor.
Char.cpp başka yerde desem ordan çalışıyor /usr/Razuning-V5 klasörü alakasız bi yer desem, oyun neden bozulsun ordaki dosyaları değiştirince :D .
Anlayamadım pek sonuç olarak :D
(y)
 
Hocam, şimdi Ben bunun sağını solunu acayip kurcaladım, şimdi mysql un yedeğini aldım. şimdi game ile mysql u rm -rf yapıp yeniden kurcam.
Sonra napayım? Server source dosyalarını da atıp build mi edeyim?
Client ı da mı build edeyim bide? client source dosyalarını nereye atıp gmake yapıyoruz?
 
Oyunu baştan kurup tekrar denedim char.cpp ile locale_game.txt yi değiştirmeyi, ama değişmiyor oyun içinde hep aynı +500 veriyor ilk lvde
 
paylaşım için teşekkürler takıldığım bir kısım var rebottan sonra derece sıfırlanıyor agresiften başlıyor sürekli sebebi nedir @TheAdmin33
 
Son düzenleme:
char.cpp:7242: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7243: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7252: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7253: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7263: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7264: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7273: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7274: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7283: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7284: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7293: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7294: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7303: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7304: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7313: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7314: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
@TheAdmin33 bu hatayı nasıl çözerim ?
 
char.cpp:7242: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7243: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7252: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7253: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7263: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7264: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7273: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7274: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7283: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7284: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7293: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7294: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7303: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7304: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
char.cpp:7313: error: 'POINT_ATTBONUS_METIN' was not declared in this scope
char.cpp:7314: error: 'POINT_ATTBONUS_BOSS' was not declared in this scope
@TheAdmin33 bu hatayı nasıl çözerim ?
şu konuya bi bak;
Çözüldü - Derece Sistemi Game Build Hatası
 
merhabalar paylasım için teşekkürler syserr alıyorum yardımcı olur musunuz

Adsız.png
 
Geri
Üst