- Katılım
- 23 Tem 2019
- Konular
- 0
- Mesajlar
- 43
- Online süresi
- 4d 17h
- Reaksiyon Skoru
- 9
- Altın Konu
- 0
- TM Yaşı
- 6 Yıl 10 Ay 22 Gün
- Başarım Puanı
- 51
- MmoLira
- 109
- DevLira
- 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!
kardeşim nasıl yapıldığını bizede soylersen burdan sevinirim bende de aynı sorun varözelden yaz aynısı vardı fixledim yardımcı olayım
- Katılım
- 17 Ara 2019
- Konular
- 5
- Mesajlar
- 143
- Online süresi
- 1mo 8h
- Reaksiyon Skoru
- 32
- Altın Konu
- 0
- TM Yaşı
- 6 Yıl 5 Ay 26 Gün
- Başarım Puanı
- 83
- MmoLira
- 3,466
- DevLira
- 3
benim kullandığım bu , herhangi bi sorun yaşamazsın ve ortalama ve beceri silahlarına kadim basılmıyor kendi serverimde kullanıyorum bendede aynı sorun vardı serverimi sıfırlamak zorunda kaldım sonradan fixledim şuan sorunsuz bunu kullanırsan bi problem yaşamazsınkardeşim nasıl yapıldığını bizede soylersen burdan sevinirim bende de aynı sorun var
[CODE title="Burdan İtibaren al"]#ifdef WJ_ELDER_ATTRIBUTE_SYSTEM
ACMD(do_add_new_attribute)
{
std::vector<std::string> vecArgs;
split_argument(argument,vecArgs);
if (vecArgs.size() < 7)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_UNKNOWN_ARGUMENT"));
return;
}
int sourceItemPos, targetItemPos, attrtype0, attrtype1, attrtype2, attrtype3, attrtype4;
// int targetItemPos;
// int attrtype0;
// int attrtype1;
// int attrtype2;
// int attrtype3;
str_to_number(sourceItemPos, vecArgs[1].c_str());
str_to_number(targetItemPos, vecArgs[2].c_str());
str_to_number(attrtype0, vecArgs[3].c_str());
str_to_number(attrtype1, vecArgs[4].c_str());
str_to_number(attrtype2, vecArgs[5].c_str());
str_to_number(attrtype3, vecArgs[6].c_str());
str_to_number(attrtype4, vecArgs[7].c_str());
LPITEM item = ch->GetInventoryItem(targetItemPos);
if (!item)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_CANNOT_FIND_ITEM"));
return;
}
if (item->GetType() != ITEM_WEAPON && item->GetType() != ITEM_ARMOR)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_COSTUME"));
return;
}
if (item->IsEquipped())
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_EQUIPPED"));
return;
}
if (item->IsExchanging())
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_EXCHANGING"));
return;
}
if (ch->CountSpecifyItem(71051) < 1)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_ENOUGH_NEW_ATTRIBUTE"));
return;
}
if (item->GetAttributeType(0) == 71 || item->GetAttributeType(0) == 72)
{
ch->ChatPacket(CHAT_TYPE_INFO, "Ortalama zarar veya Beceri Hasarı bonusu bulunan eşyalara bu yapılamaz!");
return;
}
if (item->GetAttributeType(1) == 71 || item->GetAttributeType(1) == 72)
{
ch->ChatPacket(CHAT_TYPE_INFO, "Ortalama zarar veya Beceri Hasarı bonusu bulunan eşyalara bu yapılamaz!");
return;
}
TItemTable const * pProto = item->GetProto();
bool addontype = false;
if (pProto && pProto->sAddonType)
addontype = true;
int attrtype0prob = number(1,5), attrtype1prob = number(1,5), attrtype2prob = number(1,5), attrtype3prob = number(1,5), attrtype4prob = number(1,5);
// int attrtype1prob = number(1,5)
// int attrtype2prob = number(1,5);
// int attrtype3prob = number(1,5);
bool error = false;
if (addontype == false)
{
if (attrtype0 == attrtype1 || attrtype0 == attrtype2 || attrtype0 == attrtype3 || attrtype0 == attrtype4 || attrtype0 == item->GetAttributeType(5))
error = true;
if (attrtype1 == attrtype0 || attrtype1 == attrtype2 || attrtype1 == attrtype3 || attrtype1 == attrtype4 || attrtype1 == item->GetAttributeType(5))
error = true;
if (attrtype2 == attrtype0 || attrtype2 == attrtype1 || attrtype2 == attrtype3 || attrtype2 == attrtype4 || attrtype2 == item->GetAttributeType(5))
error = true;
if (attrtype3 == attrtype0 || attrtype3 == attrtype1 || attrtype3 == attrtype2 || attrtype3 == attrtype4 || attrtype3 == item->GetAttributeType(5))
error = true;
if (attrtype4 == attrtype0 || attrtype4 == attrtype1 || attrtype4 == attrtype2 || attrtype4 == attrtype3 || attrtype4 == item->GetAttributeType(5))
error = true;
if (item->GetAttributeType(5) == attrtype0 || item->GetAttributeType(5) == attrtype1 || item->GetAttributeType(5) == attrtype2 || item->GetAttributeType(5) == attrtype3 || item->GetAttributeType(5) == attrtype4)
error = true;
}
else
{
if (attrtype0 == attrtype1 || attrtype0 == item->GetAttributeType(5))
error = true;
if (attrtype1 == attrtype0 || attrtype1 == item->GetAttributeType(5))
error = true;
}
for (int i=0; i < 5; ++i)
{
if (addontype == false)
{
if (item->GetAttributeType(i) == attrtype0 && i != 0)
error = true;
if (item->GetAttributeType(i) == attrtype1 && i != 1)
error = true;
if (item->GetAttributeType(i) == attrtype2 && i != 2)
error = true;
if (item->GetAttributeType(i) == attrtype3 && i != 3)
error = true;
if (item->GetAttributeType(i) == attrtype4 && i != 4)
error = true;
}
else
{
if (item->GetAttributeType(i+2) == attrtype0 && i != 0)
error = true;
if (item->GetAttributeType(i+2) == attrtype1 && i != 1)
error = true;
}
}
if (error)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_ERROR"));
return;
}
if (addontype == false)
{
item->AddNewAttr(0, attrtype0, attrtype0prob);
item->AddNewAttr(1, attrtype1, attrtype1prob);
item->AddNewAttr(2, attrtype2, attrtype2prob);
item->AddNewAttr(3, attrtype3, attrtype3prob);
item->AddNewAttr(4, attrtype4, attrtype4prob);
}
else
{
int oldattr5type = item->GetAttributeType(5), oldattr5value = item->GetAttributeValue(5);
// int oldattr5value = item->GetAttributeValue(4);
item->RemoveAttributeAt(0);
item->RemoveAttributeAt(1);
item->ApplyAddon(100);
item->ChangeAttribute();
item->AddNewAttr(2, attrtype0, attrtype0prob);
item->AddNewAttr(3, attrtype1, attrtype1prob);
item->AddNewAttr(4, oldattr5type, oldattr5value);
if (item->GetAttributeType(1) != 71)
{
if (item->GetAttributeType(0) != 72)
{
item->SetForceAttribute(0, 72, 13);
item->SetForceAttribute(1, 71, 1);
}
else
item->SetForceAttribute(1, 71, -1);
}
}
ch->RemoveSpecifyItem(71051, 1);
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_SUCCESS_ATTR"));
}
#endif[/CODE]
- Katılım
- 23 Tem 2019
- Konular
- 0
- Mesajlar
- 43
- Online süresi
- 4d 17h
- Reaksiyon Skoru
- 9
- Altın Konu
- 0
- TM Yaşı
- 6 Yıl 10 Ay 22 Gün
- Başarım Puanı
- 51
- MmoLira
- 109
- DevLira
- 0
Bu kodu nereye yazicaz kardesim az bilgi verirsen sevinirimbenim kullandığım bu , herhangi bi sorun yaşamazsın ve ortalama ve beceri silahlarına kadim basılmıyor kendi serverimde kullanıyorum bendede aynı sorun vardı serverimi sıfırlamak zorunda kaldım sonradan fixledim şuan sorunsuz bunu kullanırsan bi problem yaşamazsın
[CODE title="Burdan İtibaren al"]#ifdef WJ_ELDER_ATTRIBUTE_SYSTEM
ACMD(do_add_new_attribute)
{
std::vector<std::string> vecArgs;
split_argument(argument,vecArgs);
if (vecArgs.size() < 7)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_UNKNOWN_ARGUMENT"));
return;
}
int sourceItemPos, targetItemPos, attrtype0, attrtype1, attrtype2, attrtype3, attrtype4;
// int targetItemPos;
// int attrtype0;
// int attrtype1;
// int attrtype2;
// int attrtype3;
str_to_number(sourceItemPos, vecArgs[1].c_str());
str_to_number(targetItemPos, vecArgs[2].c_str());
str_to_number(attrtype0, vecArgs[3].c_str());
str_to_number(attrtype1, vecArgs[4].c_str());
str_to_number(attrtype2, vecArgs[5].c_str());
str_to_number(attrtype3, vecArgs[6].c_str());
str_to_number(attrtype4, vecArgs[7].c_str());
LPITEM item = ch->GetInventoryItem(targetItemPos);
if (!item)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_CANNOT_FIND_ITEM"));
return;
}
if (item->GetType() != ITEM_WEAPON && item->GetType() != ITEM_ARMOR)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_COSTUME"));
return;
}
if (item->IsEquipped())
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_EQUIPPED"));
return;
}
if (item->IsExchanging())
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_EXCHANGING"));
return;
}
if (ch->CountSpecifyItem(71051) < 1)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_ENOUGH_NEW_ATTRIBUTE"));
return;
}
if (item->GetAttributeType(0) == 71 || item->GetAttributeType(0) == 72)
{
ch->ChatPacket(CHAT_TYPE_INFO, "Ortalama zarar veya Beceri Hasarı bonusu bulunan eşyalara bu yapılamaz!");
return;
}
if (item->GetAttributeType(1) == 71 || item->GetAttributeType(1) == 72)
{
ch->ChatPacket(CHAT_TYPE_INFO, "Ortalama zarar veya Beceri Hasarı bonusu bulunan eşyalara bu yapılamaz!");
return;
}
TItemTable const * pProto = item->GetProto();
bool addontype = false;
if (pProto && pProto->sAddonType)
addontype = true;
int attrtype0prob = number(1,5), attrtype1prob = number(1,5), attrtype2prob = number(1,5), attrtype3prob = number(1,5), attrtype4prob = number(1,5);
// int attrtype1prob = number(1,5)
// int attrtype2prob = number(1,5);
// int attrtype3prob = number(1,5);
bool error = false;
if (addontype == false)
{
if (attrtype0 == attrtype1 || attrtype0 == attrtype2 || attrtype0 == attrtype3 || attrtype0 == attrtype4 || attrtype0 == item->GetAttributeType(5))
error = true;
if (attrtype1 == attrtype0 || attrtype1 == attrtype2 || attrtype1 == attrtype3 || attrtype1 == attrtype4 || attrtype1 == item->GetAttributeType(5))
error = true;
if (attrtype2 == attrtype0 || attrtype2 == attrtype1 || attrtype2 == attrtype3 || attrtype2 == attrtype4 || attrtype2 == item->GetAttributeType(5))
error = true;
if (attrtype3 == attrtype0 || attrtype3 == attrtype1 || attrtype3 == attrtype2 || attrtype3 == attrtype4 || attrtype3 == item->GetAttributeType(5))
error = true;
if (attrtype4 == attrtype0 || attrtype4 == attrtype1 || attrtype4 == attrtype2 || attrtype4 == attrtype3 || attrtype4 == item->GetAttributeType(5))
error = true;
if (item->GetAttributeType(5) == attrtype0 || item->GetAttributeType(5) == attrtype1 || item->GetAttributeType(5) == attrtype2 || item->GetAttributeType(5) == attrtype3 || item->GetAttributeType(5) == attrtype4)
error = true;
}
else
{
if (attrtype0 == attrtype1 || attrtype0 == item->GetAttributeType(5))
error = true;
if (attrtype1 == attrtype0 || attrtype1 == item->GetAttributeType(5))
error = true;
}
for (int i=0; i < 5; ++i)
{
if (addontype == false)
{
if (item->GetAttributeType(i) == attrtype0 && i != 0)
error = true;
if (item->GetAttributeType(i) == attrtype1 && i != 1)
error = true;
if (item->GetAttributeType(i) == attrtype2 && i != 2)
error = true;
if (item->GetAttributeType(i) == attrtype3 && i != 3)
error = true;
if (item->GetAttributeType(i) == attrtype4 && i != 4)
error = true;
}
else
{
if (item->GetAttributeType(i+2) == attrtype0 && i != 0)
error = true;
if (item->GetAttributeType(i+2) == attrtype1 && i != 1)
error = true;
}
}
if (error)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_ERROR"));
return;
}
if (addontype == false)
{
item->AddNewAttr(0, attrtype0, attrtype0prob);
item->AddNewAttr(1, attrtype1, attrtype1prob);
item->AddNewAttr(2, attrtype2, attrtype2prob);
item->AddNewAttr(3, attrtype3, attrtype3prob);
item->AddNewAttr(4, attrtype4, attrtype4prob);
}
else
{
int oldattr5type = item->GetAttributeType(5), oldattr5value = item->GetAttributeValue(5);
// int oldattr5value = item->GetAttributeValue(4);
item->RemoveAttributeAt(0);
item->RemoveAttributeAt(1);
item->ApplyAddon(100);
item->ChangeAttribute();
item->AddNewAttr(2, attrtype0, attrtype0prob);
item->AddNewAttr(3, attrtype1, attrtype1prob);
item->AddNewAttr(4, oldattr5type, oldattr5value);
if (item->GetAttributeType(1) != 71)
{
if (item->GetAttributeType(0) != 72)
{
item->SetForceAttribute(0, 72, 13);
item->SetForceAttribute(1, 71, 1);
}
else
item->SetForceAttribute(1, 71, -1);
}
}
ch->RemoveSpecifyItem(71051, 1);
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("NEW_ATTRIBUTE_SUCCESS_ATTR"));
}
#endif[/CODE]
- Katılım
- 21 Nis 2019
- Konular
- 28
- Mesajlar
- 471
- Çözüm
- 5
- Online süresi
- 3mo 11d
- Reaksiyon Skoru
- 111
- Altın Konu
- 0
- TM Yaşı
- 7 Yıl 1 Ay 21 Gün
- Başarım Puanı
- 111
- MmoLira
- 8,873
- DevLira
- 6
Turkmmo üzerinde 5’li kadim efsun diye aratın. Orada ne yapman gerektiği hangi dosyada değişiklik yapman gerektiği yazıyor. Source üzerinde hangi dosyada değişiklik yapacağını anladıktan sonra arkadaşın attığı kod ile sizdeki kod blogunu değiştirip game build edin. Bu kadar!Bu kodu nereye yazicaz kardesim az bilgi verirsen sevinirim
- Katılım
- 21 Nis 2019
- Konular
- 28
- Mesajlar
- 471
- Çözüm
- 5
- Online süresi
- 3mo 11d
- Reaksiyon Skoru
- 111
- Altın Konu
- 0
- TM Yaşı
- 7 Yıl 1 Ay 21 Gün
- Başarım Puanı
- 111
- MmoLira
- 8,873
- DevLira
- 6
Yinede söyleyeyim: Game Src içerisinde cmd_general.cpp dosyasında değişiklik yapacaksınız.Bu kodu nereye yazicaz kardesim az bilgi verirsen sevinirim
- Durum
- Üzgünüz bu konu cevaplar için kapatılmıştır...
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 2
- Görüntüleme
- 128
- Cevaplar
- 2
- Görüntüleme
- 130
- Kilitli
- Cevaplar
- 1
- Görüntüleme
- 158
- Cevaplar
- 104
- Görüntüleme
- 11K





