- Katılım
- 19 Kas 2022
- Konular
- 55
- Mesajlar
- 188
- Çözüm
- 1
- Online süresi
- 2mo 4d
- Reaksiyon Skoru
- 150
- Altın Konu
- 0
- Başarım Puanı
- 98
- MmoLira
- 13,805
- DevLira
- 66
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!
Aynı türdeki itemler arasında efsun transferi yapmanızı sağlayan efsun nesnesi
Game Source;
Game;
[CODE lang="cpp" title="char_item.cpp"]//Arat;
else if (item->GetVnum() == 76014)
{
int aiChangeProb[ITEM_ATTRIBUTE_MAX_LEVEL] =
{
0, 10, 50, 39, 1
};
item2->ChangeAttribute(aiChangeProb);
}
//Altına ekle;
else if (item->GetVnum() == 72350)
{
if (item2->GetType() != ITEM_WEAPON && item2->GetType() != ITEM_ARMOR)
{
ChatPacket(CHAT_TYPE_INFO, "Bu nesneyi sadece silahlar ve iç itemler üzerinde kullanabilirsin !");
return false;
}
if (item->GetAttributeType(0) == 0)
{
for (int i = 0; i < ITEM_ATTRIBUTE_MAX_NUM; ++i)
{
item->SetForceAttribute(i, item2->GetAttributeType(i), item2->GetAttributeValue(i));
}
item->SetForceAttribute(5,0,item2->GetType());
item->SetForceAttribute(6,0,item2->GetWearFlag());
item2->ChangeAttribute();
ChatPacket(CHAT_TYPE_INFO, "Bonuslar başarıyla %s isimli eşyandan emildi.",item2->GetName());
}
else
{
auto itemtype = item->GetAttributeValue(5);
if ((item2->GetType() == itemtype) && (itemtype == ITEM_WEAPON))
{
if (item->GetAttributeType(0) == 72 || item->GetAttributeType(0) == 71)
{
if (item2->GetAttributeType(0) != 72 && item2->GetAttributeType(0) != 71)
{
ChatPacket(CHAT_TYPE_INFO, "Bu nesneyi sadece ortalama ve/veya beceri hasarı gelebilen esyalarda kullanabilirsin !");
return false;
}
}
else
{
if (item2->GetAttributeType(0) == 72 || item2->GetAttributeType(0) == 71)
{
ChatPacket(CHAT_TYPE_INFO, "Bu nesneyi ortalama ve/veya beceri hasarı gelebilen esyalarda kullanamazsın !");
return false;
}
}
}
else
{
auto itemwearflag = item->GetAttributeValue(6);
if (itemwearflag != item2->GetWearFlag())
{
ChatPacket(CHAT_TYPE_INFO, "Bonusları emilen eşya ile aktarmak istediğin eşyanın türü uyumlu değil!");
return false;
}
}
for (int i = 0; i < ITEM_ATTRIBUTE_MAX_NUM; ++i)
{
item2->SetForceAttribute(i, item->GetAttributeType(i), item->GetAttributeValue(i));
}
ChatPacket(CHAT_TYPE_INFO, "Bonuslar başarıyla %s isimli eşyana aktarıldı.",item2->GetName());
item->SetCount(item->GetCount() - 1);
}
break;
}
[/CODE]
Pack;
Root;
[CODE lang="python" title="uitooltip.py"]#Arat
### Weapon ###
if item.ITEM_TYPE_WEAPON == itemType:[/CODE]
[CODE lang="python" title="uitooltip.py"]#Üstüne ekle;
if 72350 == itemVnum:
itemwearflag = attrSlot[6][1]
if itemwearflag > 0:
wearNames = ""
if itemwearflag == 1:
wearNames = "Zırh"
elif itemwearflag == 2:
wearNames = "Kask"
elif itemwearflag == 4:
wearNames = "Ayakkabı"
elif itemwearflag == 8:
wearNames = "Bilezik"
elif itemwearflag == 16:
wearNames = "Silah"
elif itemwearflag == 32:
wearNames = "Kolye"
elif itemwearflag == 64:
wearNames = "Küpe"
elif itemwearflag == 256:
wearNames = "Kalkan"
self.AppendTextLine(wearNames, self.NEED_SKILL_POINT_COLOR)
self.AppendSpace(3)
self.__AppendAffectInformation()
self.__AppendAttributeInformation(attrSlot)
else:
self.AppendTextLine("[BOŞ]", self.NEGATIVE_COLOR)[/CODE]
Locale;
[CODE lang="python" title="item_list.txt"]#En sona ekle;
72350 ETC icon/item/71084.tga
[/CODE]
Proto;
[CODE lang="python" title="item_names.txt"]72350 Efsun Aktarma Nesnesi
[/CODE]
[CODE lang="python" title="item_proto.txt"]72350 Efsun Aktarma Nesnesi ITEM_USE USE_CHANGE_ATTRIBUTE 1 ANTI_DROP | ANTI_SELL | ANTI_STACK NONE NONE 500 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0
[/CODE]
Game Source;
Game;
[CODE lang="cpp" title="char_item.cpp"]//Arat;
else if (item->GetVnum() == 76014)
{
int aiChangeProb[ITEM_ATTRIBUTE_MAX_LEVEL] =
{
0, 10, 50, 39, 1
};
item2->ChangeAttribute(aiChangeProb);
}
//Altına ekle;
else if (item->GetVnum() == 72350)
{
if (item2->GetType() != ITEM_WEAPON && item2->GetType() != ITEM_ARMOR)
{
ChatPacket(CHAT_TYPE_INFO, "Bu nesneyi sadece silahlar ve iç itemler üzerinde kullanabilirsin !");
return false;
}
if (item->GetAttributeType(0) == 0)
{
for (int i = 0; i < ITEM_ATTRIBUTE_MAX_NUM; ++i)
{
item->SetForceAttribute(i, item2->GetAttributeType(i), item2->GetAttributeValue(i));
}
item->SetForceAttribute(5,0,item2->GetType());
item->SetForceAttribute(6,0,item2->GetWearFlag());
item2->ChangeAttribute();
ChatPacket(CHAT_TYPE_INFO, "Bonuslar başarıyla %s isimli eşyandan emildi.",item2->GetName());
}
else
{
auto itemtype = item->GetAttributeValue(5);
if ((item2->GetType() == itemtype) && (itemtype == ITEM_WEAPON))
{
if (item->GetAttributeType(0) == 72 || item->GetAttributeType(0) == 71)
{
if (item2->GetAttributeType(0) != 72 && item2->GetAttributeType(0) != 71)
{
ChatPacket(CHAT_TYPE_INFO, "Bu nesneyi sadece ortalama ve/veya beceri hasarı gelebilen esyalarda kullanabilirsin !");
return false;
}
}
else
{
if (item2->GetAttributeType(0) == 72 || item2->GetAttributeType(0) == 71)
{
ChatPacket(CHAT_TYPE_INFO, "Bu nesneyi ortalama ve/veya beceri hasarı gelebilen esyalarda kullanamazsın !");
return false;
}
}
}
else
{
auto itemwearflag = item->GetAttributeValue(6);
if (itemwearflag != item2->GetWearFlag())
{
ChatPacket(CHAT_TYPE_INFO, "Bonusları emilen eşya ile aktarmak istediğin eşyanın türü uyumlu değil!");
return false;
}
}
for (int i = 0; i < ITEM_ATTRIBUTE_MAX_NUM; ++i)
{
item2->SetForceAttribute(i, item->GetAttributeType(i), item->GetAttributeValue(i));
}
ChatPacket(CHAT_TYPE_INFO, "Bonuslar başarıyla %s isimli eşyana aktarıldı.",item2->GetName());
item->SetCount(item->GetCount() - 1);
}
break;
}
[/CODE]
Pack;
Root;
[CODE lang="python" title="uitooltip.py"]#Arat
### Weapon ###
if item.ITEM_TYPE_WEAPON == itemType:[/CODE]
[CODE lang="python" title="uitooltip.py"]#Üstüne ekle;
if 72350 == itemVnum:
itemwearflag = attrSlot[6][1]
if itemwearflag > 0:
wearNames = ""
if itemwearflag == 1:
wearNames = "Zırh"
elif itemwearflag == 2:
wearNames = "Kask"
elif itemwearflag == 4:
wearNames = "Ayakkabı"
elif itemwearflag == 8:
wearNames = "Bilezik"
elif itemwearflag == 16:
wearNames = "Silah"
elif itemwearflag == 32:
wearNames = "Kolye"
elif itemwearflag == 64:
wearNames = "Küpe"
elif itemwearflag == 256:
wearNames = "Kalkan"
self.AppendTextLine(wearNames, self.NEED_SKILL_POINT_COLOR)
self.AppendSpace(3)
self.__AppendAffectInformation()
self.__AppendAttributeInformation(attrSlot)
else:
self.AppendTextLine("[BOŞ]", self.NEGATIVE_COLOR)[/CODE]
Locale;
[CODE lang="python" title="item_list.txt"]#En sona ekle;
72350 ETC icon/item/71084.tga
[/CODE]
Proto;
[CODE lang="python" title="item_names.txt"]72350 Efsun Aktarma Nesnesi
[/CODE]
[CODE lang="python" title="item_proto.txt"]72350 Efsun Aktarma Nesnesi ITEM_USE USE_CHANGE_ATTRIBUTE 1 ANTI_DROP | ANTI_SELL | ANTI_STACK NONE NONE 500 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0
[/CODE]
Son düzenleme:
- Katılım
- 27 Şub 2021
- Konular
- 705
- Mesajlar
- 4,783
- Çözüm
- 12
- Online süresi
- 1y 1mo
- Reaksiyon Skoru
- 2,824
- Altın Konu
- 26
- Başarım Puanı
- 324
- MmoLira
- 897
- DevLira
- 6
Paylaşım için teşekkürler.
- Katılım
- 20 Ocak 2023
- Konular
- 40
- Mesajlar
- 415
- Çözüm
- 2
- Online süresi
- 5d 4h
- Reaksiyon Skoru
- 137
- Altın Konu
- 11
- Başarım Puanı
- 82
- MmoLira
- 1,653
- DevLira
- 0
Teşekkürler.
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 10
- Görüntüleme
- 938
- Cevaplar
- 0
- Görüntüleme
- 268
- Cevaplar
- 5
- Görüntüleme
- 1K
- Cevaplar
- 6
- Görüntüleme
- 278










