sınırsız yapar bu kod hatta calısmayabilir useitem 0 yapılınca sınırsız oluyor yani item istemiyor, item numarası girince o itemi istiyor bu kodda ise itemid yi bulup onu 1 yapıyor
[high] if (pTable->iUseItem != 0) {
_ITEM_TABLE* pItem = NULL; // This checks if such an item exists.
if (m_pSrcUser->m_pUserData->m_bRace != pItem->m_bRace) {
type = MAGIC_CASTING;
goto fail_return;
}
}
if (pItem->m_bClass != 0) {
if (!(m_pSrcUser->JobGroupCheck(pItem->m_bClass))) {
type = MAGIC_CASTING;
goto fail_return;
}
}
if (pItem->m_bReqLevel != 0) {
if (m_pSrcUser->m_pUserData->m_bLevel < pItem->m_bReqLevel) {
type = MAGIC_CASTING;
goto fail_return;
}
}
//
if (m_pSrcUser->ItemCountChange( pTable->iUseItem, 1, 1) < 2) {
type = MAGIC_CASTING;
goto fail_return;
}
}[/high]kodda görüldügü gibi 0 değilse işlem yapıyor 1 oldugu icin item var sanıp item bulmaya calısıcak 1 numarasına sahip item olmadıgı icin hata vericektir
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.