Premium TAUMP 825 Posted April 4, 2018 Premium Share Posted April 4, 2018 (edited) 27 minutes ago, xP3NG3Rx said: Thanks for it. Reveal hidden contents CHARACTER::MoveItem if (item->GetType() == ITEM_GACHA) { long lOpenCount = item->GetLimitValue(1); long lSum = item->GetSocket(0) + item2->GetSocket(0); if (lSum < lOpenCount) { ITEM_MANAGER::instance().RemoveItem(item); item2->SetCount(1); item2->SetSocket(0, lSum); } else { long lCount = long(ceil(float(lSum) / float(lOpenCount))); if (lCount < g_wItemCountLimit) { ITEM_MANAGER::instance().RemoveItem(item); item2->SetCount(lCount); item2->SetSocket(0, lSum); } else } item->SetSocket(0, lSum % (g_wItemCountLimit * lOpenCount)); item->SetCount(lCount % g_wItemCountLimit); item2->SetSocket(0, g_wItemCountLimit * lOpenCount); item2->SetCount(g_wItemCountLimit); } } } else { item->SetCount(item->GetCount() - wCount); item2->SetCount(item2->GetCount() + wCount); } return true; } Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
notbugme 14 Posted May 14, 2018 Share Posted May 14, 2018 Will we add "ITEM GACHA" into ProtoReader.cpp and ItemCSVReader .cpp? Link to comment Share on other sites More sharing options...
notbugme 14 Posted May 14, 2018 Share Posted May 14, 2018 wCount was not declared in this scope ??* g_wItemCountLimit was not declared in this scope ??* Link to comment Share on other sites More sharing options...
notbugme 14 Posted May 14, 2018 Share Posted May 14, 2018 (edited) Problem ??? Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
[Dev]Medo 4 Posted August 1, 2018 Share Posted August 1, 2018 Thanks for release <3 Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4871 Posted September 7, 2018 Bot Share Posted September 7, 2018 case ITEM_GACHA: { DWORD dwBoxVnum = item->GetVnum(); std::vector <DWORD> dwVnums; std::vector <DWORD> dwCounts; std::vector <LPITEM> item_gets(0); int count = 0; if (GiveItemFromSpecialItemGroup(dwBoxVnum, dwVnums, dwCounts, item_gets, count)) { for (int i = 0; i < count; i++){ switch (dwVnums[i]) { case CSpecialItemGroup::GOLD: ChatPacket(CHAT_TYPE_INFO, LC_TEXT("돈 %d 냥을 획득했습니다."), dwCounts[i]); break; case CSpecialItemGroup::EXP: ChatPacket(CHAT_TYPE_INFO, LC_TEXT("상자에서 부터 신비한 빛이 나옵니다.")); ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%d의 경험치를 획득했습니다."), dwCounts[i]); break; case CSpecialItemGroup::MOB: ChatPacket(CHAT_TYPE_INFO, LC_TEXT("상자에서 몬스터가 나타났습니다!")); break; case CSpecialItemGroup::SLOW: ChatPacket(CHAT_TYPE_INFO, LC_TEXT("상자에서 나온 빨간 연기를 들이마시자 움직이는 속도가 느려졌습니다!")); break; case CSpecialItemGroup::DRAIN_HP: ChatPacket(CHAT_TYPE_INFO, LC_TEXT("상자가 갑자기 폭발하였습니다! 생명력이 감소했습니다.")); break; case CSpecialItemGroup::POISON: ChatPacket(CHAT_TYPE_INFO, LC_TEXT("상자에서 나온 녹색 연기를 들이마시자 독이 온몸으로 퍼집니다!")); break; case CSpecialItemGroup::MOB_GROUP: ChatPacket(CHAT_TYPE_INFO, LC_TEXT("상자에서 몬스터가 나타났습니다!")); break; default: if (item_gets[i]) { if (dwCounts[i] > 1) ChatPacket(CHAT_TYPE_INFO, LC_TEXT("상자에서 %s 가 %d 개 나왔습니다."), item_gets[i]->GetName(), dwCounts[i]); else ChatPacket(CHAT_TYPE_INFO, LC_TEXT("상자에서 %s 가 나왔습니다."), item_gets[i]->GetName()); } } } if(item->GetSocket(0) > 1) item->SetSocket(0, item->GetSocket(0) - 1); else ITEM_MANAGER::instance().RemoveItem(item, "REMOVE (ITEM_GACHA)"); } } break; When you open a gacha box and you get yang, experience, etc. nothing appears. I think with this it would be corrected. 1 Link to comment Share on other sites More sharing options...
ManiacRobert 427 Posted November 17, 2018 Share Posted November 17, 2018 Need extra modifiers on pickupitem and dropitem. 1 Link to comment Share on other sites More sharing options...
Syriza 234 Posted December 12, 2018 Share Posted December 12, 2018 can someone fix the problem @WLsj24 mentioned? @xP3NG3Rx Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4871 Posted December 12, 2018 Bot Share Posted December 12, 2018 1 hour ago, Syriza said: can someone fix the problem @WLsj24 mentioned? @xP3NG3Rx Copy the code that I published, that's the fix 1 Link to comment Share on other sites More sharing options...
Fernando 7 Posted August 5, 2019 Share Posted August 5, 2019 Works fine, thanks for releasing Link to comment Share on other sites More sharing options...
Premium Hunger 472 Posted October 19, 2019 Premium Share Posted October 19, 2019 Anybody has this installed on marty source 4.9? I get : Oct 19 10:40:53 :: Drake: USE_ITEM Cufãr Beran-Setaou (inven 1, cell: 35) Oct 19 10:40:53 :: UseItemEx: Unknown type Cufãr Beran-Setaou 37 Item type was done already, only the game part was missing. Any ideas? Solved. Link to comment Share on other sites More sharing options...
Raafey 15 Posted May 28, 2020 Share Posted May 28, 2020 I have a problem I have successfully inserted everything as in the howto. But ingame I can't open the chests no matter what I do no sysr or error Insert image from URL Link to comment Share on other sites More sharing options...
Recommended Posts