Jump to content

Drow

Inactive Member
  • Posts

    5
  • Joined

  • Last visited

  • Feedback

    0%

About Drow

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Drow's Achievements

Contributor

Contributor (5/16)

  • Dedicated
  • Reacting Well
  • First Post
  • Conversation Starter
  • Week One Done

Recent Badges

3

Reputation

  1. His frunction has 3 parameters but only 2 are used, so I just removed the 3'th parameter. In addition he is using c++14 that has std::unique_ptr and c++11 doesn't, so I googled it and found that template function. Enjoy. #ifdef ENABLE_SHOW_CHEST_DROP #include "../../libgame/include/grid.h" template<typename T, typename... Args> std::unique_ptr<T> make_unique(Args&&... args) { return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); } void ITEM_MANAGER::GetChestItemList(DWORD dwChestVnum, std::vector<TChestDropInfoTable>& vec_item) { const auto pGroup = GetSpecialItemGroup(dwChestVnum); if (!pGroup) return; std::vector<std::unique_ptr<CGrid>> pGrids; pGrids.emplace_back(make_unique<CGrid>(15, 5)); for (int i = 0; i < pGroup->GetGroupSize(); i++) { const auto itemTable = GetTable(pGroup->GetVnum(i)); //pass if exp, yang or duplicate item if (!itemTable || !itemTable->dwVnum || itemTable->dwVnum < 3 || std::find_if(vec_item.begin(), vec_item.end(), [&pGroup, &i](const TChestDropInfoTable& data) -> bool { return static_cast<DWORD>(pGroup->GetVnum(i)) == data.dwItemVnum; }) != vec_item.end()) continue; bool PushNewGrid = true; for (size_t iPage = 0; iPage < pGrids.size(); iPage++) { const auto iPos = pGrids.at(iPage)->FindBlank(1, static_cast<int>(itemTable->bSize)); if (iPos >= 0) { pGrids.at(iPage)->Put(iPos, 1, static_cast<int>(itemTable->bSize)); vec_item.push_back({ static_cast<BYTE>(iPage + 1), static_cast<BYTE>(iPos), static_cast<DWORD>(pGroup->GetVnum(i)), static_cast<BYTE>(pGroup->GetCount(i)) }); PushNewGrid = false; break; } } if (PushNewGrid) { pGrids.emplace_back(make_unique<CGrid>(15, 5)); i--;//again } } } #endif
  2. yah bro, but that system is for armor and weapon. You need to put it on sash (wing)
  3. well if I have to guess you should take it out of you ass. On :I think that you put the effect on the armor.
  4. its quite nice, for me it worked with all the information provided here. [Hidden Content] thanks.
  5. Hello guys, I wanted to ask what is the procedure to switch from mysel5.5 to mariadb10.3 or 10.4 ? 1) On what tables do I need to change from MyISAM to InnoDB. 2) Do I need to add in src the libs or is ok to leave it as it is. 3) What is the procedure to move the existing table if there is one. What I did untill now is this: For 1*, I did this: ALTER TABLE accoount.account ENGINE=InnoDB; ALTER TABLE player.player ENGINE=InnoDB; ALTER TABLE player.item ENGINE=InnoDB, ROW_FORMAT=DYNAMIC; ALTER TABLE player.affect ENGINE=InnoDB, ROW_FORMAT=DYNAMIC; ALTER TABLE player.quest ENGINE=InnoDB; ALTER TABLE player.player_deleted ENGINE=InnoDB; ALTER TABLE player.player_index ENGINE=InnoDB, ROW_FORMAT=DYNAMIC; ALTER TABLE player.safebox ENGINE=InnoDB; ALTER TABLE player.item_award ENGINE=InnoDB; 2* I left it as it is 3* mysqldump -u root-p --all-databases --skip-lock-tables > alldb.sql (export) my tables that were using mysql5.5 after installing mardiadb10.3 mysql -u root -p < alldb.sql and now my problem is this: 2020-06-15 15:33:53 80 [Warning] Aborted connection 80 to db: 'common' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 126 [Warning] Aborted connection 126 to db: 'player' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 64 [Warning] Aborted connection 64 to db: 'common' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 124 [Warning] Aborted connection 124 to db: 'player' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 70 [Warning] Aborted connection 70 to db: 'common' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 83 [Warning] Aborted connection 83 to db: 'log' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 127 [Warning] Aborted connection 127 to db: 'log' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 66 [Warning] Aborted connection 66 to db: 'common' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 74 [Warning] Aborted connection 74 to db: 'player' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 122 [Warning] Aborted connection 122 to db: 'common' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 73 [Warning] Aborted connection 73 to db: 'log' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 68 [Warning] Aborted connection 68 to db: 'log' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 75 [Warning] Aborted connection 75 to db: 'common' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 76 [Warning] Aborted connection 76 to db: 'player' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 72 [Warning] Aborted connection 72 to db: 'common' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 63 [Warning] Aborted connection 63 to db: 'player' user: 'root' host: 'localhost' (Got an error reading communication packets) 2020-06-15 15:33:53 78 [Warning] Aborted connection 78 to db: 'log' user: 'root' host: 'localhost' (Got an error reading communication packets) and after a few second my cores are closing without any syserr. Thanks, and I think that it will help some people in the future.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.