Popular Post ScriptMan 8,643 Posted September 24, 2021 Popular Post Share Posted September 24, 2021 Fix: Hidden Content Give reaction to this post to see the hidden content. Download: Hidden Content Give reaction to this post to see the hidden content. 290 46 14 9 17 Quote Link to post Share on other sites
msmajda9 2 Posted October 11, 2022 Share Posted October 11, 2022 Tökéletes leírás! Pacsi! Quote Link to post Share on other sites
VirusS 3 Posted December 24, 2022 Share Posted December 24, 2022 thex man ☺️ Quote Link to post Share on other sites
SanctusCZE 11 Posted January 4, 2023 Share Posted January 4, 2023 On 9/24/2021 at 10:09 PM, ScriptMan said: Hidden Content Give reaction to this post to see the hidden content. Fix: Hidden Content Give reaction to this post to see the hidden content. Download: Hidden Content Give reaction to this post to see the hidden content. Thanks mannn 4 5 2 1 1 Quote Link to post Share on other sites
tomika1997 17 Posted January 7, 2023 Share Posted January 7, 2023 Szia ki keresem ezt a funciót bool ITEM_MANAGER::GetDropPct(LPCHARACTER pkChr, LPCHARACTER pkKiller, OUT int& iDeltaPercent, OUT int& iRandRange) Meg is van alá be rakom ezt és errorozik fordításnál item_manager.cpp-ben #ifdef __SEND_TARGET_INFO__ bool ITEM_MANAGER::CreateDropItemVector(LPCHARACTER pkChr, LPCHARACTER pkKiller, std::vector<LPITEM> & vec_item) { if (pkChr->IsPolymorphed() || pkChr->IsPC()) { return false; } int iLevel = pkKiller->GetLevel(); BYTE bRank = pkChr->GetMobRank(); LPITEM item = NULL; std::vector<CItemDropInfo>::iterator it = g_vec_pkCommonDropItem[bRank].begin(); while (it != g_vec_pkCommonDropItem[bRank].end()) { const CItemDropInfo & c_rInfo = *(it++); if (iLevel < c_rInfo.m_iLevelStart || iLevel > c_rInfo.m_iLevelEnd) continue; TItemTable * table = GetTable(c_rInfo.m_dwVnum); if (!table) continue; item = NULL; if (table->bType == ITEM_POLYMORPH) { if (c_rInfo.m_dwVnum == pkChr->GetPolymorphItemVnum()) { item = CreateItem(c_rInfo.m_dwVnum, 1, 0, true); if (item) item->SetSocket(0, pkChr->GetRaceNum()); } } else item = CreateItem(c_rInfo.m_dwVnum, 1, 0, true); if (item) vec_item.push_back(item); } // Drop Item Group { itertype(m_map_pkDropItemGroup) it; it = m_map_pkDropItemGroup.find(pkChr->GetRaceNum()); if (it != m_map_pkDropItemGroup.end()) { typeof(it->second->GetVector()) v = it->second->GetVector(); for (DWORD i = 0; i < v.size(); ++i) { item = CreateItem(v[i].dwVnum, v[i].iCount, 0, true); if (item) { if (item->GetType() == ITEM_POLYMORPH) { if (item->GetVnum() == pkChr->GetPolymorphItemVnum()) { item->SetSocket(0, pkChr->GetRaceNum()); } } vec_item.push_back(item); } } } } // MobDropItem Group { itertype(m_map_pkMobItemGroup) it; it = m_map_pkMobItemGroup.find(pkChr->GetRaceNum()); if ( it != m_map_pkMobItemGroup.end() ) { CMobItemGroup* pGroup = it->second; // MOB_DROP_ITEM_BUG_FIX // 20050805.myevan.MobDropItem ? ???? ?? ?? CMobItemGroup::GetOne() ??? ?? ?? ?? if (pGroup && !pGroup->IsEmpty()) { const CMobItemGroup::SMobItemGroupInfo& info = pGroup->GetOne(); item = CreateItem(info.dwItemVnum, info.iCount, 0, true, info.iRarePct); if (item) vec_item.push_back(item); } // END_OF_MOB_DROP_ITEM_BUG_FIX } } // Level Item Group { itertype(m_map_pkLevelItemGroup) it; it = m_map_pkLevelItemGroup.find(pkChr->GetRaceNum()); if ( it != m_map_pkLevelItemGroup.end() ) { if ( it->second->GetLevelLimit() <= (DWORD)iLevel ) { typeof(it->second->GetVector()) v = it->second->GetVector(); for ( DWORD i=0; i < v.size(); i++ ) { DWORD dwVnum = v[i].dwVNum; item = CreateItem(dwVnum, v[i].iCount, 0, true); if ( item ) vec_item.push_back(item); } } } } // BuyerTheitGloves Item Group { // by mhh ?? ??? ??? ?? drop ? ???? ?? if (pkKiller->GetPremiumRemainSeconds(PREMIUM_ITEM) > 0 || pkKiller->IsEquipUniqueGroup(UNIQUE_GROUP_DOUBLE_ITEM)) { itertype(m_map_pkGloveItemGroup) it; it = m_map_pkGloveItemGroup.find(pkChr->GetRaceNum()); if (it != m_map_pkGloveItemGroup.end()) { typeof(it->second->GetVector()) v = it->second->GetVector(); for (DWORD i = 0; i < v.size(); ++i) { DWORD dwVnum = v[i].dwVnum; item = CreateItem(dwVnum, v[i].iCount, 0, true); if (item) vec_item.push_back(item); } } } } // ?? if (pkChr->GetMobDropItemVnum()) { itertype(m_map_dwEtcItemDropProb) it = m_map_dwEtcItemDropProb.find(pkChr->GetMobDropItemVnum()); if (it != m_map_dwEtcItemDropProb.end()) { item = CreateItem(pkChr->GetMobDropItemVnum(), 1, 0, true); if (item) vec_item.push_back(item); } } if (pkChr->IsStone()) { if (pkChr->GetDropMetinStoneVnum()) { item = CreateItem(pkChr->GetDropMetinStoneVnum(), 1, 0, true); if (item) vec_item.push_back(item); } } return vec_item.size(); } #endif Megoldás rá? Indítót gyönyörűen lefordította egy hiba nélkül! Quote Link to post Share on other sites
welzi 33 Posted January 21, 2023 Share Posted January 21, 2023 Keresd: iRandRange = 4000000; iRandRange = iRandRange * 100 / (100 + CPrivManager::instance().GetPriv(pkKiller, PRIV_ITEM_DROP) + pkKiller->IsEquipUniqueItem(UNIQUE_ITEM_DOUBLE_ITEM)?100:0); if (elosztási_tesztszerver) iRandRange /= 3; return true; } ALÁ: #ifdef __SEND_TARGET_INFO__ bool ITEM_MANAGER::CreateDropItemVector(LPCHARACTER pkChr, LPCHARACTER pkKiller, std::vector<LPITEM> & vec_item) { if (pkChr->IsPolymorphed()->IsPolymorphed(false) ||s pkPChr ; } int iLevel = pkKiller->GetLevel(); BYTE bRank = pkChr->GetMobRank(); LPITEM elem = NULL; std::vector<CItemDropInfo>::iterator it = g_vec_pkCommonDropItem[bRank].begin(); while (it != g_vec_pkCommonDropItem[bRank].end()) { const CItemDropInfo & c_rInfo = *(it++); if (iLevel < c_rInfo.m_iLevelStart || iLevel > c_rInfo.m_iLevelEnd) folytatódik; TItemTable * table = GetTable(c_rInfo.m_dwVnum); if (!tábla) folytatás; item = NULL; if (table->bType == ITEM_POLYMORPH) { if (c_rInfo.m_dwVnum == pkChr->GetPolymorphItemVnum()) { item = CreateItem(c_rInfo.m_dwVnum, 1, 0, true); if (elem) item->SetSocket(0, pkChr->GetRaceNum()); } } else item = CreateElem(c_rInfo.m_dwVnum, 1, 0, true); if (elem) vec_item.push_back(elem); } // Elemcsoport eldobása { itertype(m_map_pkDropItemGroup) it; it = m_map_pkDropItemGroup.find(pkChr->GetRaceNum()); if (it != m_map_pkDropItemGroup.end()) { typeof(it->second->GetVector()) v = it->second->GetVector(); for (DWORD i = 0; i < v.size(); ++i) { item = CreateItem(v[i].dwVnum, v[i].iCount, 0, true); if (item) { if (item->GetType() == ITEM_POLYMORPH) { if (item->GetVnum() == pkChr->GetPolymorphItemVnum()) { item->SetSocket(0, pkChr->GetRaceNum()) ; } } vec_item.push_back(elem); } } } } // MobDropItem Group { itertype(m_map_pkMobItemGroup) it; it = m_map_pkMobItemGroup.find(pkChr->GetRaceNum()); if ( it != m_map_pkMobItemGroup.end() ) { CMobItemGroup* pGroup = it->second; // MOB_DROP_ITEM_BUG_FIX // 20050805.myevan.MobDropItem ? ???? ?? ?? CMobItemGroup::GetOne() ??? ?? ?? ?? if (pGroup && !pGroup->IsEmpty()) { const CMobItemGroup::SMobItemGroupInfo& info = pGroup->GetOne(); item = CreateItem(info.dwItemVnum, info.iCount, 0, true, info.iRarePct); if (elem) vec_item.push_back(elem); } // END_OF_MOB_DROP_ITEM_BUG_FIX } } // Level Item Group { itertype(m_map_pkLevelItemGroup) it; it = m_map_pkLevelItemGroup.find(pkChr->GetRaceNum()); if ( it != m_map_pkLevelItemGroup.end() ) { if ( it->second->GetLevelLimit() <= (DWORD)iLevel ) { typeof(it->second->GetVector()) v = it->second- >GetVector(); for ( DWORD i=0; i < v.size(); i++ ) { DWORD dwVnum = v[i].dwVNum; item = Elem létrehozása(dwVnum, v[i].iCount, 0, true); if ( item ) vec_item.push_back(elem); } } } } // BuyerTheitGloves cikkcsoport { // szerző: mhh ?? ??? ??? ?? csepp ? ???? ?? if (pkKiller->GetPremiumRemainSeconds(PREMIUM_ITEM) > 0 || pkKiller->IsEquipUniqueGroup(UNIQUE_GROUP_DOUBLE_ITEM)) { itertype(m_map_pkGloveItemGroup) it; it = m_map_pkGloveItemGroup.find(pkChr->GetRaceNum()); if (it != m_map_pkGloveItemGroup.end()) { typeof(it->second->GetVector()) v = it->second->GetVector(); for (DWORD i = 0; i < v.size(); ++i) { DWORD dwVnum = v[i].dwVnum; item = Elem létrehozása(dwVnum, v[i].iCount, 0, true); if (elem) vec_item.push_back(elem); } } } } // ?? if (pkChr->GetMobDropItemVnum()) { itertype(m_map_dwEtcItemDropProb) it = m_map_dwEtcItemDropProb.find(pkChr->GetMobDropItemVnum()); if (it != m_map_dwEtcItemDropProb.end()) { item = CreateItem(pkChr->GetMobDropItemVnum(), 1, 0, true); if (elem) vec_item.push_back(elem); } } if (pkChr->IsStone()) { if (pkChr->GetDropMetinStoneVnum()) { item = CreateItem(pkChr->GetDropMetinStoneVnum(), 1, 0, true); if (elem) vec_item.push_back(elem); } } return vec_item.size(); } #endif Képeket csatoltam ha esetleg így sem érted. Sok sikert🙂 Így nézzen ki Quote Link to post Share on other sites
nicucocis 0 Posted February 21, 2023 Share Posted February 21, 2023 sdsd s dsd sds dssds Quote Link to post Share on other sites
Rick98 30 Posted March 5, 2023 Share Posted March 5, 2023 Item_manager.cpp fordításnál hibát ír ki. (typeof részt át kell írni __typeof-ra és gördülékenyen lefordul a game, ha esetleg más is ilyen jellegű problémával küzdene). Hidden Content Give reaction to this post to see the hidden content. 29 2 Quote Link to post Share on other sites
szmi113 2 Posted January 25, 2024 Share Posted January 25, 2024 Magyar? Quote Link to post Share on other sites
cihalino 1 Posted February 6, 2024 Share Posted February 6, 2024 thx Quote Link to post Share on other sites
mrdemigod 5 Posted January 7, 2025 Share Posted January 7, 2025 Valaki tudna nekem segíteni benne esetleg? Le fordítottam mindent de a root ban az ui.py re mindig ki talál egy hibát. Sajnos nem jövök rá a dolgokra. Quote Link to post Share on other sites
Mikee 692 Posted February 17, 2025 Share Posted February 17, 2025 Thanks for share Quote Link to post Share on other sites
Slaw 1,106 Posted March 5, 2025 Share Posted March 5, 2025 Hali egy kis bővítés kép a mappában lesz: Hidden Content Give reaction to this post to see the hidden content. 20 1 Quote Link to post Share on other sites
AzMii 1 Posted September 11 Share Posted September 11 Sziasztok nekem egy ilyen problémám lett a rendszerrel. Tudna valaki segíteni benne? 🙂 Hidden Content Give reaction to this post to see the hidden content. 1 Quote Link to post Share on other sites
ScriptMan 8,643 Posted September 11 Author Share Posted September 11 11 hours ago, AzMii said: Sziasztok nekem egy ilyen problémám lett a rendszerrel. Tudna valaki segíteni benne? 🙂 Hidden Content Give reaction to this post to see the hidden content. Mouse wheel rendszer van? Ha van, ki van bővítve erre a rendszerre? 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.